|
LLZK 0.1.0
An open-source IR for Zero Knowledge (ZK) circuits
|
#include "llzk/CAPI/Builder.h"#include "llzk/CAPI/Support.h"#include "llzk/Dialect/POD/IR/Ops.h"#include "llzk/Dialect/POD/IR/Types.h"#include "llzk-c/Dialect/POD.h"#include "llzk-c/Support.h"#include <mlir/CAPI/IR.h>#include <mlir/CAPI/Registration.h>#include <mlir/CAPI/Support.h>#include <mlir/CAPI/Wrap.h>#include <mlir/IR/Attributes.h>#include <mlir/IR/Diagnostics.h>#include <mlir/Support/LLVM.h>#include <mlir-c/IR.h>#include <llvm/ADT/STLExtras.h>#include <llvm/ADT/SmallVectorExtras.h>#include <cstdint>Go to the source code of this file.
Functions | |
| MlirAttribute | llzkRecordAttrGet (MlirStringRef name, MlirType type) |
| Creates a new llzk::pod::RecordAttr. | |
| bool | llzkAttributeIsARecordAttr (MlirAttribute attr) |
| MlirStringRef | llzkRecordAttrGetName (MlirAttribute attr) |
| Returns the name of the record. | |
| MlirAttribute | llzkRecordAttrGetNameSym (MlirAttribute attr) |
| Returns the name of the record as a flat symbol attribute. | |
| MlirType | llzkRecordAttrGetType (MlirAttribute attr) |
| Returns the type of the record. | |
| MlirType | llzkPodTypeGet (MlirContext context, intptr_t nRecords, MlirAttribute const *records) |
| Creates an llzk::pod::PodType using a list of attributes as records. | |
| MlirType | llzkPodTypeGetFromInitialValues (MlirContext context, intptr_t nRecords, LlzkRecordValue const *records) |
| Creates an llzk::pod::PodType using a list of values for inferring the records. | |
| bool | llzkTypeIsAPodType (MlirType type) |
| intptr_t | llzkPodTypeGetNumRecords (MlirType type) |
| Returns the number of records in the struct. | |
| void | llzkPodTypeGetRecords (MlirType type, MlirAttribute *dst) |
| Writes the records into the given array that must have been previously allocated with enough space. | |
| MlirAttribute | llzkPodTypeGetNthRecord (MlirType type, intptr_t n) |
| Returns the n-th record in the struct. | |
| MlirType | llzkPodTypeLookupRecord (MlirType type, MlirStringRef name) |
| Lookups a record type by name. | |
| MlirType | llzkPodTypeLookupRecordWithinLocation (MlirType type, MlirStringRef name, MlirLocation loc) |
| Lookups a record type by name. | |
| MlirType | llzkPodTypeLookupRecordWithinOperation (MlirType type, MlirStringRef name, MlirOperation op) |
| Lookups a record type by name. | |
| LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD (NewPodOp, InferredFromInitialValues, intptr_t nValues, LlzkRecordValue const *values) | |
| LLZK_DEFINE_OP_BUILD_METHOD (NewPodOp, MlirType type, intptr_t nValues, LlzkRecordValue const *values) | |
| LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD (NewPodOp, WithMapOperands, MlirType type, intptr_t nValues, LlzkRecordValue const *values, LlzkAffineMapOperandsBuilder mapOperands) | |
| bool | llzkOperationIsANewPodOp (MlirOperation op) |
| bool | llzkOperationIsAReadPodOp (MlirOperation op) |
| bool | llzkOperationIsAWritePodOp (MlirOperation op) |
| LLZK_DEFINE_OP_BUILD_METHOD | ( | NewPodOp | , |
| MlirType | type, | ||
| intptr_t | nValues, | ||
| LlzkRecordValue const * | values ) |
| LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD | ( | NewPodOp | , |
| InferredFromInitialValues | , | ||
| intptr_t | nValues, | ||
| LlzkRecordValue const * | values ) |
| LLZK_DEFINE_SUFFIX_OP_BUILD_METHOD | ( | NewPodOp | , |
| WithMapOperands | , | ||
| MlirType | type, | ||
| intptr_t | nValues, | ||
| LlzkRecordValue const * | values, | ||
| LlzkAffineMapOperandsBuilder | mapOperands ) |
| MlirType llzkPodTypeGet | ( | MlirContext | context, |
| intptr_t | nRecords, | ||
| MlirAttribute const * | records ) |
Creates an llzk::pod::PodType using a list of attributes as records.
| MlirType llzkPodTypeGetFromInitialValues | ( | MlirContext | context, |
| intptr_t | nRecords, | ||
| LlzkRecordValue const * | records ) |
Creates an llzk::pod::PodType using a list of values for inferring the records.
| MlirAttribute llzkPodTypeGetNthRecord | ( | MlirType | type, |
| intptr_t | n ) |
| intptr_t llzkPodTypeGetNumRecords | ( | MlirType | type | ) |
| void llzkPodTypeGetRecords | ( | MlirType | type, |
| MlirAttribute * | dst ) |
| MlirType llzkPodTypeLookupRecord | ( | MlirType | type, |
| MlirStringRef | name ) |
| MlirType llzkPodTypeLookupRecordWithinLocation | ( | MlirType | type, |
| MlirStringRef | name, | ||
| MlirLocation | loc ) |
| MlirType llzkPodTypeLookupRecordWithinOperation | ( | MlirType | type, |
| MlirStringRef | name, | ||
| MlirOperation | op ) |
| MlirAttribute llzkRecordAttrGet | ( | MlirStringRef | name, |
| MlirType | type ) |
| MlirStringRef llzkRecordAttrGetName | ( | MlirAttribute | attr | ) |
| MlirAttribute llzkRecordAttrGetNameSym | ( | MlirAttribute | attr | ) |
| MlirType llzkRecordAttrGetType | ( | MlirAttribute | attr | ) |