LLZK 2.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
llzk::polymorphic::TemplateExprOp Class Reference
Inheritance diagram for llzk::polymorphic::TemplateExprOp:
[legend]
Collaboration diagram for llzk::polymorphic::TemplateExprOp:
[legend]

Public Types

using Adaptor = TemplateExprOpAdaptor
template<typename RangeT>
using GenericAdaptor = TemplateExprOpGenericAdaptor<RangeT>
using FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>
using Properties = FoldAdaptor::Properties

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::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 & getInitializerRegion ()
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::mlir::StringAttr getSymNameAttr ()
::llvm::StringRef getSymName ()
void setSymNameAttr (::mlir::StringAttr attr)
void setSymName (::llvm::StringRef attrValue)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verifyRegions ()
::std::optional<::mlir::Type > getTypeOpt ()
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
::mlir::Type getType ()
 Returns the type of the poly.yield op in the initializer region.

Static Public Member Functions

::mlir::StringAttr getSymNameAttrName (::mlir::OperationName name)
static constexpr ::llvm::StringLiteral getOperationName ()
::llvm::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)
::llvm::LogicalResult verifyInherentAttrs (::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::llvm::LogicalResult readProperties (::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name)
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)

Detailed Description

Definition at line 614 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::polymorphic::TemplateExprOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

Definition at line 621 of file Ops.h.inc.

◆ GenericAdaptor

Definition at line 620 of file Ops.h.inc.

◆ Properties

Member Function Documentation

◆ build() [1/5]

void llzk::polymorphic::TemplateExprOp::build ( ::mlir::OpBuilder & ,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

Definition at line 871 of file Ops.cpp.inc.

◆ build() [2/5]

void llzk::polymorphic::TemplateExprOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llvm::StringRef sym_name )
static

Definition at line 859 of file Ops.cpp.inc.

◆ build() [3/5]

void llzk::polymorphic::TemplateExprOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::StringAttr sym_name )
static

Definition at line 847 of file Ops.cpp.inc.

◆ build() [4/5]

void llzk::polymorphic::TemplateExprOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llvm::StringRef sym_name )
static

Definition at line 864 of file Ops.cpp.inc.

◆ build() [5/5]

void llzk::polymorphic::TemplateExprOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::StringAttr sym_name )
static

Definition at line 852 of file Ops.cpp.inc.

◆ computePropertiesHash()

llvm::hash_code llzk::polymorphic::TemplateExprOp::computePropertiesHash ( const Properties & prop)
static

Definition at line 795 of file Ops.cpp.inc.

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::polymorphic::TemplateExprOp::getAttributeNames ( )
inline

Definition at line 623 of file Ops.h.inc.

◆ getInherentAttr()

std::optional< mlir::Attribute > llzk::polymorphic::TemplateExprOp::getInherentAttr ( ::mlir::MLIRContext * ctx,
const Properties & prop,
llvm::StringRef name )
static

Definition at line 800 of file Ops.cpp.inc.

◆ getInitializerRegion()

::mlir::Region & llzk::polymorphic::TemplateExprOp::getInitializerRegion ( )
inline

Definition at line 660 of file Ops.h.inc.

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::polymorphic::TemplateExprOp::getODSOperandIndexAndLength ( unsigned index)
inline

Definition at line 640 of file Ops.h.inc.

◆ getODSOperands()

::mlir::Operation::operand_range llzk::polymorphic::TemplateExprOp::getODSOperands ( unsigned index)
inline

Definition at line 644 of file Ops.h.inc.

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::polymorphic::TemplateExprOp::getODSResultIndexAndLength ( unsigned index)
inline

Definition at line 650 of file Ops.h.inc.

◆ getODSResults()

::mlir::Operation::result_range llzk::polymorphic::TemplateExprOp::getODSResults ( unsigned index)
inline

Definition at line 654 of file Ops.h.inc.

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::polymorphic::TemplateExprOp::getOperationName ( )
inlinestatic

Definition at line 636 of file Ops.h.inc.

◆ getPropertiesAsAttr()

mlir::Attribute llzk::polymorphic::TemplateExprOp::getPropertiesAsAttr ( ::mlir::MLIRContext * ctx,
const Properties & prop )
static

Definition at line 779 of file Ops.cpp.inc.

◆ getSymName()

llvm::StringRef llzk::polymorphic::TemplateExprOp::getSymName ( )

Definition at line 838 of file Ops.cpp.inc.

◆ getSymNameAttr()

::mlir::StringAttr llzk::polymorphic::TemplateExprOp::getSymNameAttr ( )
inline

Definition at line 673 of file Ops.h.inc.

◆ getSymNameAttrName() [1/2]

::mlir::StringAttr llzk::polymorphic::TemplateExprOp::getSymNameAttrName ( )
inline

Definition at line 628 of file Ops.h.inc.

◆ getSymNameAttrName() [2/2]

::mlir::StringAttr llzk::polymorphic::TemplateExprOp::getSymNameAttrName ( ::mlir::OperationName name)
inlinestatic

Definition at line 632 of file Ops.h.inc.

◆ getType()

Type llzk::polymorphic::TemplateExprOp::getType ( )

Returns the type of the poly.yield op in the initializer region.

Definition at line 138 of file Ops.cpp.

◆ getTypeOpt()

std::optional< Type > llzk::polymorphic::TemplateExprOp::getTypeOpt ( )

Definition at line 146 of file Ops.cpp.

◆ parse()

mlir::ParseResult llzk::polymorphic::TemplateExprOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

Definition at line 911 of file Ops.cpp.inc.

◆ populateInherentAttrs()

void llzk::polymorphic::TemplateExprOp::populateInherentAttrs ( ::mlir::MLIRContext * ctx,
const Properties & prop,
::mlir::NamedAttrList & attrs )
static

Definition at line 813 of file Ops.cpp.inc.

◆ print()

void llzk::polymorphic::TemplateExprOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

Definition at line 936 of file Ops.cpp.inc.

◆ readProperties()

llvm::LogicalResult llzk::polymorphic::TemplateExprOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

Definition at line 826 of file Ops.cpp.inc.

◆ setInherentAttr()

void llzk::polymorphic::TemplateExprOp::setInherentAttr ( Properties & prop,
llvm::StringRef name,
mlir::Attribute value )
static

Definition at line 806 of file Ops.cpp.inc.

◆ setPropertiesFromAttr()

llvm::LogicalResult llzk::polymorphic::TemplateExprOp::setPropertiesFromAttr ( Properties & prop,
::mlir::Attribute attr,
::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError )
static

Definition at line 756 of file Ops.cpp.inc.

◆ setSymName()

void llzk::polymorphic::TemplateExprOp::setSymName ( ::llvm::StringRef attrValue)

Definition at line 843 of file Ops.cpp.inc.

◆ setSymNameAttr()

void llzk::polymorphic::TemplateExprOp::setSymNameAttr ( ::mlir::StringAttr attr)
inline

Definition at line 678 of file Ops.h.inc.

◆ verifyInherentAttrs()

llvm::LogicalResult llzk::polymorphic::TemplateExprOp::verifyInherentAttrs ( ::mlir::OperationName opName,
::mlir::NamedAttrList & attrs,
llvm::function_ref<::mlir::InFlightDiagnostic()> emitError )
static

Definition at line 817 of file Ops.cpp.inc.

◆ verifyInvariants()

llvm::LogicalResult llzk::polymorphic::TemplateExprOp::verifyInvariants ( )

Definition at line 907 of file Ops.cpp.inc.

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::polymorphic::TemplateExprOp::verifyInvariantsImpl ( )

Definition at line 891 of file Ops.cpp.inc.

◆ verifyRegions()

LogicalResult llzk::polymorphic::TemplateExprOp::verifyRegions ( )

Definition at line 108 of file Ops.cpp.

◆ verifySymbolUses()

LogicalResult llzk::polymorphic::TemplateExprOp::verifySymbolUses ( ::mlir::SymbolTableCollection & symbolTable)

Definition at line 71 of file Ops.cpp.

◆ writeProperties()

void llzk::polymorphic::TemplateExprOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

Definition at line 833 of file Ops.cpp.inc.


The documentation for this class was generated from the following files:
  • build/include/llzk/Dialect/Polymorphic/IR/Ops.h.inc
  • lib/Dialect/Polymorphic/IR/Ops.cpp
  • build/include/llzk/Dialect/Polymorphic/IR/Ops.cpp.inc