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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getConstNameAttrName ()
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::TypedValue<::mlir::Type > getVal ()
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::mlir::FlatSymbolRefAttr getConstNameAttr ()
::llvm::StringRef getConstName ()
void setConstNameAttr (::mlir::FlatSymbolRefAttr attr)
void setConstName (::llvm::StringRef attrValue)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)

Static Public Member Functions

::mlir::StringAttr getConstNameAttrName (::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::Type val, ::mlir::FlatSymbolRefAttr const_name)
static ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, ::mlir::FlatSymbolRefAttr const_name)
static ConstReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type val, ::mlir::FlatSymbolRefAttr const_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::FlatSymbolRefAttr const_name)
static ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::FlatSymbolRefAttr const_name)
static ConstReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::FlatSymbolRefAttr const_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, ::llvm::StringRef const_name)
static ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, ::llvm::StringRef const_name)
static ConstReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type val, ::llvm::StringRef const_name)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef const_name)
static ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::llvm::StringRef const_name)
static ConstReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::llvm::StringRef const_name)
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static ConstReadOp 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 ConstReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static ConstReadOp 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 540 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/6]

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

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

◆ build() [2/6]

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

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

◆ build() [3/6]

void llzk::polymorphic::ConstReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type val,
::llvm::StringRef const_name )
static

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

◆ build() [4/6]

void llzk::polymorphic::ConstReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type val,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ build() [5/6]

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

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

◆ build() [6/6]

void llzk::polymorphic::ConstReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ computePropertiesHash()

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

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

◆ create() [1/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Type val,
::llvm::StringRef const_name )
static

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

◆ create() [2/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Type val,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ create() [3/12]

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

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

◆ create() [4/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ create() [5/12]

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

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

◆ create() [6/12]

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

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

◆ create() [7/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Type val,
::llvm::StringRef const_name )
static

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

◆ create() [8/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Type val,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ create() [9/12]

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

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

◆ create() [10/12]

ConstReadOp llzk::polymorphic::ConstReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::FlatSymbolRefAttr const_name )
static

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

◆ create() [11/12]

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

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

◆ create() [12/12]

ConstReadOp llzk::polymorphic::ConstReadOp::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 760 of file Ops.cpp.inc.

◆ getAttributeNames()

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

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

◆ getConstName()

llvm::StringRef llzk::polymorphic::ConstReadOp::getConstName ( )

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

◆ getConstNameAttr()

::mlir::FlatSymbolRefAttr llzk::polymorphic::ConstReadOp::getConstNameAttr ( )
inline

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

◆ getConstNameAttrName() [1/2]

::mlir::StringAttr llzk::polymorphic::ConstReadOp::getConstNameAttrName ( )
inline

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

◆ getConstNameAttrName() [2/2]

::mlir::StringAttr llzk::polymorphic::ConstReadOp::getConstNameAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getEffects()

void llzk::polymorphic::ConstReadOp::getEffects ( ::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > & effects)

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getVal()

::mlir::TypedValue<::mlir::Type > llzk::polymorphic::ConstReadOp::getVal ( )
inline

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ setConstName()

void llzk::polymorphic::ConstReadOp::setConstName ( ::llvm::StringRef attrValue)

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

◆ setConstNameAttr()

void llzk::polymorphic::ConstReadOp::setConstNameAttr ( ::mlir::FlatSymbolRefAttr attr)
inline

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 200 of file Ops.cpp.

◆ writeProperties()

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

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