MLIR
18.0.0git
|
Go to the source code of this file.
Functions | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirIntegerTypeGetTypeID (void) |
Returns the typeID of an Integer type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAInteger (MlirType type) |
Checks whether the given type is an integer type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirIntegerTypeGet (MlirContext ctx, unsigned bitwidth) |
Creates a signless integer type of the given bitwidth in the context. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirIntegerTypeSignedGet (MlirContext ctx, unsigned bitwidth) |
Creates a signed integer type of the given bitwidth in the context. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirIntegerTypeUnsignedGet (MlirContext ctx, unsigned bitwidth) |
Creates an unsigned integer type of the given bitwidth in the context. More... | |
MLIR_CAPI_EXPORTED unsigned | mlirIntegerTypeGetWidth (MlirType type) |
Returns the bitwidth of an integer type. More... | |
MLIR_CAPI_EXPORTED bool | mlirIntegerTypeIsSignless (MlirType type) |
Checks whether the given integer type is signless. More... | |
MLIR_CAPI_EXPORTED bool | mlirIntegerTypeIsSigned (MlirType type) |
Checks whether the given integer type is signed. More... | |
MLIR_CAPI_EXPORTED bool | mlirIntegerTypeIsUnsigned (MlirType type) |
Checks whether the given integer type is unsigned. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirIndexTypeGetTypeID (void) |
Returns the typeID of an Index type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAIndex (MlirType type) |
Checks whether the given type is an index type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirIndexTypeGet (MlirContext ctx) |
Creates an index type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat8E5M2TypeGetTypeID (void) |
Returns the typeID of an Float8E5M2 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFloat8E5M2 (MlirType type) |
Checks whether the given type is an f8E5M2 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFloat8E5M2TypeGet (MlirContext ctx) |
Creates an f8E5M2 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat8E4M3FNTypeGetTypeID (void) |
Returns the typeID of an Float8E4M3FN type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFloat8E4M3FN (MlirType type) |
Checks whether the given type is an f8E4M3FN type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFloat8E4M3FNTypeGet (MlirContext ctx) |
Creates an f8E4M3FN type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat8E5M2FNUZTypeGetTypeID (void) |
Returns the typeID of an Float8E5M2FNUZ type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFloat8E5M2FNUZ (MlirType type) |
Checks whether the given type is an f8E5M2FNUZ type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFloat8E5M2FNUZTypeGet (MlirContext ctx) |
Creates an f8E5M2FNUZ type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat8E4M3FNUZTypeGetTypeID (void) |
Returns the typeID of an Float8E4M3FNUZ type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFloat8E4M3FNUZ (MlirType type) |
Checks whether the given type is an f8E4M3FNUZ type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFloat8E4M3FNUZTypeGet (MlirContext ctx) |
Creates an f8E4M3FNUZ type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat8E4M3B11FNUZTypeGetTypeID (void) |
Returns the typeID of an Float8E4M3B11FNUZ type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFloat8E4M3B11FNUZ (MlirType type) |
Checks whether the given type is an f8E4M3B11FNUZ type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFloat8E4M3B11FNUZTypeGet (MlirContext ctx) |
Creates an f8E4M3B11FNUZ type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirBFloat16TypeGetTypeID (void) |
Returns the typeID of an BFloat16 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsABF16 (MlirType type) |
Checks whether the given type is a bf16 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirBF16TypeGet (MlirContext ctx) |
Creates a bf16 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat16TypeGetTypeID (void) |
Returns the typeID of an Float16 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAF16 (MlirType type) |
Checks whether the given type is an f16 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirF16TypeGet (MlirContext ctx) |
Creates an f16 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat32TypeGetTypeID (void) |
Returns the typeID of an Float32 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAF32 (MlirType type) |
Checks whether the given type is an f32 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirF32TypeGet (MlirContext ctx) |
Creates an f32 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloat64TypeGetTypeID (void) |
Returns the typeID of an Float64 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAF64 (MlirType type) |
Checks whether the given type is an f64 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirF64TypeGet (MlirContext ctx) |
Creates a f64 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFloatTF32TypeGetTypeID (void) |
Returns the typeID of a TF32 type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsATF32 (MlirType type) |
Checks whether the given type is an TF32 type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirTF32TypeGet (MlirContext ctx) |
Creates a TF32 type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirNoneTypeGetTypeID (void) |
Returns the typeID of an None type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsANone (MlirType type) |
Checks whether the given type is a None type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirNoneTypeGet (MlirContext ctx) |
Creates a None type in the given context. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirComplexTypeGetTypeID (void) |
Returns the typeID of an Complex type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAComplex (MlirType type) |
Checks whether the given type is a Complex type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirComplexTypeGet (MlirType elementType) |
Creates a complex type with the given element type in the same context as the element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirComplexTypeGetElementType (MlirType type) |
Returns the element type of the given complex type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAShaped (MlirType type) |
Checks whether the given type is a Shaped type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirShapedTypeGetElementType (MlirType type) |
Returns the element type of the shaped type. More... | |
MLIR_CAPI_EXPORTED bool | mlirShapedTypeHasRank (MlirType type) |
Checks whether the given shaped type is ranked. More... | |
MLIR_CAPI_EXPORTED int64_t | mlirShapedTypeGetRank (MlirType type) |
Returns the rank of the given ranked shaped type. More... | |
MLIR_CAPI_EXPORTED bool | mlirShapedTypeHasStaticShape (MlirType type) |
Checks whether the given shaped type has a static shape. More... | |
MLIR_CAPI_EXPORTED bool | mlirShapedTypeIsDynamicDim (MlirType type, intptr_t dim) |
Checks wither the dim-th dimension of the given shaped type is dynamic. More... | |
MLIR_CAPI_EXPORTED int64_t | mlirShapedTypeGetDimSize (MlirType type, intptr_t dim) |
Returns the dim-th dimension of the given ranked shaped type. More... | |
MLIR_CAPI_EXPORTED bool | mlirShapedTypeIsDynamicSize (int64_t size) |
Checks whether the given value is used as a placeholder for dynamic sizes in shaped types. More... | |
MLIR_CAPI_EXPORTED int64_t | mlirShapedTypeGetDynamicSize (void) |
Returns the value indicating a dynamic size in a shaped type. More... | |
MLIR_CAPI_EXPORTED bool | mlirShapedTypeIsDynamicStrideOrOffset (int64_t val) |
Checks whether the given value is used as a placeholder for dynamic strides and offsets in shaped types. More... | |
MLIR_CAPI_EXPORTED int64_t | mlirShapedTypeGetDynamicStrideOrOffset (void) |
Returns the value indicating a dynamic stride or offset in a shaped type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirVectorTypeGetTypeID (void) |
Returns the typeID of an Vector type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAVector (MlirType type) |
Checks whether the given type is a Vector type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirVectorTypeGet (intptr_t rank, const int64_t *shape, MlirType elementType) |
Creates a vector type of the shape identified by its rank and dimensions, with the given element type in the same context as the element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirVectorTypeGetChecked (MlirLocation loc, intptr_t rank, const int64_t *shape, MlirType elementType) |
Same as "mlirVectorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirVectorTypeGetScalable (intptr_t rank, const int64_t *shape, const bool *scalable, MlirType elementType) |
Creates a scalable vector type with the shape identified by its rank and dimensions. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirVectorTypeGetScalableChecked (MlirLocation loc, intptr_t rank, const int64_t *shape, const bool *scalable, MlirType elementType) |
Same as "mlirVectorTypeGetScalable" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED bool | mlirVectorTypeIsScalable (MlirType type) |
Checks whether the given vector type is scalable, i.e., has at least one scalable dimension. More... | |
MLIR_CAPI_EXPORTED bool | mlirVectorTypeIsDimScalable (MlirType type, intptr_t dim) |
Checks whether the "dim"-th dimension of the given vector is scalable. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsATensor (MlirType type) |
Checks whether the given type is a Tensor type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirRankedTensorTypeGetTypeID (void) |
Returns the typeID of an RankedTensor type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsARankedTensor (MlirType type) |
Checks whether the given type is a ranked tensor type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirUnrankedTensorTypeGetTypeID (void) |
Returns the typeID of an UnrankedTensor type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAUnrankedTensor (MlirType type) |
Checks whether the given type is an unranked tensor type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirRankedTensorTypeGet (intptr_t rank, const int64_t *shape, MlirType elementType, MlirAttribute encoding) |
Creates a tensor type of a fixed rank with the given shape, element type, and optional encoding in the same context as the element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirRankedTensorTypeGetChecked (MlirLocation loc, intptr_t rank, const int64_t *shape, MlirType elementType, MlirAttribute encoding) |
Same as "mlirRankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | mlirRankedTensorTypeGetEncoding (MlirType type) |
Gets the 'encoding' attribute from the ranked tensor type, returning a null attribute if none. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirUnrankedTensorTypeGet (MlirType elementType) |
Creates an unranked tensor type with the given element type in the same context as the element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirUnrankedTensorTypeGetChecked (MlirLocation loc, MlirType elementType) |
Same as "mlirUnrankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirMemRefTypeGetTypeID (void) |
Returns the typeID of an MemRef type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAMemRef (MlirType type) |
Checks whether the given type is a MemRef type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirUnrankedMemRefTypeGetTypeID (void) |
Returns the typeID of an UnrankedMemRef type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAUnrankedMemRef (MlirType type) |
Checks whether the given type is an UnrankedMemRef type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirMemRefTypeGet (MlirType elementType, intptr_t rank, const int64_t *shape, MlirAttribute layout, MlirAttribute memorySpace) |
Creates a MemRef type with the given rank and shape, a potentially empty list of affine layout maps, the given memory space and element type, in the same context as element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirMemRefTypeGetChecked (MlirLocation loc, MlirType elementType, intptr_t rank, const int64_t *shape, MlirAttribute layout, MlirAttribute memorySpace) |
Same as "mlirMemRefTypeGet" but returns a nullptr-wrapping MlirType o illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirMemRefTypeContiguousGet (MlirType elementType, intptr_t rank, const int64_t *shape, MlirAttribute memorySpace) |
Creates a MemRef type with the given rank, shape, memory space and element type in the same context as the element type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirMemRefTypeContiguousGetChecked (MlirLocation loc, MlirType elementType, intptr_t rank, const int64_t *shape, MlirAttribute memorySpace) |
Same as "mlirMemRefTypeContiguousGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirUnrankedMemRefTypeGet (MlirType elementType, MlirAttribute memorySpace) |
Creates an Unranked MemRef type with the given element type and in the given memory space. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirUnrankedMemRefTypeGetChecked (MlirLocation loc, MlirType elementType, MlirAttribute memorySpace) |
Same as "mlirUnrankedMemRefTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | mlirMemRefTypeGetLayout (MlirType type) |
Returns the layout of the given MemRef type. More... | |
MLIR_CAPI_EXPORTED MlirAffineMap | mlirMemRefTypeGetAffineMap (MlirType type) |
Returns the affine map of the given MemRef type. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | mlirMemRefTypeGetMemorySpace (MlirType type) |
Returns the memory space of the given MemRef type. More... | |
MLIR_CAPI_EXPORTED MlirAttribute | mlirUnrankedMemrefGetMemorySpace (MlirType type) |
Returns the memory spcae of the given Unranked MemRef type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirTupleTypeGetTypeID (void) |
Returns the typeID of an Tuple type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsATuple (MlirType type) |
Checks whether the given type is a tuple type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirTupleTypeGet (MlirContext ctx, intptr_t numElements, MlirType const *elements) |
Creates a tuple type that consists of the given list of elemental types. More... | |
MLIR_CAPI_EXPORTED intptr_t | mlirTupleTypeGetNumTypes (MlirType type) |
Returns the number of types contained in a tuple. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirTupleTypeGetType (MlirType type, intptr_t pos) |
Returns the pos-th type in the tuple type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirFunctionTypeGetTypeID (void) |
Returns the typeID of an Function type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAFunction (MlirType type) |
Checks whether the given type is a function type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFunctionTypeGet (MlirContext ctx, intptr_t numInputs, MlirType const *inputs, intptr_t numResults, MlirType const *results) |
Creates a function type, mapping a list of input types to result types. More... | |
MLIR_CAPI_EXPORTED intptr_t | mlirFunctionTypeGetNumInputs (MlirType type) |
Returns the number of input types. More... | |
MLIR_CAPI_EXPORTED intptr_t | mlirFunctionTypeGetNumResults (MlirType type) |
Returns the number of result types. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFunctionTypeGetInput (MlirType type, intptr_t pos) |
Returns the pos-th input type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirFunctionTypeGetResult (MlirType type, intptr_t pos) |
Returns the pos-th result type. More... | |
MLIR_CAPI_EXPORTED MlirTypeID | mlirOpaqueTypeGetTypeID (void) |
Returns the typeID of an Opaque type. More... | |
MLIR_CAPI_EXPORTED bool | mlirTypeIsAOpaque (MlirType type) |
Checks whether the given type is an opaque type. More... | |
MLIR_CAPI_EXPORTED MlirType | mlirOpaqueTypeGet (MlirContext ctx, MlirStringRef dialectNamespace, MlirStringRef typeData) |
Creates an opaque type in the given context associated with the dialect identified by its namespace. More... | |
MLIR_CAPI_EXPORTED MlirStringRef | mlirOpaqueTypeGetDialectNamespace (MlirType type) |
Returns the namespace of the dialect with which the given opaque type is associated. More... | |
MLIR_CAPI_EXPORTED MlirStringRef | mlirOpaqueTypeGetData (MlirType type) |
Returns the raw data as a string reference. More... | |
MLIR_CAPI_EXPORTED MlirType mlirBF16TypeGet | ( | MlirContext | ctx | ) |
Creates a bf16 type in the given context.
The type is owned by the context.
Definition at line 143 of file BuiltinTypes.cpp.
References mlir::FloatType::getBF16(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirBFloat16TypeGetTypeID | ( | void | ) |
Returns the typeID of an BFloat16 type.
Definition at line 137 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirComplexTypeGet | ( | MlirType | elementType | ) |
Creates a complex type with the given element type in the same context as the element type.
The type is owned by the context.
Definition at line 205 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirComplexTypeGetElementType | ( | MlirType | type | ) |
Returns the element type of the given complex type.
Definition at line 209 of file BuiltinTypes.cpp.
References getElementType(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirComplexTypeGetTypeID | ( | void | ) |
Returns the typeID of an Complex type.
Definition at line 199 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirF16TypeGet | ( | MlirContext | ctx | ) |
Creates an f16 type in the given context.
The type is owned by the context.
Definition at line 151 of file BuiltinTypes.cpp.
References mlir::FloatType::getF16(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirF32TypeGet | ( | MlirContext | ctx | ) |
Creates an f32 type in the given context.
The type is owned by the context.
Definition at line 169 of file BuiltinTypes.cpp.
References mlir::FloatType::getF32(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirF64TypeGet | ( | MlirContext | ctx | ) |
Creates a f64 type in the given context.
The type is owned by the context.
Definition at line 177 of file BuiltinTypes.cpp.
References mlir::FloatType::getF64(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat16TypeGetTypeID | ( | void | ) |
Returns the typeID of an Float16 type.
Definition at line 147 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat32TypeGetTypeID | ( | void | ) |
Returns the typeID of an Float32 type.
Definition at line 165 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat64TypeGetTypeID | ( | void | ) |
Returns the typeID of an Float64 type.
Definition at line 173 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFloat8E4M3B11FNUZTypeGet | ( | MlirContext | ctx | ) |
Creates an f8E4M3B11FNUZ type in the given context.
The type is owned by the context.
Definition at line 133 of file BuiltinTypes.cpp.
References mlir::FloatType::getFloat8E4M3B11FNUZ(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3B11FNUZTypeGetTypeID | ( | void | ) |
Returns the typeID of an Float8E4M3B11FNUZ type.
Definition at line 125 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFloat8E4M3FNTypeGet | ( | MlirContext | ctx | ) |
Creates an f8E4M3FN type in the given context.
The type is owned by the context.
Definition at line 97 of file BuiltinTypes.cpp.
References mlir::FloatType::getFloat8E4M3FN(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3FNTypeGetTypeID | ( | void | ) |
Returns the typeID of an Float8E4M3FN type.
Definition at line 89 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFloat8E4M3FNUZTypeGet | ( | MlirContext | ctx | ) |
Creates an f8E4M3FNUZ type in the given context.
The type is owned by the context.
Definition at line 121 of file BuiltinTypes.cpp.
References mlir::FloatType::getFloat8E4M3FNUZ(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E4M3FNUZTypeGetTypeID | ( | void | ) |
Returns the typeID of an Float8E4M3FNUZ type.
Definition at line 113 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFloat8E5M2FNUZTypeGet | ( | MlirContext | ctx | ) |
Creates an f8E5M2FNUZ type in the given context.
The type is owned by the context.
Definition at line 109 of file BuiltinTypes.cpp.
References mlir::FloatType::getFloat8E5M2FNUZ(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E5M2FNUZTypeGetTypeID | ( | void | ) |
Returns the typeID of an Float8E5M2FNUZ type.
Definition at line 101 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFloat8E5M2TypeGet | ( | MlirContext | ctx | ) |
Creates an f8E5M2 type in the given context.
The type is owned by the context.
Definition at line 85 of file BuiltinTypes.cpp.
References mlir::FloatType::getFloat8E5M2(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloat8E5M2TypeGetTypeID | ( | void | ) |
Returns the typeID of an Float8E5M2 type.
Definition at line 77 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirFloatTF32TypeGetTypeID | ( | void | ) |
Returns the typeID of a TF32 type.
Definition at line 155 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirFunctionTypeGet | ( | MlirContext | ctx, |
intptr_t | numInputs, | ||
MlirType const * | inputs, | ||
intptr_t | numResults, | ||
MlirType const * | results | ||
) |
Creates a function type, mapping a list of input types to result types.
Definition at line 492 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), unwrapList(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirFunctionTypeGetInput | ( | MlirType | type, |
intptr_t | pos | ||
) |
Returns the pos-th input type.
Definition at line 510 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED intptr_t mlirFunctionTypeGetNumInputs | ( | MlirType | type | ) |
Returns the number of input types.
Definition at line 502 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED intptr_t mlirFunctionTypeGetNumResults | ( | MlirType | type | ) |
Returns the number of result types.
Definition at line 506 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED MlirType mlirFunctionTypeGetResult | ( | MlirType | type, |
intptr_t | pos | ||
) |
Returns the pos-th result type.
Definition at line 516 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirFunctionTypeGetTypeID | ( | void | ) |
Returns the typeID of an Function type.
Definition at line 484 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirIndexTypeGet | ( | MlirContext | ctx | ) |
Creates an index type in the given context.
The type is owned by the context.
Definition at line 69 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirIndexTypeGetTypeID | ( | void | ) |
Returns the typeID of an Index type.
Definition at line 63 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirIntegerTypeGet | ( | MlirContext | ctx, |
unsigned | bitwidth | ||
) |
Creates a signless integer type of the given bitwidth in the context.
The type is owned by the context.
Definition at line 31 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirIntegerTypeGetTypeID | ( | void | ) |
Returns the typeID of an Integer type.
Definition at line 25 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED unsigned mlirIntegerTypeGetWidth | ( | MlirType | type | ) |
Returns the bitwidth of an integer type.
Definition at line 43 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirIntegerTypeIsSigned | ( | MlirType | type | ) |
Checks whether the given integer type is signed.
Definition at line 51 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirIntegerTypeIsSignless | ( | MlirType | type | ) |
Checks whether the given integer type is signless.
Definition at line 47 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirIntegerTypeIsUnsigned | ( | MlirType | type | ) |
Checks whether the given integer type is unsigned.
Definition at line 55 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED MlirType mlirIntegerTypeSignedGet | ( | MlirContext | ctx, |
unsigned | bitwidth | ||
) |
Creates a signed integer type of the given bitwidth in the context.
The type is owned by the context.
Definition at line 35 of file BuiltinTypes.cpp.
References mlir::get(), mlir::quant::QuantizationFlags::Signed, unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirIntegerTypeUnsignedGet | ( | MlirContext | ctx, |
unsigned | bitwidth | ||
) |
Creates an unsigned integer type of the given bitwidth in the context.
The type is owned by the context.
Definition at line 39 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirMemRefTypeContiguousGet | ( | MlirType | elementType, |
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirAttribute | memorySpace | ||
) |
Creates a MemRef type with the given rank, shape, memory space and element type in the same context as the element type.
The type has no affine maps, i.e. represents a default row-major contiguous memref. The type is owned by the context.
Definition at line 400 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirMemRefTypeContiguousGetChecked | ( | MlirLocation | loc, |
MlirType | elementType, | ||
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirAttribute | memorySpace | ||
) |
Same as "mlirMemRefTypeContiguousGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 408 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirMemRefTypeGet | ( | MlirType | elementType, |
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirAttribute | layout, | ||
MlirAttribute | memorySpace | ||
) |
Creates a MemRef type with the given rank and shape, a potentially empty list of affine layout maps, the given memory space and element type, in the same context as element type.
The type is owned by the context.
Definition at line 376 of file BuiltinTypes.cpp.
References mlir::get(), mlirAttributeIsNull(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAffineMap mlirMemRefTypeGetAffineMap | ( | MlirType | type | ) |
Returns the affine map of the given MemRef type.
Definition at line 421 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirMemRefTypeGetChecked | ( | MlirLocation | loc, |
MlirType | elementType, | ||
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirAttribute | layout, | ||
MlirAttribute | memorySpace | ||
) |
Same as "mlirMemRefTypeGet" but returns a nullptr-wrapping MlirType o illegal arguments, emitting appropriate diagnostics.
Definition at line 387 of file BuiltinTypes.cpp.
References mlirAttributeIsNull(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirAttribute mlirMemRefTypeGetLayout | ( | MlirType | type | ) |
Returns the layout of the given MemRef type.
Definition at line 417 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirAttribute mlirMemRefTypeGetMemorySpace | ( | MlirType | type | ) |
Returns the memory space of the given MemRef type.
Definition at line 425 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirMemRefTypeGetTypeID | ( | void | ) |
Returns the typeID of an MemRef type.
Definition at line 370 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirNoneTypeGet | ( | MlirContext | ctx | ) |
Creates a None type in the given context.
The type is owned by the context.
Definition at line 191 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirTypeID mlirNoneTypeGetTypeID | ( | void | ) |
Returns the typeID of an None type.
Definition at line 185 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirOpaqueTypeGet | ( | MlirContext | ctx, |
MlirStringRef | dialectNamespace, | ||
MlirStringRef | typeData | ||
) |
Creates an opaque type in the given context associated with the dialect identified by its namespace.
The type contains opaque byte data of the specified length (data need not be null-terminated).
Definition at line 532 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirStringRef mlirOpaqueTypeGetData | ( | MlirType | type | ) |
Returns the raw data as a string reference.
The data remains live as long as the context in which the type lives.
Definition at line 544 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirStringRef mlirOpaqueTypeGetDialectNamespace | ( | MlirType | type | ) |
Returns the namespace of the dialect with which the given opaque type is associated.
The namespace string is owned by the context.
Definition at line 539 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirOpaqueTypeGetTypeID | ( | void | ) |
Returns the typeID of an Opaque type.
Definition at line 526 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirRankedTensorTypeGet | ( | intptr_t | rank, |
const int64_t * | shape, | ||
MlirType | elementType, | ||
MlirAttribute | encoding | ||
) |
Creates a tensor type of a fixed rank with the given shape, element type, and optional encoding in the same context as the element type.
The type is owned by the context. Tensor types without any specific encoding field should assign mlirAttributeGetNull() to this parameter.
Definition at line 333 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirRankedTensorTypeGetChecked | ( | MlirLocation | loc, |
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirType | elementType, | ||
MlirAttribute | encoding | ||
) |
Same as "mlirRankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 340 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirAttribute mlirRankedTensorTypeGetEncoding | ( | MlirType | type | ) |
Gets the 'encoding' attribute from the ranked tensor type, returning a null attribute if none.
Definition at line 349 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirRankedTensorTypeGetTypeID | ( | void | ) |
Returns the typeID of an RankedTensor type.
Definition at line 317 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED int64_t mlirShapedTypeGetDimSize | ( | MlirType | type, |
intptr_t | dim | ||
) |
Returns the dim-th dimension of the given ranked shaped type.
Definition at line 242 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED int64_t mlirShapedTypeGetDynamicSize | ( | void | ) |
Returns the value indicating a dynamic size in a shaped type.
Prefer mlirShapedTypeIsDynamicSize to direct comparisons with this value.
Definition at line 247 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED int64_t mlirShapedTypeGetDynamicStrideOrOffset | ( | void | ) |
Returns the value indicating a dynamic stride or offset in a shaped type.
Prefer mlirShapedTypeGetDynamicStrideOrOffset to direct comparisons with this value.
Definition at line 257 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirShapedTypeGetElementType | ( | MlirType | type | ) |
Returns the element type of the shaped type.
Definition at line 221 of file BuiltinTypes.cpp.
References getElementType(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED int64_t mlirShapedTypeGetRank | ( | MlirType | type | ) |
Returns the rank of the given ranked shaped type.
Definition at line 229 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirShapedTypeHasRank | ( | MlirType | type | ) |
Checks whether the given shaped type is ranked.
Definition at line 225 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirShapedTypeHasStaticShape | ( | MlirType | type | ) |
Checks whether the given shaped type has a static shape.
Definition at line 233 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirShapedTypeIsDynamicDim | ( | MlirType | type, |
intptr_t | dim | ||
) |
Checks wither the dim-th dimension of the given shaped type is dynamic.
Definition at line 237 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirShapedTypeIsDynamicSize | ( | int64_t | size | ) |
Checks whether the given value is used as a placeholder for dynamic sizes in shaped types.
Definition at line 249 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED bool mlirShapedTypeIsDynamicStrideOrOffset | ( | int64_t | val | ) |
Checks whether the given value is used as a placeholder for dynamic strides and offsets in shaped types.
Definition at line 253 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirTF32TypeGet | ( | MlirContext | ctx | ) |
Creates a TF32 type in the given context.
The type is owned by the context.
Definition at line 161 of file BuiltinTypes.cpp.
References mlir::FloatType::getTF32(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirTupleTypeGet | ( | MlirContext | ctx, |
intptr_t | numElements, | ||
MlirType const * | elements | ||
) |
Creates a tuple type that consists of the given list of elemental types.
The type is owned by the context.
Definition at line 464 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), unwrapList(), and wrap().
MLIR_CAPI_EXPORTED intptr_t mlirTupleTypeGetNumTypes | ( | MlirType | type | ) |
Returns the number of types contained in a tuple.
Definition at line 471 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED MlirType mlirTupleTypeGetType | ( | MlirType | type, |
intptr_t | pos | ||
) |
Returns the pos-th type in the tuple type.
Definition at line 475 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirTupleTypeGetTypeID | ( | void | ) |
Returns the typeID of an Tuple type.
Definition at line 458 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsABF16 | ( | MlirType | type | ) |
Checks whether the given type is a bf16 type.
Definition at line 141 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAComplex | ( | MlirType | type | ) |
Checks whether the given type is a Complex type.
Definition at line 201 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAF16 | ( | MlirType | type | ) |
Checks whether the given type is an f16 type.
Definition at line 149 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAF32 | ( | MlirType | type | ) |
Checks whether the given type is an f32 type.
Definition at line 167 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAF64 | ( | MlirType | type | ) |
Checks whether the given type is an f64 type.
Definition at line 175 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3B11FNUZ | ( | MlirType | type | ) |
Checks whether the given type is an f8E4M3B11FNUZ type.
Definition at line 129 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3FN | ( | MlirType | type | ) |
Checks whether the given type is an f8E4M3FN type.
Definition at line 93 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E4M3FNUZ | ( | MlirType | type | ) |
Checks whether the given type is an f8E4M3FNUZ type.
Definition at line 117 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E5M2 | ( | MlirType | type | ) |
Checks whether the given type is an f8E5M2 type.
Definition at line 81 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFloat8E5M2FNUZ | ( | MlirType | type | ) |
Checks whether the given type is an f8E5M2FNUZ type.
Definition at line 105 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAFunction | ( | MlirType | type | ) |
Checks whether the given type is a function type.
Definition at line 488 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAIndex | ( | MlirType | type | ) |
Checks whether the given type is an index type.
Definition at line 65 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAInteger | ( | MlirType | type | ) |
Checks whether the given type is an integer type.
Definition at line 27 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAMemRef | ( | MlirType | type | ) |
Checks whether the given type is a MemRef type.
Definition at line 372 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsANone | ( | MlirType | type | ) |
Checks whether the given type is a None type.
Definition at line 187 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAOpaque | ( | MlirType | type | ) |
Checks whether the given type is an opaque type.
Definition at line 528 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsARankedTensor | ( | MlirType | type | ) |
Checks whether the given type is a ranked tensor type.
Definition at line 321 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAShaped | ( | MlirType | type | ) |
Checks whether the given type is a Shaped type.
Definition at line 217 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsATensor | ( | MlirType | type | ) |
Checks whether the given type is a Tensor type.
Definition at line 313 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsATF32 | ( | MlirType | type | ) |
Checks whether the given type is an TF32 type.
Definition at line 159 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsATuple | ( | MlirType | type | ) |
Checks whether the given type is a tuple type.
Definition at line 460 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAUnrankedMemRef | ( | MlirType | type | ) |
Checks whether the given type is an UnrankedMemRef type.
Definition at line 433 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAUnrankedTensor | ( | MlirType | type | ) |
Checks whether the given type is an unranked tensor type.
Definition at line 329 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirTypeIsAVector | ( | MlirType | type | ) |
Checks whether the given type is a Vector type.
Definition at line 267 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED MlirAttribute mlirUnrankedMemrefGetMemorySpace | ( | MlirType | type | ) |
Returns the memory spcae of the given Unranked MemRef type.
Definition at line 450 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirUnrankedMemRefTypeGet | ( | MlirType | elementType, |
MlirAttribute | memorySpace | ||
) |
Creates an Unranked MemRef type with the given element type and in the given memory space.
The type is owned by the context of element type.
Definition at line 437 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirUnrankedMemRefTypeGetChecked | ( | MlirLocation | loc, |
MlirType | elementType, | ||
MlirAttribute | memorySpace | ||
) |
Same as "mlirUnrankedMemRefTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 443 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirUnrankedMemRefTypeGetTypeID | ( | void | ) |
Returns the typeID of an UnrankedMemRef type.
Definition at line 429 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirUnrankedTensorTypeGet | ( | MlirType | elementType | ) |
Creates an unranked tensor type with the given element type in the same context as the element type.
The type is owned by the context.
Definition at line 353 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirUnrankedTensorTypeGetChecked | ( | MlirLocation | loc, |
MlirType | elementType | ||
) |
Same as "mlirUnrankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 357 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirUnrankedTensorTypeGetTypeID | ( | void | ) |
Returns the typeID of an UnrankedTensor type.
Definition at line 325 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED MlirType mlirVectorTypeGet | ( | intptr_t | rank, |
const int64_t * | shape, | ||
MlirType | elementType | ||
) |
Creates a vector type of the shape identified by its rank and dimensions, with the given element type in the same context as the element type.
The type is owned by the context.
Definition at line 271 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirVectorTypeGetChecked | ( | MlirLocation | loc, |
intptr_t | rank, | ||
const int64_t * | shape, | ||
MlirType | elementType | ||
) |
Same as "mlirVectorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 277 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirType mlirVectorTypeGetScalable | ( | intptr_t | rank, |
const int64_t * | shape, | ||
const bool * | scalable, | ||
MlirType | elementType | ||
) |
Creates a scalable vector type with the shape identified by its rank and dimensions.
A subset of dimensions may be marked as scalable via the corresponding flag list, which is expected to have as many entries as the rank of the vector. The vector is created in the same context as the element type.
Definition at line 284 of file BuiltinTypes.cpp.
References mlir::get(), unwrap(), and wrap().
MLIR_CAPI_EXPORTED MlirType mlirVectorTypeGetScalableChecked | ( | MlirLocation | loc, |
intptr_t | rank, | ||
const int64_t * | shape, | ||
const bool * | scalable, | ||
MlirType | elementType | ||
) |
Same as "mlirVectorTypeGetScalable" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.
Definition at line 291 of file BuiltinTypes.cpp.
MLIR_CAPI_EXPORTED MlirTypeID mlirVectorTypeGetTypeID | ( | void | ) |
Returns the typeID of an Vector type.
Definition at line 265 of file BuiltinTypes.cpp.
References wrap().
MLIR_CAPI_EXPORTED bool mlirVectorTypeIsDimScalable | ( | MlirType | type, |
intptr_t | dim | ||
) |
Checks whether the "dim"-th dimension of the given vector is scalable.
Definition at line 305 of file BuiltinTypes.cpp.
References unwrap().
MLIR_CAPI_EXPORTED bool mlirVectorTypeIsScalable | ( | MlirType | type | ) |
Checks whether the given vector type is scalable, i.e., has at least one scalable dimension.
Definition at line 301 of file BuiltinTypes.cpp.
References unwrap().