LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
llzk::global::GlobalReadOp Class Reference
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 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::Value getVal ()
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::mlir::SymbolRefAttr getNameRefAttr ()
 
::mlir::SymbolRefAttr getNameRef ()
 
void setNameRefAttr (::mlir::SymbolRefAttr attr)
 
::mlir::LogicalResult verifyInvariantsImpl ()
 
::mlir::LogicalResult verifyInvariants ()
 
::mlir::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
 
void print (::mlir::OpAsmPrinter &_odsPrinter)
 
inline ::mlir::FailureOr< SymbolLookupResult< GlobalDefOp > > getGlobalDefOp (::mlir::SymbolTableCollection &tables)
 Gets the definition for the global referenced in this op.
 

Static Public Member Functions

::mlir::StringAttr getNameRefAttrName (::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, ::mlir::Type val, ::mlir::SymbolRefAttr name_ref)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr name_ref)
 
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 366 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/3]

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

◆ build() [2/3]

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

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

◆ build() [3/3]

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

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

◆ computePropertiesHash()

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

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

◆ getAttributeNames()

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

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

◆ getGlobalDefOp()

inline ::mlir::FailureOr< SymbolLookupResult< GlobalDefOp > > llzk::global::GlobalReadOp::getGlobalDefOp ( ::mlir::SymbolTableCollection & tables)
inline

Gets the definition for the global referenced in this op.

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

◆ getInherentAttr()

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

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

◆ getNameRef()

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

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

◆ getNameRefAttr()

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

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

◆ getNameRefAttrName() [1/2]

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

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

◆ getNameRefAttrName() [2/2]

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getVal()

mlir::Value llzk::global::GlobalReadOp::getVal ( )

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ setInherentAttr()

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

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

◆ setNameRefAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 210 of file Ops.cpp.

◆ writeProperties()

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

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


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