LLZK 0.1.0
Veridise's ZK Language IR
|
Public Types | |
using | Adaptor = FuncDefOpAdaptor |
template<typename RangeT> | |
using | GenericAdaptor = FuncDefOpGenericAdaptor<RangeT> |
using | FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>> |
using | Properties = FoldAdaptor::Properties |
Public Member Functions | |
static ::llvm::ArrayRef<::llvm::StringRef > | getAttributeNames () |
::mlir::StringAttr | getArgAttrsAttrName () |
::mlir::StringAttr | getFunctionTypeAttrName () |
::mlir::StringAttr | getResAttrsAttrName () |
::mlir::StringAttr | getSymNameAttrName () |
std::pair< unsigned, unsigned > | getODSOperandIndexAndLength (unsigned index) |
::mlir::Operation::operand_range | getODSOperands (unsigned index) |
std::pair< unsigned, unsigned > | getODSResultIndexAndLength (unsigned index) |
::mlir::Operation::result_range | getODSResults (unsigned index) |
::mlir::Region & | getBody () |
void | writeProperties (::mlir::DialectBytecodeWriter &writer) |
::mlir::StringAttr | getSymNameAttr () |
::llvm::StringRef | getSymName () |
::mlir::TypeAttr | getFunctionTypeAttr () |
::mlir::FunctionType | getFunctionType () |
::mlir::ArrayAttr | getArgAttrsAttr () |
::std::optional< ::mlir::ArrayAttr > | getArgAttrs () |
::mlir::ArrayAttr | getResAttrsAttr () |
::std::optional< ::mlir::ArrayAttr > | getResAttrs () |
void | setSymNameAttr (::mlir::StringAttr attr) |
void | setSymName (::llvm::StringRef attrValue) |
void | setFunctionTypeAttr (::mlir::TypeAttr attr) |
void | setFunctionType (::mlir::FunctionType attrValue) |
void | setArgAttrsAttr (::mlir::ArrayAttr attr) |
void | setResAttrsAttr (::mlir::ArrayAttr attr) |
::mlir::Attribute | removeArgAttrsAttr () |
::mlir::Attribute | removeResAttrsAttr () |
void | print (::mlir::OpAsmPrinter &p) |
::mlir::LogicalResult | verifyInvariantsImpl () |
::mlir::LogicalResult | verifyInvariants () |
::mlir::LogicalResult | verify () |
::mlir::LogicalResult | verifySymbolUses (::mlir::SymbolTableCollection &symbolTable) |
FuncDefOp | clone (::mlir::IRMapping &mapper) |
Create a deep copy of this function and all of its blocks, remapping any operands that use values outside of the function using the map that is provided (leaving them alone if no entry is present). | |
FuncDefOp | clone () |
void | cloneInto (FuncDefOp dest, ::mlir::IRMapping &mapper) |
Clone the internal blocks and attributes from this function into dest. | |
bool | hasAllowConstraintAttr () |
Return true iff the function def has the allow_constraint attribute. | |
void | setAllowConstraintAttr (bool newValue=true) |
Add (resp. remove) the allow_constraint attribute to (resp. from) the function def. | |
bool | hasAllowWitnessAttr () |
Return true iff the function def has the allow_witness attribute. | |
void | setAllowWitnessAttr (bool newValue=true) |
Add (resp. remove) the allow_witness attribute to (resp. from) the function def. | |
bool | hasArgPublicAttr (unsigned index) |
Return true iff the argument at the given index has pub attribute. | |
::mlir::Region * | getCallableRegion () |
Returns the region on the current operation that is callable. | |
::llvm::ArrayRef<::mlir::Type > | getArgumentTypes () |
Returns the argument types of this function. | |
::llvm::ArrayRef<::mlir::Type > | getResultTypes () |
Returns the result types of this function. | |
bool | isDeclaration () |
::mlir::SymbolRefAttr | getFullyQualifiedName () |
Return the full name for this function from the root module, including all surrounding symbol table names (i.e. | |
bool | nameIsCompute () |
Return true iff the function name is FUNC_NAME_COMPUTE (if needed, a check that this FuncDefOp is located within a StructDefOp must be done separately). | |
bool | nameIsConstrain () |
Return true iff the function name is FUNC_NAME_CONSTRAIN (if needed, a check that this FuncDefOp is located within a StructDefOp must be done separately). | |
bool | isInStruct () |
Return true iff the function is within a StructDefOp. | |
bool | isStructCompute () |
Return true iff the function is within a StructDefOp and named FUNC_NAME_COMPUTE . | |
bool | isStructConstrain () |
Return true iff the function is within a StructDefOp and named FUNC_NAME_CONSTRAIN . | |
::llzk::component::StructType | getSingleResultTypeOfCompute () |
Assuming the name is FUNC_NAME_COMPUTE , return the single StructType result. | |
Static Public Member Functions | |
::mlir::StringAttr | getArgAttrsAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getFunctionTypeAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getResAttrsAttrName (::mlir::OperationName name) |
::mlir::StringAttr | getSymNameAttrName (::mlir::OperationName name) |
static constexpr ::llvm::StringLiteral | getOperationName () |
::mlir::LogicalResult | setPropertiesFromAttr (Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) |
::mlir::Attribute | getPropertiesAsAttr (::mlir::MLIRContext *ctx, const Properties &prop) |
static llvm::hash_code | computePropertiesHash (const Properties &prop) |
static std::optional< mlir::Attribute > | getInherentAttr (::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name) |
static void | setInherentAttr (Properties &prop, llvm::StringRef name, mlir::Attribute value) |
static void | populateInherentAttrs (::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs) |
::mlir::LogicalResult | verifyInherentAttrs (::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) |
::mlir::LogicalResult | readProperties (::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef name, ::mlir::FunctionType type, ::llvm::ArrayRef<::mlir::NamedAttribute > attrs={}, ::llvm::ArrayRef<::mlir::DictionaryAttr > argAttrs={}) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name, ::mlir::TypeAttr function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name, ::mlir::TypeAttr function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name, ::mlir::FunctionType function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) |
static void | build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name, ::mlir::FunctionType function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) |
static void | build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={}) |
::mlir::ParseResult | parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result) |
static FuncDefOp | create (::mlir::Location location, ::llvm::StringRef name, ::mlir::FunctionType type, ::llvm::ArrayRef<::mlir::NamedAttribute > attrs={}) |
static FuncDefOp | create (::mlir::Location location, ::llvm::StringRef name, ::mlir::FunctionType type, ::mlir::Operation::dialect_attr_range attrs) |
static FuncDefOp | create (::mlir::Location location, ::llvm::StringRef name, ::mlir::FunctionType type, ::llvm::ArrayRef<::mlir::NamedAttribute > attrs, ::llvm::ArrayRef<::mlir::DictionaryAttr > argAttrs) |
using llzk::function::FuncDefOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>> |
using llzk::function::FuncDefOp::GenericAdaptor = FuncDefOpGenericAdaptor<RangeT> |
|
static |
Definition at line 1206 of file Ops.cpp.inc.
|
static |
|
static |
Definition at line 1180 of file Ops.cpp.inc.
|
static |
Definition at line 1154 of file Ops.cpp.inc.
|
static |
Definition at line 1192 of file Ops.cpp.inc.
|
static |
Definition at line 1166 of file Ops.cpp.inc.
FuncDefOp llzk::function::FuncDefOp::clone | ( | ::mlir::IRMapping & | mapper | ) |
Create a deep copy of this function and all of its blocks, remapping any operands that use values outside of the function using the map that is provided (leaving them alone if no entry is present).
If the mapper contains entries for function arguments, these arguments are not included in the new function. Replaces references to cloned sub-values with the corresponding value that is copied, and adds those mappings to the mapper.
void llzk::function::FuncDefOp::cloneInto | ( | FuncDefOp | dest, |
::mlir::IRMapping & | mapper ) |
Clone the internal blocks and attributes from this function into dest.
Clone the internal blocks from this function into dest and all attributes from this function to dest.
Any cloned blocks are appended to the back of dest. This function asserts that the attributes of the current function and dest are compatible.
|
static |
Definition at line 974 of file Ops.cpp.inc.
|
static |
|
static |
|
static |
std::optional<::mlir::ArrayAttr > llzk::function::FuncDefOp::getArgAttrs | ( | ) |
Definition at line 1104 of file Ops.cpp.inc.
mlir::ArrayAttr llzk::function::FuncDefOp::getArgAttrsAttr | ( | ) |
Definition at line 1100 of file Ops.cpp.inc.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
mlir::Region & llzk::function::FuncDefOp::getBody | ( | ) |
Definition at line 848 of file Ops.cpp.inc.
|
inline |
SymbolRefAttr llzk::function::FuncDefOp::getFullyQualifiedName | ( | ) |
mlir::FunctionType llzk::function::FuncDefOp::getFunctionType | ( | ) |
Definition at line 1095 of file Ops.cpp.inc.
mlir::TypeAttr llzk::function::FuncDefOp::getFunctionTypeAttr | ( | ) |
Definition at line 1091 of file Ops.cpp.inc.
|
inline |
|
inlinestatic |
|
static |
Definition at line 982 of file Ops.cpp.inc.
std::pair< unsigned, unsigned > llzk::function::FuncDefOp::getODSOperandIndexAndLength | ( | unsigned | index | ) |
Definition at line 828 of file Ops.cpp.inc.
mlir::Operation::operand_range llzk::function::FuncDefOp::getODSOperands | ( | unsigned | index | ) |
Definition at line 832 of file Ops.cpp.inc.
std::pair< unsigned, unsigned > llzk::function::FuncDefOp::getODSResultIndexAndLength | ( | unsigned | index | ) |
Definition at line 838 of file Ops.cpp.inc.
mlir::Operation::result_range llzk::function::FuncDefOp::getODSResults | ( | unsigned | index | ) |
Definition at line 842 of file Ops.cpp.inc.
|
inlinestatic |
|
static |
Definition at line 937 of file Ops.cpp.inc.
std::optional<::mlir::ArrayAttr > llzk::function::FuncDefOp::getResAttrs | ( | ) |
Definition at line 1113 of file Ops.cpp.inc.
mlir::ArrayAttr llzk::function::FuncDefOp::getResAttrsAttr | ( | ) |
Definition at line 1109 of file Ops.cpp.inc.
|
inline |
|
inlinestatic |
|
inline |
StructType llzk::function::FuncDefOp::getSingleResultTypeOfCompute | ( | ) |
Assuming the name is FUNC_NAME_COMPUTE
, return the single StructType result.
llvm::StringRef llzk::function::FuncDefOp::getSymName | ( | ) |
Definition at line 1086 of file Ops.cpp.inc.
mlir::StringAttr llzk::function::FuncDefOp::getSymNameAttr | ( | ) |
Definition at line 1082 of file Ops.cpp.inc.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
bool llzk::function::FuncDefOp::hasArgPublicAttr | ( | unsigned | index | ) |
|
inline |
Return true
iff the function is within a StructDefOp.
|
inline |
Return true
iff the function is within a StructDefOp and named FUNC_NAME_COMPUTE
.
|
inline |
Return true
iff the function is within a StructDefOp and named FUNC_NAME_CONSTRAIN
.
|
inline |
Return true
iff the function name is FUNC_NAME_COMPUTE
(if needed, a check that this FuncDefOp is located within a StructDefOp must be done separately).
|
inline |
Return true
iff the function name is FUNC_NAME_CONSTRAIN
(if needed, a check that this FuncDefOp is located within a StructDefOp must be done separately).
|
static |
|
static |
Definition at line 1019 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::print | ( | ::mlir::OpAsmPrinter & | p | ) |
|
static |
Definition at line 1056 of file Ops.cpp.inc.
mlir::Attribute llzk::function::FuncDefOp::removeArgAttrsAttr | ( | ) |
Definition at line 1142 of file Ops.cpp.inc.
mlir::Attribute llzk::function::FuncDefOp::removeResAttrsAttr | ( | ) |
Definition at line 1148 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setAllowConstraintAttr | ( | bool | newValue = true | ) |
void llzk::function::FuncDefOp::setAllowWitnessAttr | ( | bool | newValue = true | ) |
void llzk::function::FuncDefOp::setArgAttrsAttr | ( | ::mlir::ArrayAttr | attr | ) |
Definition at line 1134 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setFunctionType | ( | ::mlir::FunctionType | attrValue | ) |
Definition at line 1130 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setFunctionTypeAttr | ( | ::mlir::TypeAttr | attr | ) |
Definition at line 1126 of file Ops.cpp.inc.
|
static |
Definition at line 997 of file Ops.cpp.inc.
|
static |
Definition at line 852 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setResAttrsAttr | ( | ::mlir::ArrayAttr | attr | ) |
Definition at line 1138 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setSymName | ( | ::llvm::StringRef | attrValue | ) |
Definition at line 1122 of file Ops.cpp.inc.
void llzk::function::FuncDefOp::setSymNameAttr | ( | ::mlir::StringAttr | attr | ) |
Definition at line 1118 of file Ops.cpp.inc.
|
static |
Definition at line 1029 of file Ops.cpp.inc.
mlir::LogicalResult llzk::function::FuncDefOp::verifyInvariants | ( | ) |
Definition at line 1245 of file Ops.cpp.inc.
mlir::LogicalResult llzk::function::FuncDefOp::verifyInvariantsImpl | ( | ) |
Definition at line 1216 of file Ops.cpp.inc.
LogicalResult llzk::function::FuncDefOp::verifySymbolUses | ( | ::mlir::SymbolTableCollection & | symbolTable | ) |
void llzk::function::FuncDefOp::writeProperties | ( | ::mlir::DialectBytecodeWriter & | writer | ) |
Definition at line 1072 of file Ops.cpp.inc.