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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getMapOpGroupSizesAttrName ()
::mlir::StringAttr getMemberNameAttrName ()
::mlir::StringAttr getNumDimsPerMapAttrName ()
::mlir::StringAttr getTableOffsetAttrName ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::llzk::component::StructTypegetComponent ()
::mlir::OperandRangeRange getMapOperands ()
::mlir::OpOperand & getComponentMutable ()
::mlir::MutableOperandRangeRange getMapOperandsMutable ()
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 getMemberNameAttr ()
::llvm::StringRef getMemberName ()
::mlir::Attribute getTableOffsetAttr ()
::std::optional<::mlir::Attribute > getTableOffset ()
::mlir::DenseI32ArrayAttr getNumDimsPerMapAttr ()
::llvm::ArrayRef< int32_t > getNumDimsPerMap ()
::mlir::DenseI32ArrayAttr getMapOpGroupSizesAttr ()
::llvm::ArrayRef< int32_t > getMapOpGroupSizes ()
void setMemberNameAttr (::mlir::FlatSymbolRefAttr attr)
void setMemberName (::llvm::StringRef attrValue)
void setTableOffsetAttr (::mlir::Attribute attr)
void setNumDimsPerMapAttr (::mlir::DenseI32ArrayAttr attr)
void setNumDimsPerMap (::llvm::ArrayRef< int32_t > attrValue)
void setMapOpGroupSizesAttr (::mlir::DenseI32ArrayAttr attr)
void setMapOpGroupSizes (::llvm::ArrayRef< int32_t > attrValue)
::mlir::Attribute removeTableOffsetAttr ()
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verify ()
bool isRead ()
 Return true if the op is a read, false if it's a write.
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
inline ::mlir::FailureOr< SymbolLookupResult< MemberDefOp > > getMemberDefOp (::mlir::SymbolTableCollection &tables)
 Gets the definition for the member referenced in this op.

Static Public Member Functions

::mlir::StringAttr getMapOpGroupSizesAttrName (::mlir::OperationName name)
::mlir::StringAttr getMemberNameAttrName (::mlir::OperationName name)
::mlir::StringAttr getNumDimsPerMapAttrName (::mlir::OperationName name)
::mlir::StringAttr getTableOffsetAttrName (::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 resultType, ::mlir::Value component, ::mlir::StringAttr member)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type resultType, ::mlir::Value component, ::mlir::StringAttr member, ::mlir::Attribute dist, ::mlir::ValueRange mapOperands, std::optional< int32_t > numDims)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type resultType, ::mlir::Value component, ::mlir::StringAttr member, ::mlir::SymbolRefAttr dist)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type resultType, ::mlir::Value component, ::mlir::StringAttr member, ::mlir::IntegerAttr dist)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::mlir::ArrayRef<::mlir::NamedAttribute > attrs)
static void populateDefaultProperties (::mlir::OperationName opName, Properties &properties)
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::component::MemberReadOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/5]

void llzk::component::MemberReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type resultType,
::mlir::Value component,
::mlir::StringAttr member )
static

◆ build() [2/5]

void llzk::component::MemberReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type resultType,
::mlir::Value component,
::mlir::StringAttr member,
::mlir::Attribute dist,
::mlir::ValueRange mapOperands,
std::optional< int32_t > numDims )
static

◆ build() [3/5]

void llzk::component::MemberReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type resultType,
::mlir::Value component,
::mlir::StringAttr member,
::mlir::IntegerAttr dist )
static

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

◆ build() [4/5]

void llzk::component::MemberReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type resultType,
::mlir::Value component,
::mlir::StringAttr member,
::mlir::SymbolRefAttr dist )
static

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

◆ build() [5/5]

void llzk::component::MemberReadOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::mlir::ArrayRef<::mlir::NamedAttribute > attrs )
static

◆ computePropertiesHash()

llvm::hash_code llzk::component::MemberReadOp::computePropertiesHash ( const Properties & prop)
static

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

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::component::MemberReadOp::getAttributeNames ( )
inline

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

◆ getComponent()

::mlir::TypedValue<::llzk::component::StructType > llzk::component::MemberReadOp::getComponent ( )
inline

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

◆ getComponentMutable()

::mlir::OpOperand & llzk::component::MemberReadOp::getComponentMutable ( )
inline

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

◆ getInherentAttr()

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

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

◆ getMapOperands()

::mlir::OperandRangeRange llzk::component::MemberReadOp::getMapOperands ( )
inline

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

◆ getMapOperandsMutable()

mlir::MutableOperandRangeRange llzk::component::MemberReadOp::getMapOperandsMutable ( )

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

◆ getMapOpGroupSizes()

llvm::ArrayRef< int32_t > llzk::component::MemberReadOp::getMapOpGroupSizes ( )

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

◆ getMapOpGroupSizesAttr()

::mlir::DenseI32ArrayAttr llzk::component::MemberReadOp::getMapOpGroupSizesAttr ( )
inline

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

◆ getMapOpGroupSizesAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberReadOp::getMapOpGroupSizesAttrName ( )
inline

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

◆ getMapOpGroupSizesAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberReadOp::getMapOpGroupSizesAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getMemberDefOp()

inline ::mlir::FailureOr< SymbolLookupResult< MemberDefOp > > llzk::component::MemberReadOp::getMemberDefOp ( ::mlir::SymbolTableCollection & tables)
inline

Gets the definition for the member referenced in this op.

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

◆ getMemberName()

llvm::StringRef llzk::component::MemberReadOp::getMemberName ( )

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

◆ getMemberNameAttr()

::mlir::FlatSymbolRefAttr llzk::component::MemberReadOp::getMemberNameAttr ( )
inline

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

◆ getMemberNameAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberReadOp::getMemberNameAttrName ( )
inline

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

◆ getMemberNameAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberReadOp::getMemberNameAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getNumDimsPerMap()

llvm::ArrayRef< int32_t > llzk::component::MemberReadOp::getNumDimsPerMap ( )

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

◆ getNumDimsPerMapAttr()

::mlir::DenseI32ArrayAttr llzk::component::MemberReadOp::getNumDimsPerMapAttr ( )
inline

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

◆ getNumDimsPerMapAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberReadOp::getNumDimsPerMapAttrName ( )
inline

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

◆ getNumDimsPerMapAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberReadOp::getNumDimsPerMapAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::component::MemberReadOp::getODSOperandIndexAndLength ( unsigned index)

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

◆ getODSOperands()

::mlir::Operation::operand_range llzk::component::MemberReadOp::getODSOperands ( unsigned index)
inline

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::component::MemberReadOp::getODSResultIndexAndLength ( unsigned index)
inline

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

◆ getODSResults()

::mlir::Operation::result_range llzk::component::MemberReadOp::getODSResults ( unsigned index)
inline

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

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::component::MemberReadOp::getOperationName ( )
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getTableOffset()

std::optional<::mlir::Attribute > llzk::component::MemberReadOp::getTableOffset ( )

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

◆ getTableOffsetAttr()

::mlir::Attribute llzk::component::MemberReadOp::getTableOffsetAttr ( )
inline

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

◆ getTableOffsetAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberReadOp::getTableOffsetAttrName ( )
inline

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

◆ getTableOffsetAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberReadOp::getTableOffsetAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getVal()

::mlir::TypedValue<::mlir::Type > llzk::component::MemberReadOp::getVal ( )
inline

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

◆ isRead()

bool llzk::component::MemberReadOp::isRead ( )

Return true if the op is a read, false if it's a write.

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

◆ parse()

mlir::ParseResult llzk::component::MemberReadOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateDefaultProperties()

void llzk::component::MemberReadOp::populateDefaultProperties ( ::mlir::OperationName opName,
Properties & properties )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::component::MemberReadOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ readProperties()

llvm::LogicalResult llzk::component::MemberReadOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

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

◆ removeTableOffsetAttr()

::mlir::Attribute llzk::component::MemberReadOp::removeTableOffsetAttr ( )
inline

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

◆ setInherentAttr()

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

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

◆ setMapOpGroupSizes()

void llzk::component::MemberReadOp::setMapOpGroupSizes ( ::llvm::ArrayRef< int32_t > attrValue)

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

◆ setMapOpGroupSizesAttr()

void llzk::component::MemberReadOp::setMapOpGroupSizesAttr ( ::mlir::DenseI32ArrayAttr attr)
inline

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

◆ setMemberName()

void llzk::component::MemberReadOp::setMemberName ( ::llvm::StringRef attrValue)

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

◆ setMemberNameAttr()

void llzk::component::MemberReadOp::setMemberNameAttr ( ::mlir::FlatSymbolRefAttr attr)
inline

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

◆ setNumDimsPerMap()

void llzk::component::MemberReadOp::setNumDimsPerMap ( ::llvm::ArrayRef< int32_t > attrValue)

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

◆ setNumDimsPerMapAttr()

void llzk::component::MemberReadOp::setNumDimsPerMapAttr ( ::mlir::DenseI32ArrayAttr attr)
inline

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

◆ setPropertiesFromAttr()

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

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

◆ setTableOffsetAttr()

void llzk::component::MemberReadOp::setTableOffsetAttr ( ::mlir::Attribute attr)
inline

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

◆ verify()

LogicalResult llzk::component::MemberReadOp::verify ( )

Definition at line 716 of file Ops.cpp.

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

llvm::LogicalResult llzk::component::MemberReadOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::component::MemberReadOp::verifyInvariantsImpl ( )

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

◆ verifySymbolUses()

LogicalResult llzk::component::MemberReadOp::verifySymbolUses ( ::mlir::SymbolTableCollection & symbolTable)

Definition at line 624 of file Ops.cpp.

◆ writeProperties()

void llzk::component::MemberReadOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

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


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