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::Value 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)
 
::mlir::LogicalResult verifyInvariantsImpl ()
 
::mlir::LogicalResult verifyInvariants ()
 
bool isRead ()
 Return true if the op is a read, false if it's a write.
 
::mlir::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 ()
 
::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::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 707 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

Definition at line 713 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 1583 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 1575 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 1561 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 1569 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 1555 of file Ops.cpp.inc.

◆ computePropertiesHash()

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

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

◆ getAttributeNames()

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

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

◆ getComponent()

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

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

◆ getComponentMutable()

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

Definition at line 1431 of file Ops.cpp.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 780 of file Ops.h.inc.

◆ getFieldName()

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

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

◆ getFieldNameAttr()

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

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

◆ getFieldNameAttrName() [1/2]

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

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

◆ getFieldNameAttrName() [2/2]

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

Definition at line 725 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 1500 of file Ops.cpp.inc.

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getVal()

mlir::Value llzk::component::FieldWriteOp::getVal ( )

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

◆ getValMutable()

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

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

◆ isRead()

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

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

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ setFieldName()

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

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

◆ setFieldNameAttr()

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

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 531 of file Ops.cpp.

◆ writeProperties()

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

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


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