LLZK 0.1.0
Veridise's ZK Language IR
Loading...
Searching...
No Matches
llzk::component::FieldWriteOp Class Reference
Inheritance diagram for llzk::component::FieldWriteOp:
[legend]
Collaboration diagram for llzk::component::FieldWriteOp:
[legend]

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getFieldNameAttrName ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::llzk::component::StructTypegetComponent ()
::mlir::TypedValue<::mlir::Type > getVal ()
::mlir::OpOperand & getComponentMutable ()
::mlir::OpOperand & getValMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::mlir::FlatSymbolRefAttr getFieldNameAttr ()
::llvm::StringRef getFieldName ()
void setFieldNameAttr (::mlir::FlatSymbolRefAttr attr)
void setFieldName (::llvm::StringRef attrValue)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
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< FieldDefOp > > getFieldDefOp (::mlir::SymbolTableCollection &tables)
 Gets the definition for the field referenced in this op.

Static Public Member Functions

::mlir::StringAttr getFieldNameAttrName (::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::Value component, ::mlir::FlatSymbolRefAttr field_name, ::mlir::Value val)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value component, ::mlir::FlatSymbolRefAttr field_name, ::mlir::Value val)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value component, ::llvm::StringRef field_name, ::mlir::Value val)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value component, ::llvm::StringRef field_name, ::mlir::Value val)
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 878 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/5]

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

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

◆ build() [2/5]

void llzk::component::FieldWriteOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value component,
::llvm::StringRef field_name,
::mlir::Value val )
static

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

◆ build() [3/5]

void llzk::component::FieldWriteOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value component,
::mlir::FlatSymbolRefAttr field_name,
::mlir::Value val )
static

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

◆ build() [4/5]

void llzk::component::FieldWriteOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value component,
::llvm::StringRef field_name,
::mlir::Value val )
static

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

◆ build() [5/5]

void llzk::component::FieldWriteOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value component,
::mlir::FlatSymbolRefAttr field_name,
::mlir::Value val )
static

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

◆ computePropertiesHash()

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

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

◆ getAttributeNames()

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

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

◆ getComponent()

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

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

◆ getComponentMutable()

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

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

◆ getFieldDefOp()

inline ::mlir::FailureOr< SymbolLookupResult< FieldDefOp > > llzk::component::FieldWriteOp::getFieldDefOp ( ::mlir::SymbolTableCollection & tables)
inline

Gets the definition for the field referenced in this op.

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

◆ getFieldName()

llvm::StringRef llzk::component::FieldWriteOp::getFieldName ( )

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

◆ getFieldNameAttr()

::mlir::FlatSymbolRefAttr llzk::component::FieldWriteOp::getFieldNameAttr ( )
inline

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

◆ getFieldNameAttrName() [1/2]

::mlir::StringAttr llzk::component::FieldWriteOp::getFieldNameAttrName ( )
inline

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

◆ getFieldNameAttrName() [2/2]

::mlir::StringAttr llzk::component::FieldWriteOp::getFieldNameAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getVal()

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

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

◆ getValMutable()

::mlir::OpOperand & llzk::component::FieldWriteOp::getValMutable ( )
inline

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

◆ isRead()

bool llzk::component::FieldWriteOp::isRead ( )

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

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ setFieldName()

void llzk::component::FieldWriteOp::setFieldName ( ::llvm::StringRef attrValue)

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

◆ setFieldNameAttr()

void llzk::component::FieldWriteOp::setFieldNameAttr ( ::mlir::FlatSymbolRefAttr attr)
inline

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 615 of file Ops.cpp.

◆ writeProperties()

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

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


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