13 #ifndef MLIR_DIALECT_DLTI_DLTI_H
14 #define MLIR_DIALECT_DLTI_DLTI_H
35 impl::DataLayoutEntryStorage,
36 DataLayoutEntryInterface::Trait> {
41 constexpr
const static llvm::StringLiteral
kAttrKeyword =
"dl_entry";
69 impl::DataLayoutSpecStorage,
70 DataLayoutSpecInterface::Trait> {
116 #include "mlir/Dialect/DLTI/DLTIDialect.h.inc"
This base class exposes generic asm parser hooks, usable across the various derived parsers.
This base class exposes generic asm printer hooks, usable across the various derived printers.
Attributes are known-constant values of operations.
A data layout entry attribute is a key-value pair where the key is a type or an identifier and the va...
static DataLayoutEntryAttr parse(AsmParser &parser)
Parses an instance of this attribute.
void print(AsmPrinter &os) const
Prints this attribute.
constexpr static const llvm::StringLiteral kAttrKeyword
The keyword used for this attribute in custom syntax.
DataLayoutEntryKey getKey() const
Returns the key of this entry.
Attribute getValue() const
Returns the value of this entry.
static DataLayoutEntryAttr get(StringAttr key, Attribute value)
Returns the entry with the given key and value.
A data layout specification is a list of entries that specify (partial) data layout information.
static DataLayoutSpecAttr get(MLIRContext *ctx, ArrayRef< DataLayoutEntryInterface > entries)
Returns the specification containing the given list of keys.
void print(AsmPrinter &os) const
Prints this attribute.
StringAttr getStackAlignmentIdentifier(MLIRContext *context) const
Returns the stack alignment identifier.
static LogicalResult verify(function_ref< InFlightDiagnostic()> emitError, ArrayRef< DataLayoutEntryInterface > entries)
Checks that the given list of entries does not contain duplicate keys.
static DataLayoutSpecAttr parse(AsmParser &parser)
Parses an instance of this attribute.
static DataLayoutSpecAttr getChecked(function_ref< InFlightDiagnostic()> emitError, MLIRContext *context, ArrayRef< DataLayoutEntryInterface > entries)
Returns the specification containing the given list of keys.
StringAttr getAllocaMemorySpaceIdentifier(MLIRContext *context) const
Returns the alloca memory space identifier.
constexpr static const StringLiteral kAttrKeyword
The keyword used for this attribute in custom syntax.
DataLayoutEntryListRef getEntries() const
Returns the list of entries.
DataLayoutSpecAttr combineWith(ArrayRef< DataLayoutSpecInterface > specs) const
Combines this specification with specs, enclosing specifications listed from outermost to innermost.
This class represents a diagnostic that is inflight and set to be reported.
MLIRContext is the top-level object for a collection of MLIR operations.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
Utility class for implementing users of storage classes uniqued by a StorageUniquer.
This header declares functions that assist transformations in the MemRef dialect.
InFlightDiagnostic emitError(Location loc)
Utility method to emit an error message using this location.
This class represents an efficient way to signal success or failure.