LLZK 3.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 TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::StringAttr sym_name)
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::StringAttr sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name)
static TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name)
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name)
static TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::llvm::StringRef sym_name)
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::llvm::StringRef sym_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name)
static TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name)
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::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={})
static TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static TemplateExprOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static TemplateExprOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/6]

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 1043 of file Ops.cpp.inc.

◆ build() [2/6]

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

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

◆ build() [3/6]

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

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

◆ build() [4/6]

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

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

◆ build() [5/6]

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

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

◆ build() [6/6]

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

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

◆ computePropertiesHash()

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

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

◆ create() [1/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::llvm::StringRef sym_name )
static

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

◆ create() [2/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::StringAttr sym_name )
static

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

◆ create() [3/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::llvm::StringRef sym_name )
static

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

◆ create() [4/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::StringAttr sym_name )
static

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

◆ create() [5/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [6/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [7/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::llvm::StringRef sym_name )
static

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

◆ create() [8/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::StringAttr sym_name )
static

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

◆ create() [9/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::llvm::StringRef sym_name )
static

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

◆ create() [10/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::StringAttr sym_name )
static

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

◆ create() [11/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [12/12]

TemplateExprOp llzk::polymorphic::TemplateExprOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ getAttributeNames()

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

Definition at line 774 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 924 of file Ops.cpp.inc.

◆ getInitializerRegion()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getSymName()

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

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

◆ getSymNameAttr()

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

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

◆ getSymNameAttrName() [1/2]

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

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

◆ getSymNameAttrName() [2/2]

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

Definition at line 783 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 186 of file Ops.cpp.

◆ getTypeOpt()

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

Definition at line 194 of file Ops.cpp.

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ setInherentAttr()

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

Definition at line 930 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 879 of file Ops.cpp.inc.

◆ setSymName()

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

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

◆ setSymNameAttr()

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

Definition at line 829 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 941 of file Ops.cpp.inc.

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifyRegions()

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

Definition at line 141 of file Ops.cpp.

◆ verifySymbolUses()

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

Definition at line 104 of file Ops.cpp.

◆ writeProperties()

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

Definition at line 957 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