|
LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
|
Public Member Functions | |
| ::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 Public Member Functions | |
| 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 Public Attributes | |
| static constexpr ::llvm::StringLiteral | name = "pod.type" |
| static constexpr ::llvm::StringLiteral | dialectName = "pod" |
Definition at line 23 of file Types.h.inc.
|
static |
|
static |
Definition at line 68 of file Types.cpp.inc.
|
static |
Definition at line 72 of file Types.cpp.inc.
|
inlinestatic |
Definition at line 52 of file Types.h.inc.
| 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().
| 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().
| llvm::ArrayRef<::llzk::pod::RecordAttr > llzk::pod::PodType::getRecords | ( | ) | const |
Definition at line 115 of file Types.cpp.inc.
| Type llzk::pod::PodType::getSingleRecordType | ( | ::mlir::StringAttr | name | ) | const |
| std::optional< DenseMap< Attribute, Type > > llzk::pod::PodType::getSubelementIndexMap | ( | ) | const |
| Type llzk::pod::PodType::getTypeAtIndex | ( | ::mlir::Attribute | index | ) | const |
|
static |
Definition at line 82 of file Types.cpp.inc.
| void llzk::pod::PodType::print | ( | ::mlir::AsmPrinter & | odsPrinter | ) | const |
Definition at line 107 of file Types.cpp.inc.
|
static |
|
static |
Definition at line 76 of file Types.cpp.inc.
|
static |
Definition at line 46 of file Types.h.inc.
|
static |
Definition at line 45 of file Types.h.inc.