Class ArrayType
Defined in File EmitHLSTypes.h.inc
Inheritance Relationships
Base Type
public mlir::Type::TypeBase< ArrayType, ::mlir::Type, detail::ArrayTypeStorage, ::mlir::ShapedType::Trait >
Class Documentation
-
class ArrayType : public mlir::Type::TypeBase<ArrayType, ::mlir::Type, detail::ArrayTypeStorage, ::mlir::ShapedType::Trait>
Public Functions
-
inline bool hasRank() const
For HLS, an array should always have rank.
-
void print(::mlir::AsmPrinter &odsPrinter) const
Prints an ArrayType in its assembly format
<[shape x] type>.Emits
<, the dimension list, the element type, and>.
-
::llvm::ArrayRef<int64_t> getShape() const
-
Type getElementType() const
Public Static Functions
-
static ArrayType get(::mlir::MLIRContext *context, ::llvm::ArrayRef<int64_t> shape, Type elementType)
-
static ArrayType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::ArrayRef<int64_t> shape, Type elementType)
-
static ArrayType get(ArrayRef<int64_t> shape, Type elementType)
Creates an ArrayType with explicit shape and element type.
The
shapedefines the number of elements along each dimension. All dimensions must be static (non-negative). TheelementTypemust be a scalar type.
-
static ArrayType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ArrayRef<int64_t> shape, Type elementType)
-
static ::llvm::LogicalResult verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<int64_t> shape, Type elementType)
Verifies the invariants of an ArrayType.
Checks that
elementTypeis a scalar (not a ShapedType) and thatshapeis non-empty and every dimension in it is non-negative (i.e. static).
-
static ::llvm::LogicalResult verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<int64_t> shape, Type elementType)
-
static inline constexpr ::llvm::StringLiteral getMnemonic()
-
inline bool hasRank() const