MLIR  20.0.0git
Functions
BuiltinTypes.cpp File Reference
#include "mlir-c/BuiltinTypes.h"
#include "mlir-c/AffineMap.h"
#include "mlir-c/IR.h"
#include "mlir-c/Support.h"
#include "mlir/CAPI/AffineMap.h"
#include "mlir/CAPI/IR.h"
#include "mlir/CAPI/Support.h"
#include "mlir/IR/AffineMap.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/Types.h"
#include <algorithm>

Go to the source code of this file.

Functions

MlirTypeID mlirIntegerTypeGetTypeID ()
 Returns the typeID of an Integer type. More...
 
bool mlirTypeIsAInteger (MlirType type)
 Checks whether the given type is an integer type. More...
 
MlirType mlirIntegerTypeGet (MlirContext ctx, unsigned bitwidth)
 Creates a signless integer type of the given bitwidth in the context. More...
 
MlirType mlirIntegerTypeSignedGet (MlirContext ctx, unsigned bitwidth)
 Creates a signed integer type of the given bitwidth in the context. More...
 
MlirType mlirIntegerTypeUnsignedGet (MlirContext ctx, unsigned bitwidth)
 Creates an unsigned integer type of the given bitwidth in the context. More...
 
unsigned mlirIntegerTypeGetWidth (MlirType type)
 Returns the bitwidth of an integer type. More...
 
bool mlirIntegerTypeIsSignless (MlirType type)
 Checks whether the given integer type is signless. More...
 
bool mlirIntegerTypeIsSigned (MlirType type)
 Checks whether the given integer type is signed. More...
 
bool mlirIntegerTypeIsUnsigned (MlirType type)
 Checks whether the given integer type is unsigned. More...
 
MlirTypeID mlirIndexTypeGetTypeID ()
 Returns the typeID of an Index type. More...
 
bool mlirTypeIsAIndex (MlirType type)
 Checks whether the given type is an index type. More...
 
MlirType mlirIndexTypeGet (MlirContext ctx)
 Creates an index type in the given context. More...
 
bool mlirTypeIsAFloat (MlirType type)
 Checks whether the given type is a floating-point type. More...
 
unsigned mlirFloatTypeGetWidth (MlirType type)
 Returns the bitwidth of a floating-point type. More...
 
MlirTypeID mlirFloat4E2M1FNTypeGetTypeID ()
 Returns the typeID of an Float4E2M1FN type. More...
 
bool mlirTypeIsAFloat4E2M1FN (MlirType type)
 Checks whether the given type is an f4E2M1FN type. More...
 
MlirType mlirFloat4E2M1FNTypeGet (MlirContext ctx)
 Creates an f4E2M1FN type in the given context. More...
 
MlirTypeID mlirFloat6E2M3FNTypeGetTypeID ()
 Returns the typeID of an Float6E2M3FN type. More...
 
bool mlirTypeIsAFloat6E2M3FN (MlirType type)
 Checks whether the given type is an f6E2M3FN type. More...
 
MlirType mlirFloat6E2M3FNTypeGet (MlirContext ctx)
 Creates an f6E2M3FN type in the given context. More...
 
MlirTypeID mlirFloat6E3M2FNTypeGetTypeID ()
 Returns the typeID of an Float6E3M2FN type. More...
 
bool mlirTypeIsAFloat6E3M2FN (MlirType type)
 Checks whether the given type is an f6E3M2FN type. More...
 
MlirType mlirFloat6E3M2FNTypeGet (MlirContext ctx)
 Creates an f6E3M2FN type in the given context. More...
 
MlirTypeID mlirFloat8E5M2TypeGetTypeID ()
 Returns the typeID of an Float8E5M2 type. More...
 
bool mlirTypeIsAFloat8E5M2 (MlirType type)
 Checks whether the given type is an f8E5M2 type. More...
 
MlirType mlirFloat8E5M2TypeGet (MlirContext ctx)
 Creates an f8E5M2 type in the given context. More...
 
MlirTypeID mlirFloat8E4M3TypeGetTypeID ()
 Returns the typeID of an Float8E4M3 type. More...
 
bool mlirTypeIsAFloat8E4M3 (MlirType type)
 Checks whether the given type is an f8E4M3 type. More...
 
MlirType mlirFloat8E4M3TypeGet (MlirContext ctx)
 Creates an f8E4M3 type in the given context. More...
 
MlirTypeID mlirFloat8E4M3FNTypeGetTypeID ()
 Returns the typeID of an Float8E4M3FN type. More...
 
bool mlirTypeIsAFloat8E4M3FN (MlirType type)
 Checks whether the given type is an f8E4M3FN type. More...
 
MlirType mlirFloat8E4M3FNTypeGet (MlirContext ctx)
 Creates an f8E4M3FN type in the given context. More...
 
MlirTypeID mlirFloat8E5M2FNUZTypeGetTypeID ()
 Returns the typeID of an Float8E5M2FNUZ type. More...
 
bool mlirTypeIsAFloat8E5M2FNUZ (MlirType type)
 Checks whether the given type is an f8E5M2FNUZ type. More...
 
MlirType mlirFloat8E5M2FNUZTypeGet (MlirContext ctx)
 Creates an f8E5M2FNUZ type in the given context. More...
 
MlirTypeID mlirFloat8E4M3FNUZTypeGetTypeID ()
 Returns the typeID of an Float8E4M3FNUZ type. More...
 
bool mlirTypeIsAFloat8E4M3FNUZ (MlirType type)
 Checks whether the given type is an f8E4M3FNUZ type. More...
 
MlirType mlirFloat8E4M3FNUZTypeGet (MlirContext ctx)
 Creates an f8E4M3FNUZ type in the given context. More...
 
MlirTypeID mlirFloat8E4M3B11FNUZTypeGetTypeID ()
 Returns the typeID of an Float8E4M3B11FNUZ type. More...
 
bool mlirTypeIsAFloat8E4M3B11FNUZ (MlirType type)
 Checks whether the given type is an f8E4M3B11FNUZ type. More...
 
MlirType mlirFloat8E4M3B11FNUZTypeGet (MlirContext ctx)
 Creates an f8E4M3B11FNUZ type in the given context. More...
 
MlirTypeID mlirFloat8E3M4TypeGetTypeID ()
 Returns the typeID of an Float8E3M4 type. More...
 
bool mlirTypeIsAFloat8E3M4 (MlirType type)
 Checks whether the given type is an f8E3M4 type. More...
 
MlirType mlirFloat8E3M4TypeGet (MlirContext ctx)
 Creates an f8E3M4 type in the given context. More...
 
MlirTypeID mlirFloat8E8M0FNUTypeGetTypeID ()
 Returns the typeID of an Float8E8M0FNU type. More...
 
bool mlirTypeIsAFloat8E8M0FNU (MlirType type)
 Checks whether the given type is an f8E8M0FNU type. More...
 
MlirType mlirFloat8E8M0FNUTypeGet (MlirContext ctx)
 Creates an f8E8M0FNU type in the given context. More...
 
MlirTypeID mlirBFloat16TypeGetTypeID ()
 Returns the typeID of an BFloat16 type. More...
 
bool mlirTypeIsABF16 (MlirType type)
 Checks whether the given type is a bf16 type. More...
 
MlirType mlirBF16TypeGet (MlirContext ctx)
 Creates a bf16 type in the given context. More...
 
MlirTypeID mlirFloat16TypeGetTypeID ()
 Returns the typeID of an Float16 type. More...
 
bool mlirTypeIsAF16 (MlirType type)
 Checks whether the given type is an f16 type. More...
 
MlirType mlirF16TypeGet (MlirContext ctx)
 Creates an f16 type in the given context. More...
 
MlirTypeID mlirFloatTF32TypeGetTypeID ()
 Returns the typeID of a TF32 type. More...
 
bool mlirTypeIsATF32 (MlirType type)
 Checks whether the given type is an TF32 type. More...
 
MlirType mlirTF32TypeGet (MlirContext ctx)
 Creates a TF32 type in the given context. More...
 
MlirTypeID mlirFloat32TypeGetTypeID ()
 Returns the typeID of an Float32 type. More...
 
bool mlirTypeIsAF32 (MlirType type)
 Checks whether the given type is an f32 type. More...
 
MlirType mlirF32TypeGet (MlirContext ctx)
 Creates an f32 type in the given context. More...
 
MlirTypeID mlirFloat64TypeGetTypeID ()
 Returns the typeID of an Float64 type. More...
 
bool mlirTypeIsAF64 (MlirType type)
 Checks whether the given type is an f64 type. More...
 
MlirType mlirF64TypeGet (MlirContext ctx)
 Creates a f64 type in the given context. More...
 
MlirTypeID mlirNoneTypeGetTypeID ()
 Returns the typeID of an None type. More...
 
bool mlirTypeIsANone (MlirType type)
 Checks whether the given type is a None type. More...
 
MlirType mlirNoneTypeGet (MlirContext ctx)
 Creates a None type in the given context. More...
 
MlirTypeID mlirComplexTypeGetTypeID ()
 Returns the typeID of an Complex type. More...
 
bool mlirTypeIsAComplex (MlirType type)
 Checks whether the given type is a Complex type. More...
 
MlirType mlirComplexTypeGet (MlirType elementType)
 Creates a complex type with the given element type in the same context as the element type. More...
 
MlirType mlirComplexTypeGetElementType (MlirType type)
 Returns the element type of the given complex type. More...
 
bool mlirTypeIsAShaped (MlirType type)
 Checks whether the given type is a Shaped type. More...
 
MlirType mlirShapedTypeGetElementType (MlirType type)
 Returns the element type of the shaped type. More...
 
bool mlirShapedTypeHasRank (MlirType type)
 Checks whether the given shaped type is ranked. More...
 
int64_t mlirShapedTypeGetRank (MlirType type)
 Returns the rank of the given ranked shaped type. More...
 
bool mlirShapedTypeHasStaticShape (MlirType type)
 Checks whether the given shaped type has a static shape. More...
 
bool mlirShapedTypeIsDynamicDim (MlirType type, intptr_t dim)
 Checks wither the dim-th dimension of the given shaped type is dynamic. More...
 
int64_t mlirShapedTypeGetDimSize (MlirType type, intptr_t dim)
 Returns the dim-th dimension of the given ranked shaped type. More...
 
int64_t mlirShapedTypeGetDynamicSize ()
 Returns the value indicating a dynamic size in a shaped type. More...
 
bool mlirShapedTypeIsDynamicSize (int64_t size)
 Checks whether the given value is used as a placeholder for dynamic sizes in shaped types. More...
 
bool mlirShapedTypeIsDynamicStrideOrOffset (int64_t val)
 Checks whether the given value is used as a placeholder for dynamic strides and offsets in shaped types. More...
 
int64_t mlirShapedTypeGetDynamicStrideOrOffset ()
 Returns the value indicating a dynamic stride or offset in a shaped type. More...
 
MlirTypeID mlirVectorTypeGetTypeID ()
 Returns the typeID of an Vector type. More...
 
bool mlirTypeIsAVector (MlirType type)
 Checks whether the given type is a Vector type. More...
 
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...
 
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...
 
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...
 
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...
 
bool mlirVectorTypeIsScalable (MlirType type)
 Checks whether the given vector type is scalable, i.e., has at least one scalable dimension. More...
 
bool mlirVectorTypeIsDimScalable (MlirType type, intptr_t dim)
 Checks whether the "dim"-th dimension of the given vector is scalable. More...
 
bool mlirTypeIsATensor (MlirType type)
 Checks whether the given type is a Tensor type. More...
 
MlirTypeID mlirRankedTensorTypeGetTypeID ()
 Returns the typeID of an RankedTensor type. More...
 
bool mlirTypeIsARankedTensor (MlirType type)
 Checks whether the given type is a ranked tensor type. More...
 
MlirTypeID mlirUnrankedTensorTypeGetTypeID ()
 Returns the typeID of an UnrankedTensor type. More...
 
bool mlirTypeIsAUnrankedTensor (MlirType type)
 Checks whether the given type is an unranked tensor type. More...
 
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...
 
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...
 
MlirAttribute mlirRankedTensorTypeGetEncoding (MlirType type)
 Gets the 'encoding' attribute from the ranked tensor type, returning a null attribute if none. More...
 
MlirType mlirUnrankedTensorTypeGet (MlirType elementType)
 Creates an unranked tensor type with the given element type in the same context as the element type. More...
 
MlirType mlirUnrankedTensorTypeGetChecked (MlirLocation loc, MlirType elementType)
 Same as "mlirUnrankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More...
 
MlirType mlirUnrankedTensorTypeGetElementType (MlirType type)
 
MlirTypeID mlirMemRefTypeGetTypeID ()
 Returns the typeID of an MemRef type. More...
 
bool mlirTypeIsAMemRef (MlirType type)
 Checks whether the given type is a MemRef type. More...
 
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...
 
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...
 
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...
 
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...
 
MlirAttribute mlirMemRefTypeGetLayout (MlirType type)
 Returns the layout of the given MemRef type. More...
 
MlirAffineMap mlirMemRefTypeGetAffineMap (MlirType type)
 Returns the affine map of the given MemRef type. More...
 
MlirAttribute mlirMemRefTypeGetMemorySpace (MlirType type)
 Returns the memory space of the given MemRef type. More...
 
MlirLogicalResult mlirMemRefTypeGetStridesAndOffset (MlirType type, int64_t *strides, int64_t *offset)
 Returns the strides of the MemRef if the layout map is in strided form. More...
 
MlirTypeID mlirUnrankedMemRefTypeGetTypeID ()
 Returns the typeID of an UnrankedMemRef type. More...
 
bool mlirTypeIsAUnrankedMemRef (MlirType type)
 Checks whether the given type is an UnrankedMemRef type. More...
 
MlirType mlirUnrankedMemRefTypeGet (MlirType elementType, MlirAttribute memorySpace)
 Creates an Unranked MemRef type with the given element type and in the given memory space. More...
 
MlirType mlirUnrankedMemRefTypeGetChecked (MlirLocation loc, MlirType elementType, MlirAttribute memorySpace)
 Same as "mlirUnrankedMemRefTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics. More...
 
MlirAttribute mlirUnrankedMemrefGetMemorySpace (MlirType type)
 Returns the memory spcae of the given Unranked MemRef type. More...
 
MlirTypeID mlirTupleTypeGetTypeID ()
 Returns the typeID of an Tuple type. More...
 
bool mlirTypeIsATuple (MlirType type)
 Checks whether the given type is a tuple type. More...
 
MlirType mlirTupleTypeGet (MlirContext ctx, intptr_t numElements, MlirType const *elements)
 Creates a tuple type that consists of the given list of elemental types. More...
 
intptr_t mlirTupleTypeGetNumTypes (MlirType type)
 Returns the number of types contained in a tuple. More...
 
MlirType mlirTupleTypeGetType (MlirType type, intptr_t pos)
 Returns the pos-th type in the tuple type. More...
 
MlirTypeID mlirFunctionTypeGetTypeID ()
 Returns the typeID of an Function type. More...
 
bool mlirTypeIsAFunction (MlirType type)
 Checks whether the given type is a function type. More...
 
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...
 
intptr_t mlirFunctionTypeGetNumInputs (MlirType type)
 Returns the number of input types. More...
 
intptr_t mlirFunctionTypeGetNumResults (MlirType type)
 Returns the number of result types. More...
 
MlirType mlirFunctionTypeGetInput (MlirType type, intptr_t pos)
 Returns the pos-th input type. More...
 
MlirType mlirFunctionTypeGetResult (MlirType type, intptr_t pos)
 Returns the pos-th result type. More...
 
MlirTypeID mlirOpaqueTypeGetTypeID ()
 Returns the typeID of an Opaque type. More...
 
bool mlirTypeIsAOpaque (MlirType type)
 Checks whether the given type is an opaque type. More...
 
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...
 
MlirStringRef mlirOpaqueTypeGetDialectNamespace (MlirType type)
 Returns the namespace of the dialect with which the given opaque type is associated. More...
 
MlirStringRef mlirOpaqueTypeGetData (MlirType type)
 Returns the raw data as a string reference. More...
 

Function Documentation

◆ mlirBF16TypeGet()

MlirType mlirBF16TypeGet ( MlirContext  ctx)

Creates a bf16 type in the given context.

The type is owned by the context.

Definition at line 226 of file BuiltinTypes.cpp.

References mlir::FloatType::getBF16(), unwrap(), and wrap().

◆ mlirBFloat16TypeGetTypeID()

MlirTypeID mlirBFloat16TypeGetTypeID ( void  )

Returns the typeID of an BFloat16 type.

Definition at line 220 of file BuiltinTypes.cpp.

References wrap().

◆ mlirComplexTypeGet()

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 288 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirComplexTypeGetElementType()

MlirType mlirComplexTypeGetElementType ( MlirType  type)

Returns the element type of the given complex type.

Definition at line 292 of file BuiltinTypes.cpp.

References getElementType(), unwrap(), and wrap().

◆ mlirComplexTypeGetTypeID()

MlirTypeID mlirComplexTypeGetTypeID ( void  )

Returns the typeID of an Complex type.

Definition at line 282 of file BuiltinTypes.cpp.

References wrap().

◆ mlirF16TypeGet()

MlirType mlirF16TypeGet ( MlirContext  ctx)

Creates an f16 type in the given context.

The type is owned by the context.

Definition at line 234 of file BuiltinTypes.cpp.

References mlir::FloatType::getF16(), unwrap(), and wrap().

◆ mlirF32TypeGet()

MlirType mlirF32TypeGet ( MlirContext  ctx)

Creates an f32 type in the given context.

The type is owned by the context.

Definition at line 252 of file BuiltinTypes.cpp.

References mlir::FloatType::getF32(), unwrap(), and wrap().

◆ mlirF64TypeGet()

MlirType mlirF64TypeGet ( MlirContext  ctx)

Creates a f64 type in the given context.

The type is owned by the context.

Definition at line 260 of file BuiltinTypes.cpp.

References mlir::FloatType::getF64(), unwrap(), and wrap().

◆ mlirFloat16TypeGetTypeID()

MlirTypeID mlirFloat16TypeGetTypeID ( void  )

Returns the typeID of an Float16 type.

Definition at line 230 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat32TypeGetTypeID()

MlirTypeID mlirFloat32TypeGetTypeID ( void  )

Returns the typeID of an Float32 type.

Definition at line 248 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat4E2M1FNTypeGet()

MlirType mlirFloat4E2M1FNTypeGet ( MlirContext  ctx)

Creates an f4E2M1FN type in the given context.

The type is owned by the context.

Definition at line 96 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat4E2M1FN(), unwrap(), and wrap().

◆ mlirFloat4E2M1FNTypeGetTypeID()

MlirTypeID mlirFloat4E2M1FNTypeGetTypeID ( void  )

Returns the typeID of an Float4E2M1FN type.

Definition at line 88 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat64TypeGetTypeID()

MlirTypeID mlirFloat64TypeGetTypeID ( void  )

Returns the typeID of an Float64 type.

Definition at line 256 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat6E2M3FNTypeGet()

MlirType mlirFloat6E2M3FNTypeGet ( MlirContext  ctx)

Creates an f6E2M3FN type in the given context.

The type is owned by the context.

Definition at line 108 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat6E2M3FN(), unwrap(), and wrap().

◆ mlirFloat6E2M3FNTypeGetTypeID()

MlirTypeID mlirFloat6E2M3FNTypeGetTypeID ( void  )

Returns the typeID of an Float6E2M3FN type.

Definition at line 100 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat6E3M2FNTypeGet()

MlirType mlirFloat6E3M2FNTypeGet ( MlirContext  ctx)

Creates an f6E3M2FN type in the given context.

The type is owned by the context.

Definition at line 120 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat6E3M2FN(), unwrap(), and wrap().

◆ mlirFloat6E3M2FNTypeGetTypeID()

MlirTypeID mlirFloat6E3M2FNTypeGetTypeID ( void  )

Returns the typeID of an Float6E3M2FN type.

Definition at line 112 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E3M4TypeGet()

MlirType mlirFloat8E3M4TypeGet ( MlirContext  ctx)

Creates an f8E3M4 type in the given context.

The type is owned by the context.

Definition at line 204 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E3M4(), unwrap(), and wrap().

◆ mlirFloat8E3M4TypeGetTypeID()

MlirTypeID mlirFloat8E3M4TypeGetTypeID ( void  )

Returns the typeID of an Float8E3M4 type.

Definition at line 196 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E4M3B11FNUZTypeGet()

MlirType mlirFloat8E4M3B11FNUZTypeGet ( MlirContext  ctx)

Creates an f8E4M3B11FNUZ type in the given context.

The type is owned by the context.

Definition at line 192 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E4M3B11FNUZ(), unwrap(), and wrap().

◆ mlirFloat8E4M3B11FNUZTypeGetTypeID()

MlirTypeID mlirFloat8E4M3B11FNUZTypeGetTypeID ( void  )

Returns the typeID of an Float8E4M3B11FNUZ type.

Definition at line 184 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E4M3FNTypeGet()

MlirType mlirFloat8E4M3FNTypeGet ( MlirContext  ctx)

Creates an f8E4M3FN type in the given context.

The type is owned by the context.

Definition at line 156 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E4M3FN(), unwrap(), and wrap().

◆ mlirFloat8E4M3FNTypeGetTypeID()

MlirTypeID mlirFloat8E4M3FNTypeGetTypeID ( void  )

Returns the typeID of an Float8E4M3FN type.

Definition at line 148 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E4M3FNUZTypeGet()

MlirType mlirFloat8E4M3FNUZTypeGet ( MlirContext  ctx)

Creates an f8E4M3FNUZ type in the given context.

The type is owned by the context.

Definition at line 180 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E4M3FNUZ(), unwrap(), and wrap().

◆ mlirFloat8E4M3FNUZTypeGetTypeID()

MlirTypeID mlirFloat8E4M3FNUZTypeGetTypeID ( void  )

Returns the typeID of an Float8E4M3FNUZ type.

Definition at line 172 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E4M3TypeGet()

MlirType mlirFloat8E4M3TypeGet ( MlirContext  ctx)

Creates an f8E4M3 type in the given context.

The type is owned by the context.

Definition at line 144 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E4M3(), unwrap(), and wrap().

◆ mlirFloat8E4M3TypeGetTypeID()

MlirTypeID mlirFloat8E4M3TypeGetTypeID ( void  )

Returns the typeID of an Float8E4M3 type.

Definition at line 136 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E5M2FNUZTypeGet()

MlirType mlirFloat8E5M2FNUZTypeGet ( MlirContext  ctx)

Creates an f8E5M2FNUZ type in the given context.

The type is owned by the context.

Definition at line 168 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E5M2FNUZ(), unwrap(), and wrap().

◆ mlirFloat8E5M2FNUZTypeGetTypeID()

MlirTypeID mlirFloat8E5M2FNUZTypeGetTypeID ( void  )

Returns the typeID of an Float8E5M2FNUZ type.

Definition at line 160 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E5M2TypeGet()

MlirType mlirFloat8E5M2TypeGet ( MlirContext  ctx)

Creates an f8E5M2 type in the given context.

The type is owned by the context.

Definition at line 132 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E5M2(), unwrap(), and wrap().

◆ mlirFloat8E5M2TypeGetTypeID()

MlirTypeID mlirFloat8E5M2TypeGetTypeID ( void  )

Returns the typeID of an Float8E5M2 type.

Definition at line 124 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloat8E8M0FNUTypeGet()

MlirType mlirFloat8E8M0FNUTypeGet ( MlirContext  ctx)

Creates an f8E8M0FNU type in the given context.

The type is owned by the context.

Definition at line 216 of file BuiltinTypes.cpp.

References mlir::FloatType::getFloat8E8M0FNU(), unwrap(), and wrap().

◆ mlirFloat8E8M0FNUTypeGetTypeID()

MlirTypeID mlirFloat8E8M0FNUTypeGetTypeID ( void  )

Returns the typeID of an Float8E8M0FNU type.

Definition at line 208 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloatTF32TypeGetTypeID()

MlirTypeID mlirFloatTF32TypeGetTypeID ( void  )

Returns the typeID of a TF32 type.

Definition at line 238 of file BuiltinTypes.cpp.

References wrap().

◆ mlirFloatTypeGetWidth()

unsigned mlirFloatTypeGetWidth ( MlirType  type)

Returns the bitwidth of a floating-point type.

Definition at line 84 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirFunctionTypeGet()

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 587 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), unwrapList(), and wrap().

◆ mlirFunctionTypeGetInput()

MlirType mlirFunctionTypeGetInput ( MlirType  type,
intptr_t  pos 
)

Returns the pos-th input type.

Definition at line 605 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirFunctionTypeGetNumInputs()

intptr_t mlirFunctionTypeGetNumInputs ( MlirType  type)

Returns the number of input types.

Definition at line 597 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirFunctionTypeGetNumResults()

intptr_t mlirFunctionTypeGetNumResults ( MlirType  type)

Returns the number of result types.

Definition at line 601 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirFunctionTypeGetResult()

MlirType mlirFunctionTypeGetResult ( MlirType  type,
intptr_t  pos 
)

Returns the pos-th result type.

Definition at line 611 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirFunctionTypeGetTypeID()

MlirTypeID mlirFunctionTypeGetTypeID ( void  )

Returns the typeID of an Function type.

Definition at line 579 of file BuiltinTypes.cpp.

References wrap().

◆ mlirIndexTypeGet()

MlirType mlirIndexTypeGet ( MlirContext  ctx)

Creates an index type in the given context.

The type is owned by the context.

Definition at line 72 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirIndexTypeGetTypeID()

MlirTypeID mlirIndexTypeGetTypeID ( void  )

Returns the typeID of an Index type.

Definition at line 66 of file BuiltinTypes.cpp.

References wrap().

◆ mlirIntegerTypeGet()

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 34 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirIntegerTypeGetTypeID()

MlirTypeID mlirIntegerTypeGetTypeID ( void  )

Returns the typeID of an Integer type.

Definition at line 28 of file BuiltinTypes.cpp.

References wrap().

◆ mlirIntegerTypeGetWidth()

unsigned mlirIntegerTypeGetWidth ( MlirType  type)

Returns the bitwidth of an integer type.

Definition at line 46 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirIntegerTypeIsSigned()

bool mlirIntegerTypeIsSigned ( MlirType  type)

Checks whether the given integer type is signed.

Definition at line 54 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirIntegerTypeIsSignless()

bool mlirIntegerTypeIsSignless ( MlirType  type)

Checks whether the given integer type is signless.

Definition at line 50 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirIntegerTypeIsUnsigned()

bool mlirIntegerTypeIsUnsigned ( MlirType  type)

Checks whether the given integer type is unsigned.

Definition at line 58 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirIntegerTypeSignedGet()

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 38 of file BuiltinTypes.cpp.

References mlir::get(), mlir::quant::QuantizationFlags::Signed, unwrap(), and wrap().

◆ mlirIntegerTypeUnsignedGet()

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 42 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirMemRefTypeContiguousGet()

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 483 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirMemRefTypeContiguousGetChecked()

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 491 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirMemRefTypeGet()

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 459 of file BuiltinTypes.cpp.

References mlir::get(), mlirAttributeIsNull(), unwrap(), and wrap().

◆ mlirMemRefTypeGetAffineMap()

MlirAffineMap mlirMemRefTypeGetAffineMap ( MlirType  type)

Returns the affine map of the given MemRef type.

Definition at line 504 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirMemRefTypeGetChecked()

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 470 of file BuiltinTypes.cpp.

References mlirAttributeIsNull(), unwrap(), and wrap().

◆ mlirMemRefTypeGetLayout()

MlirAttribute mlirMemRefTypeGetLayout ( MlirType  type)

Returns the layout of the given MemRef type.

Definition at line 500 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirMemRefTypeGetMemorySpace()

MlirAttribute mlirMemRefTypeGetMemorySpace ( MlirType  type)

Returns the memory space of the given MemRef type.

Definition at line 508 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirMemRefTypeGetStridesAndOffset()

MlirLogicalResult mlirMemRefTypeGetStridesAndOffset ( MlirType  type,
int64_t *  strides,
int64_t *  offset 
)

Returns the strides of the MemRef if the layout map is in strided form.

Both strides and offset are out params. strides must point to pre-allocated memory of length equal to the rank of the memref.

Definition at line 512 of file BuiltinTypes.cpp.

References copy(), mlir::getStridesAndOffset(), mlirLogicalResultFailure(), mlirLogicalResultSuccess(), and unwrap().

◆ mlirMemRefTypeGetTypeID()

MlirTypeID mlirMemRefTypeGetTypeID ( void  )

Returns the typeID of an MemRef type.

Definition at line 453 of file BuiltinTypes.cpp.

References wrap().

◆ mlirNoneTypeGet()

MlirType mlirNoneTypeGet ( MlirContext  ctx)

Creates a None type in the given context.

The type is owned by the context.

Definition at line 274 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirNoneTypeGetTypeID()

MlirTypeID mlirNoneTypeGetTypeID ( void  )

Returns the typeID of an None type.

Definition at line 268 of file BuiltinTypes.cpp.

References wrap().

◆ mlirOpaqueTypeGet()

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 627 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirOpaqueTypeGetData()

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 639 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirOpaqueTypeGetDialectNamespace()

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 634 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirOpaqueTypeGetTypeID()

MlirTypeID mlirOpaqueTypeGetTypeID ( void  )

Returns the typeID of an Opaque type.

Definition at line 621 of file BuiltinTypes.cpp.

References wrap().

◆ mlirRankedTensorTypeGet()

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 416 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirRankedTensorTypeGetChecked()

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 423 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirRankedTensorTypeGetEncoding()

MlirAttribute mlirRankedTensorTypeGetEncoding ( MlirType  type)

Gets the 'encoding' attribute from the ranked tensor type, returning a null attribute if none.

Definition at line 432 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirRankedTensorTypeGetTypeID()

MlirTypeID mlirRankedTensorTypeGetTypeID ( void  )

Returns the typeID of an RankedTensor type.

Definition at line 400 of file BuiltinTypes.cpp.

References wrap().

◆ mlirShapedTypeGetDimSize()

int64_t mlirShapedTypeGetDimSize ( MlirType  type,
intptr_t  dim 
)

Returns the dim-th dimension of the given ranked shaped type.

Definition at line 325 of file BuiltinTypes.cpp.

References unwrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeGetDynamicSize()

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 330 of file BuiltinTypes.cpp.

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeGetDynamicStrideOrOffset()

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 340 of file BuiltinTypes.cpp.

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeGetElementType()

MlirType mlirShapedTypeGetElementType ( MlirType  type)

Returns the element type of the shaped type.

Definition at line 304 of file BuiltinTypes.cpp.

References getElementType(), unwrap(), and wrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeGetRank()

int64_t mlirShapedTypeGetRank ( MlirType  type)

Returns the rank of the given ranked shaped type.

Definition at line 312 of file BuiltinTypes.cpp.

References unwrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeHasRank()

bool mlirShapedTypeHasRank ( MlirType  type)

Checks whether the given shaped type is ranked.

Definition at line 308 of file BuiltinTypes.cpp.

References unwrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeHasStaticShape()

bool mlirShapedTypeHasStaticShape ( MlirType  type)

Checks whether the given shaped type has a static shape.

Definition at line 316 of file BuiltinTypes.cpp.

References unwrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeIsDynamicDim()

bool mlirShapedTypeIsDynamicDim ( MlirType  type,
intptr_t  dim 
)

Checks wither the dim-th dimension of the given shaped type is dynamic.

Definition at line 320 of file BuiltinTypes.cpp.

References unwrap().

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeIsDynamicSize()

bool mlirShapedTypeIsDynamicSize ( int64_t  size)

Checks whether the given value is used as a placeholder for dynamic sizes in shaped types.

Definition at line 332 of file BuiltinTypes.cpp.

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirShapedTypeIsDynamicStrideOrOffset()

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 336 of file BuiltinTypes.cpp.

Referenced by mlir::PyShapedType::bindDerived().

◆ mlirTF32TypeGet()

MlirType mlirTF32TypeGet ( MlirContext  ctx)

Creates a TF32 type in the given context.

The type is owned by the context.

Definition at line 244 of file BuiltinTypes.cpp.

References mlir::FloatType::getTF32(), unwrap(), and wrap().

◆ mlirTupleTypeGet()

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 559 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), unwrapList(), and wrap().

◆ mlirTupleTypeGetNumTypes()

intptr_t mlirTupleTypeGetNumTypes ( MlirType  type)

Returns the number of types contained in a tuple.

Definition at line 566 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTupleTypeGetType()

MlirType mlirTupleTypeGetType ( MlirType  type,
intptr_t  pos 
)

Returns the pos-th type in the tuple type.

Definition at line 570 of file BuiltinTypes.cpp.

References mlir::getType(), unwrap(), and wrap().

◆ mlirTupleTypeGetTypeID()

MlirTypeID mlirTupleTypeGetTypeID ( void  )

Returns the typeID of an Tuple type.

Definition at line 553 of file BuiltinTypes.cpp.

References wrap().

◆ mlirTypeIsABF16()

bool mlirTypeIsABF16 ( MlirType  type)

Checks whether the given type is a bf16 type.

Definition at line 224 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAComplex()

bool mlirTypeIsAComplex ( MlirType  type)

Checks whether the given type is a Complex type.

Definition at line 284 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAF16()

bool mlirTypeIsAF16 ( MlirType  type)

Checks whether the given type is an f16 type.

Definition at line 232 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAF32()

bool mlirTypeIsAF32 ( MlirType  type)

Checks whether the given type is an f32 type.

Definition at line 250 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAF64()

bool mlirTypeIsAF64 ( MlirType  type)

Checks whether the given type is an f64 type.

Definition at line 258 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat()

bool mlirTypeIsAFloat ( MlirType  type)

Checks whether the given type is a floating-point type.

Definition at line 80 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat4E2M1FN()

bool mlirTypeIsAFloat4E2M1FN ( MlirType  type)

Checks whether the given type is an f4E2M1FN type.

Definition at line 92 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat6E2M3FN()

bool mlirTypeIsAFloat6E2M3FN ( MlirType  type)

Checks whether the given type is an f6E2M3FN type.

Definition at line 104 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat6E3M2FN()

bool mlirTypeIsAFloat6E3M2FN ( MlirType  type)

Checks whether the given type is an f6E3M2FN type.

Definition at line 116 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E3M4()

bool mlirTypeIsAFloat8E3M4 ( MlirType  type)

Checks whether the given type is an f8E3M4 type.

Definition at line 200 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E4M3()

bool mlirTypeIsAFloat8E4M3 ( MlirType  type)

Checks whether the given type is an f8E4M3 type.

Definition at line 140 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E4M3B11FNUZ()

bool mlirTypeIsAFloat8E4M3B11FNUZ ( MlirType  type)

Checks whether the given type is an f8E4M3B11FNUZ type.

Definition at line 188 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E4M3FN()

bool mlirTypeIsAFloat8E4M3FN ( MlirType  type)

Checks whether the given type is an f8E4M3FN type.

Definition at line 152 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E4M3FNUZ()

bool mlirTypeIsAFloat8E4M3FNUZ ( MlirType  type)

Checks whether the given type is an f8E4M3FNUZ type.

Definition at line 176 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E5M2()

bool mlirTypeIsAFloat8E5M2 ( MlirType  type)

Checks whether the given type is an f8E5M2 type.

Definition at line 128 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E5M2FNUZ()

bool mlirTypeIsAFloat8E5M2FNUZ ( MlirType  type)

Checks whether the given type is an f8E5M2FNUZ type.

Definition at line 164 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFloat8E8M0FNU()

bool mlirTypeIsAFloat8E8M0FNU ( MlirType  type)

Checks whether the given type is an f8E8M0FNU type.

Definition at line 212 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAFunction()

bool mlirTypeIsAFunction ( MlirType  type)

Checks whether the given type is a function type.

Definition at line 583 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAIndex()

bool mlirTypeIsAIndex ( MlirType  type)

Checks whether the given type is an index type.

Definition at line 68 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAInteger()

bool mlirTypeIsAInteger ( MlirType  type)

Checks whether the given type is an integer type.

Definition at line 30 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAMemRef()

bool mlirTypeIsAMemRef ( MlirType  type)

Checks whether the given type is a MemRef type.

Definition at line 455 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsANone()

bool mlirTypeIsANone ( MlirType  type)

Checks whether the given type is a None type.

Definition at line 270 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAOpaque()

bool mlirTypeIsAOpaque ( MlirType  type)

Checks whether the given type is an opaque type.

Definition at line 623 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsARankedTensor()

bool mlirTypeIsARankedTensor ( MlirType  type)

Checks whether the given type is a ranked tensor type.

Definition at line 404 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAShaped()

bool mlirTypeIsAShaped ( MlirType  type)

Checks whether the given type is a Shaped type.

Definition at line 300 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsATensor()

bool mlirTypeIsATensor ( MlirType  type)

Checks whether the given type is a Tensor type.

Definition at line 396 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsATF32()

bool mlirTypeIsATF32 ( MlirType  type)

Checks whether the given type is an TF32 type.

Definition at line 242 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsATuple()

bool mlirTypeIsATuple ( MlirType  type)

Checks whether the given type is a tuple type.

Definition at line 555 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAUnrankedMemRef()

bool mlirTypeIsAUnrankedMemRef ( MlirType  type)

Checks whether the given type is an UnrankedMemRef type.

Definition at line 528 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAUnrankedTensor()

bool mlirTypeIsAUnrankedTensor ( MlirType  type)

Checks whether the given type is an unranked tensor type.

Definition at line 412 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirTypeIsAVector()

bool mlirTypeIsAVector ( MlirType  type)

Checks whether the given type is a Vector type.

Definition at line 350 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirUnrankedMemrefGetMemorySpace()

MlirAttribute mlirUnrankedMemrefGetMemorySpace ( MlirType  type)

Returns the memory spcae of the given Unranked MemRef type.

Definition at line 545 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirUnrankedMemRefTypeGet()

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 532 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirUnrankedMemRefTypeGetChecked()

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 538 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirUnrankedMemRefTypeGetTypeID()

MlirTypeID mlirUnrankedMemRefTypeGetTypeID ( void  )

Returns the typeID of an UnrankedMemRef type.

Definition at line 524 of file BuiltinTypes.cpp.

References wrap().

◆ mlirUnrankedTensorTypeGet()

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 436 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirUnrankedTensorTypeGetChecked()

MlirType mlirUnrankedTensorTypeGetChecked ( MlirLocation  loc,
MlirType  elementType 
)

Same as "mlirUnrankedTensorTypeGet" but returns a nullptr wrapping MlirType on illegal arguments, emitting appropriate diagnostics.

Definition at line 440 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirUnrankedTensorTypeGetElementType()

MlirType mlirUnrankedTensorTypeGetElementType ( MlirType  type)

Definition at line 445 of file BuiltinTypes.cpp.

References getElementType(), unwrap(), and wrap().

◆ mlirUnrankedTensorTypeGetTypeID()

MlirTypeID mlirUnrankedTensorTypeGetTypeID ( void  )

Returns the typeID of an UnrankedTensor type.

Definition at line 408 of file BuiltinTypes.cpp.

References wrap().

◆ mlirVectorTypeGet()

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 354 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirVectorTypeGetChecked()

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 360 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirVectorTypeGetScalable()

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 367 of file BuiltinTypes.cpp.

References mlir::get(), unwrap(), and wrap().

◆ mlirVectorTypeGetScalableChecked()

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 374 of file BuiltinTypes.cpp.

References unwrap(), and wrap().

◆ mlirVectorTypeGetTypeID()

MlirTypeID mlirVectorTypeGetTypeID ( void  )

Returns the typeID of an Vector type.

Definition at line 348 of file BuiltinTypes.cpp.

References wrap().

◆ mlirVectorTypeIsDimScalable()

bool mlirVectorTypeIsDimScalable ( MlirType  type,
intptr_t  dim 
)

Checks whether the "dim"-th dimension of the given vector is scalable.

Definition at line 388 of file BuiltinTypes.cpp.

References unwrap().

◆ mlirVectorTypeIsScalable()

bool mlirVectorTypeIsScalable ( MlirType  type)

Checks whether the given vector type is scalable, i.e., has at least one scalable dimension.

Definition at line 384 of file BuiltinTypes.cpp.

References unwrap().