|
| ::llvm::FailureOr<::mlir::Type > | getRecord (::llvm::StringRef name, ::llvm::function_ref<::mlir::InFlightDiagnostic()>) const |
| | Searches a record by name.
|
| ::llvm::StringMap<::mlir::Type > | getRecordMap () const |
| | Returns the records in map form.
|
| ::mlir::Type | getSingleRecordType (::mlir::StringAttr name) const |
| | Creates a PodType containing only the requested record.
|
| void | print (::mlir::AsmPrinter &odsPrinter) const |
| ::llvm::ArrayRef<::llzk::pod::RecordAttr > | getRecords () const |
| ::std::optional<::llvm::DenseMap<::mlir::Attribute, ::mlir::Type > > | getSubelementIndexMap () const |
| | Required by DestructurableTypeInterface / SROA pass.
|
| ::mlir::Type | getTypeAtIndex (::mlir::Attribute index) const |
| | Required by DestructurableTypeInterface / SROA pass.
|
|
| static PodType | fromInitialValues (::mlir::MLIRContext *ctx, InitializedRecords init) |
| | Creates a new type from a set of initialized records.
|
| static PodType | get (::mlir::MLIRContext *context, ::llvm::ArrayRef<::llzk::pod::RecordAttr > records) |
| static PodType | getChecked (::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::MLIRContext *context, ::llvm::ArrayRef<::llzk::pod::RecordAttr > records) |
| ::llvm::LogicalResult | verify (::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<::llzk::pod::RecordAttr > records) |
| ::llvm::LogicalResult | verifyInvariants (::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::llvm::ArrayRef<::llzk::pod::RecordAttr > records) |
| static constexpr ::llvm::StringLiteral | getMnemonic () |
| ::mlir::Type | parse (::mlir::AsmParser &odsParser) |
|
| static constexpr ::llvm::StringLiteral | name = "pod.type" |
| static constexpr ::llvm::StringLiteral | dialectName = "pod" |
Definition at line 23 of file Types.h.inc.
◆ fromInitialValues()
Creates a new type from a set of initialized records.
The records are derived from the names and the types of the values.
Definition at line 42 of file Types.cpp.
◆ get()
| PodType llzk::pod::PodType::get |
( |
::mlir::MLIRContext * | context, |
|
|
::llvm::ArrayRef<::llzk::pod::RecordAttr > | records ) |
|
static |
◆ getChecked()
| PodType llzk::pod::PodType::getChecked |
( |
::llvm::function_ref<::mlir::InFlightDiagnostic()> | emitError, |
|
|
::mlir::MLIRContext * | context, |
|
|
::llvm::ArrayRef<::llzk::pod::RecordAttr > | records ) |
|
static |
◆ getMnemonic()
| constexpr ::llvm::StringLiteral llzk::pod::PodType::getMnemonic |
( |
| ) |
|
|
inlinestatic |
◆ getRecord()
| FailureOr< Type > llzk::pod::PodType::getRecord |
( |
::llvm::StringRef | name, |
|
|
::llvm::function_ref<::mlir::InFlightDiagnostic()> | ) const |
Searches a record by name.
If you plan to make several queries to this type, it's better to generate the map once via getRecordMap() and query it instead of repeatedly calling getRecord().
Definition at line 50 of file Types.cpp.
◆ getRecordMap()
| llvm::StringMap< Type > llzk::pod::PodType::getRecordMap |
( |
| ) |
const |
Returns the records in map form.
If you plan to make several queries to this type, it's better to generate the map once via getRecordMap() and query it instead of repeatedly calling getRecord().
Definition at line 59 of file Types.cpp.
◆ getRecords()
| llvm::ArrayRef<::llzk::pod::RecordAttr > llzk::pod::PodType::getRecords |
( |
| ) |
const |
◆ getSingleRecordType()
| Type llzk::pod::PodType::getSingleRecordType |
( |
::mlir::StringAttr | name | ) |
const |
Creates a PodType containing only the requested record.
Definition at line 67 of file Types.cpp.
◆ getSubelementIndexMap()
| std::optional< DenseMap< Attribute, Type > > llzk::pod::PodType::getSubelementIndexMap |
( |
| ) |
const |
Required by DestructurableTypeInterface / SROA pass.
Definition at line 77 of file Types.cpp.
◆ getTypeAtIndex()
| Type llzk::pod::PodType::getTypeAtIndex |
( |
::mlir::Attribute | index | ) |
const |
Required by DestructurableTypeInterface / SROA pass.
Definition at line 86 of file Types.cpp.
◆ parse()
| mlir::Type llzk::pod::PodType::parse |
( |
::mlir::AsmParser & | odsParser | ) |
|
|
static |
◆ print()
| void llzk::pod::PodType::print |
( |
::mlir::AsmPrinter & | odsPrinter | ) |
const |
◆ verify()
| LogicalResult llzk::pod::PodType::verify |
( |
::llvm::function_ref<::mlir::InFlightDiagnostic()> | emitError, |
|
|
::llvm::ArrayRef<::llzk::pod::RecordAttr > | records ) |
|
static |
◆ verifyInvariants()
| llvm::LogicalResult llzk::pod::PodType::verifyInvariants |
( |
::llvm::function_ref<::mlir::InFlightDiagnostic()> | emitError, |
|
|
::llvm::ArrayRef<::llzk::pod::RecordAttr > | records ) |
|
static |
◆ dialectName
| ::llvm::StringLiteral llzk::pod::PodType::dialectName = "pod" |
|
static |
◆ name
| ::llvm::StringLiteral llzk::pod::PodType::name = "pod.type" |
|
static |
The documentation for this class was generated from the following files: