|
LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
|
#include <mlir/IR/Diagnostics.h>#include <mlir/IR/BuiltinAttributes.h>#include <mlir/CAPI/IR.h>#include <mlir/CAPI/Support.h>#include <llvm/ADT/TypeSwitch.h>#include <utility>Go to the source code of this file.
Functions | |
| bool | llzkAttributeIsA_Felt_FeltConstAttr (MlirAttribute inp) |
| Returns true if the Attribute is a ::llzk::felt::FeltConstAttr. | |
| MlirAttribute | llzkFelt_FeltConstAttrGet (MlirContext ctx, MlirStringRef rawValue, MlirType type) |
| Create a ::llzk::felt::FeltConstAttr Attribute with the given parameters. | |
| void | llzkFelt_FeltConstAttrGetRawValue (MlirAttribute inp, MlirStringCallback callback, void *userData) |
| Print the exact signed decimal 'rawValue' value. The callback must copy the text to retain it. | |
| MlirType | llzkFelt_FeltConstAttrGetType (MlirAttribute inp) |
| Get 'type' parameter from a ::llzk::felt::FeltConstAttr Attribute. | |
| MlirIdentifier | llzkFelt_FeltConstAttrGetFieldName (MlirAttribute inp) |
| Returns the field name from the stored FeltType, or a null StringAttr if no type is stored. | |
| void | llzkFelt_FeltConstAttrGetReducedValueOrRaw (MlirAttribute inp, MlirStringCallback callback, void *userData) |
| If the type specifies a field, returns getReducedValue(); otherwise getRawValue(). | |
| bool | llzkAttributeIsA_Felt_FieldSpecAttr (MlirAttribute inp) |
| Returns true if the Attribute is a ::llzk::felt::FieldSpecAttr. | |
| MlirAttribute | llzkFelt_FieldSpecAttrGet (MlirContext ctx, MlirIdentifier fieldName, MlirStringRef prime) |
| Create a ::llzk::felt::FieldSpecAttr Attribute with the given parameters. | |
| MlirIdentifier | llzkFelt_FieldSpecAttrGetFieldName (MlirAttribute inp) |
| Get 'fieldName' parameter from a ::llzk::felt::FieldSpecAttr Attribute. | |
| void | llzkFelt_FieldSpecAttrGetPrime (MlirAttribute inp, MlirStringCallback callback, void *userData) |
| Print the exact signed decimal 'prime' value. The callback must copy the text to retain it. | |
| bool llzkAttributeIsA_Felt_FeltConstAttr | ( | MlirAttribute | inp | ) |
Returns true if the Attribute is a ::llzk::felt::FeltConstAttr.
Definition at line 21 of file Attrs.capi.cpp.inc.
| bool llzkAttributeIsA_Felt_FieldSpecAttr | ( | MlirAttribute | inp | ) |
Returns true if the Attribute is a ::llzk::felt::FieldSpecAttr.
Definition at line 52 of file Attrs.capi.cpp.inc.
| MlirAttribute llzkFelt_FeltConstAttrGet | ( | MlirContext | ctx, |
| MlirStringRef | rawValue, | ||
| MlirType | type ) |
Create a ::llzk::felt::FeltConstAttr Attribute with the given parameters.
Definition at line 25 of file Attrs.capi.cpp.inc.
| MlirIdentifier llzkFelt_FeltConstAttrGetFieldName | ( | MlirAttribute | inp | ) |
Returns the field name from the stored FeltType, or a null StringAttr if no type is stored.
Definition at line 42 of file Attrs.capi.cpp.inc.
| void llzkFelt_FeltConstAttrGetRawValue | ( | MlirAttribute | inp, |
| MlirStringCallback | callback, | ||
| void * | userData ) |
Print the exact signed decimal 'rawValue' value. The callback must copy the text to retain it.
Definition at line 32 of file Attrs.capi.cpp.inc.
| void llzkFelt_FeltConstAttrGetReducedValueOrRaw | ( | MlirAttribute | inp, |
| MlirStringCallback | callback, | ||
| void * | userData ) |
If the type specifies a field, returns getReducedValue(); otherwise getRawValue().
Use getReducedValue() when folding requires a known field representative.
Definition at line 46 of file Attrs.capi.cpp.inc.
| MlirType llzkFelt_FeltConstAttrGetType | ( | MlirAttribute | inp | ) |
Get 'type' parameter from a ::llzk::felt::FeltConstAttr Attribute.
Definition at line 38 of file Attrs.capi.cpp.inc.
| MlirAttribute llzkFelt_FieldSpecAttrGet | ( | MlirContext | ctx, |
| MlirIdentifier | fieldName, | ||
| MlirStringRef | prime ) |
Create a ::llzk::felt::FieldSpecAttr Attribute with the given parameters.
Definition at line 56 of file Attrs.capi.cpp.inc.
| MlirIdentifier llzkFelt_FieldSpecAttrGetFieldName | ( | MlirAttribute | inp | ) |
Get 'fieldName' parameter from a ::llzk::felt::FieldSpecAttr Attribute.
Definition at line 63 of file Attrs.capi.cpp.inc.
| void llzkFelt_FieldSpecAttrGetPrime | ( | MlirAttribute | inp, |
| MlirStringCallback | callback, | ||
| void * | userData ) |
Print the exact signed decimal 'prime' value. The callback must copy the text to retain it.
Definition at line 67 of file Attrs.capi.cpp.inc.