14 #ifndef MLIR_CONVERSION_LLVMCOMMON_MEMREFBUILDER_H 15 #define MLIR_CONVERSION_LLVMCOMMON_MEMREFBUILDER_H 22 class LLVMTypeConverter;
27 class LLVMPointerType;
45 MemRefType type,
Value memory);
107 static unsigned getNumUnpackedValues(MemRefType type);
124 Value allocatedPtr();
133 Value size(
unsigned pos);
136 Value stride(
unsigned pos);
151 Type descriptorType);
193 Value memRefDescPtr,
Type elemPtrPtrType);
196 Value memRefDescPtr,
Type elemPtrPtrType,
202 Type elemPtrPtrType);
206 Value memRefDescPtr,
Type elemPtrPtrType,
212 Type elemPtrPtrType);
248 #endif // MLIR_CONVERSION_LLVMCOMMON_MEMREFBUILDER_H Include the generated interface declarations.
Helper class allowing the user to access a range of Values that correspond to an unpacked memref desc...
static constexpr const bool value
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
Helper class to produce LLVM dialect operations extracting or inserting elements of a MemRef descript...
Helper class to produce LLVM dialect operations extracting or inserting values to a struct...
static Type getElementPtrType(Type type, ValueRange indices, Location baseLoc)
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
static unsigned getNumUnpackedValues()
Returns the number of non-aggregate values that would be produced by unpack.
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
Type getIndexType()
Returns the type of array element in this descriptor.
Conversion from types to the LLVM IR dialect.
LLVM dialect pointer type.
This class helps build Operations.
This class provides an abstraction over the different types of ranges over Values.