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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getConstantAttrName ()
::mlir::StringAttr getNameRefAttrName ()
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::UnitAttr getConstantAttr ()
bool getConstant ()
::mlir::SymbolRefAttr getNameRefAttr ()
::mlir::SymbolRefAttr getNameRef ()
void setConstantAttr (::mlir::UnitAttr attr)
void setConstant (bool attrValue)
void setNameRefAttr (::mlir::SymbolRefAttr attr)
::mlir::Attribute removeConstantAttr ()
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
bool isConstant ()
 Returns true when this read is marked as const.

Static Public Member Functions

::mlir::StringAttr getConstantAttrName (::mlir::OperationName name)
::mlir::StringAttr getNameRefAttrName (::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::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, ::mlir::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type val, ::mlir::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::UnitAttr constant, ::mlir::SymbolRefAttr name_ref)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type val, bool constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type val, bool constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type val, bool constant, ::mlir::SymbolRefAttr name_ref)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, bool constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, bool constant, ::mlir::SymbolRefAttr name_ref)
static GlobalReadOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, bool constant, ::mlir::SymbolRefAttr name_ref)
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static GlobalReadOp 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 GlobalReadOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static GlobalReadOp 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 491 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::global::GlobalReadOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/6]

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

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

◆ build() [2/6]

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

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

◆ build() [3/6]

void llzk::global::GlobalReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type val,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ build() [4/6]

void llzk::global::GlobalReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type val,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ build() [5/6]

void llzk::global::GlobalReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ build() [6/6]

void llzk::global::GlobalReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ computePropertiesHash()

llvm::hash_code llzk::global::GlobalReadOp::computePropertiesHash ( const Properties & prop)
static

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

◆ create() [1/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Type val,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [2/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Type val,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [3/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [4/12]

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

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

◆ create() [5/12]

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

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

◆ create() [6/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [7/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Type val,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [8/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Type val,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [9/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::UnitAttr constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ create() [10/12]

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

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

◆ create() [11/12]

GlobalReadOp llzk::global::GlobalReadOp::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 1009 of file Ops.cpp.inc.

◆ create() [12/12]

GlobalReadOp llzk::global::GlobalReadOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
bool constant,
::mlir::SymbolRefAttr name_ref )
static

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

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::global::GlobalReadOp::getAttributeNames ( )
inline

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

◆ getConstant()

bool llzk::global::GlobalReadOp::getConstant ( )

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

◆ getConstantAttr()

::mlir::UnitAttr llzk::global::GlobalReadOp::getConstantAttr ( )
inline

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

◆ getConstantAttrName() [1/2]

::mlir::StringAttr llzk::global::GlobalReadOp::getConstantAttrName ( )
inline

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

◆ getConstantAttrName() [2/2]

::mlir::StringAttr llzk::global::GlobalReadOp::getConstantAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getEffects()

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

Definition at line 487 of file Ops.cpp.

◆ getInherentAttr()

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

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

◆ getNameRef()

mlir::SymbolRefAttr llzk::global::GlobalReadOp::getNameRef ( )

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

◆ getNameRefAttr()

::mlir::SymbolRefAttr llzk::global::GlobalReadOp::getNameRefAttr ( )
inline

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

◆ getNameRefAttrName() [1/2]

::mlir::StringAttr llzk::global::GlobalReadOp::getNameRefAttrName ( )
inline

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

◆ getNameRefAttrName() [2/2]

::mlir::StringAttr llzk::global::GlobalReadOp::getNameRefAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::global::GlobalReadOp::getODSOperandIndexAndLength ( unsigned index)
inline

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

◆ getODSOperands()

::mlir::Operation::operand_range llzk::global::GlobalReadOp::getODSOperands ( unsigned index)
inline

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::global::GlobalReadOp::getODSResultIndexAndLength ( unsigned index)
inline

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

◆ getODSResults()

::mlir::Operation::result_range llzk::global::GlobalReadOp::getODSResults ( unsigned index)
inline

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

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::global::GlobalReadOp::getOperationName ( )
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getVal()

::mlir::TypedValue<::mlir::Type > llzk::global::GlobalReadOp::getVal ( )
inline

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

◆ isConstant()

bool llzk::global::GlobalReadOp::isConstant ( )
inline

Returns true when this read is marked as const.

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

◆ parse()

mlir::ParseResult llzk::global::GlobalReadOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::global::GlobalReadOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ readProperties()

LogicalResult llzk::global::GlobalReadOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

Definition at line 466 of file Ops.cpp.

◆ removeConstantAttr()

::mlir::Attribute llzk::global::GlobalReadOp::removeConstantAttr ( )
inline

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

◆ setConstant()

void llzk::global::GlobalReadOp::setConstant ( bool attrValue)

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

◆ setConstantAttr()

void llzk::global::GlobalReadOp::setConstantAttr ( ::mlir::UnitAttr attr)
inline

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

◆ setInherentAttr()

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

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

◆ setNameRefAttr()

void llzk::global::GlobalReadOp::setNameRefAttr ( ::mlir::SymbolRefAttr attr)
inline

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

llvm::LogicalResult llzk::global::GlobalReadOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::global::GlobalReadOp::verifyInvariantsImpl ( )

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

◆ verifySymbolUses()

LogicalResult llzk::global::GlobalReadOp::verifySymbolUses ( ::mlir::SymbolTableCollection & symbolTable)

Definition at line 441 of file Ops.cpp.

◆ writeProperties()

void llzk::global::GlobalReadOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

Definition at line 481 of file Ops.cpp.


The documentation for this class was generated from the following files: