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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getColumnAttrName ()
::mlir::StringAttr getSignalAttrName ()
::mlir::StringAttr getSymNameAttrName ()
::mlir::StringAttr getTypeAttrName ()
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)
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::mlir::StringAttr getSymNameAttr ()
::llvm::StringRef getSymName ()
::mlir::TypeAttr getTypeAttr ()
::mlir::Type getType ()
::mlir::UnitAttr getColumnAttr ()
bool getColumn ()
::mlir::UnitAttr getSignalAttr ()
bool getSignal ()
void setSymNameAttr (::mlir::StringAttr attr)
void setSymName (::llvm::StringRef attrValue)
void setTypeAttr (::mlir::TypeAttr attr)
void setType (::mlir::Type attrValue)
void setColumnAttr (::mlir::UnitAttr attr)
void setColumn (bool attrValue)
void setSignalAttr (::mlir::UnitAttr attr)
void setSignal (bool attrValue)
::mlir::Attribute removeColumnAttr ()
::mlir::Attribute removeSignalAttr ()
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verify ()
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
bool hasPublicAttr ()
 Returns whether this member is a public output.
void setPublicAttr (bool newValue=true)
 Adds or removes the unit llzk.pub attribute according to newValue.

Static Public Member Functions

::mlir::StringAttr getColumnAttrName (::mlir::OperationName name)
::mlir::StringAttr getSignalAttrName (::mlir::OperationName name)
::mlir::StringAttr getSymNameAttrName (::mlir::OperationName name)
::mlir::StringAttr getTypeAttrName (::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::StringAttr sym_name, ::mlir::TypeAttr type, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::StringAttr sym_name, ::mlir::TypeAttr type, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::StringAttr sym_name, ::mlir::TypeAttr type, bool isSignal=false, bool isColumn=false)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name, ::mlir::Type type, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::llvm::StringRef sym_name, ::mlir::Type type, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::ImplicitLocOpBuilder &builder, ::llvm::StringRef sym_name, ::mlir::Type type, bool isSignal=false, bool isColumn=false)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
static MemberDefOp create (::mlir::ImplicitLocOpBuilder &builder, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes, bool isSignal=false, bool isColumn=false)
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/4]

void llzk::component::MemberDefOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

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

◆ build() [2/4]

void llzk::component::MemberDefOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llvm::StringRef sym_name,
::mlir::Type type,
bool isSignal = false,
bool isColumn = false )
static

◆ build() [3/4]

void llzk::component::MemberDefOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::StringAttr sym_name,
::mlir::TypeAttr type,
bool isSignal = false,
bool isColumn = false )
static

◆ build() [4/4]

void llzk::component::MemberDefOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

◆ computePropertiesHash()

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

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

◆ create() [1/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [2/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::llvm::StringRef sym_name,
::mlir::Type type,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [3/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::StringAttr sym_name,
::mlir::TypeAttr type,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [4/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [5/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [6/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::llvm::StringRef sym_name,
::mlir::Type type,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [7/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::StringAttr sym_name,
::mlir::TypeAttr type,
bool isSignal = false,
bool isColumn = false )
static

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

◆ create() [8/8]

MemberDefOp llzk::component::MemberDefOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes,
bool isSignal = false,
bool isColumn = false )
static

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

◆ getAttributeNames()

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

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

◆ getColumn()

bool llzk::component::MemberDefOp::getColumn ( )

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

◆ getColumnAttr()

::mlir::UnitAttr llzk::component::MemberDefOp::getColumnAttr ( )
inline

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

◆ getColumnAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberDefOp::getColumnAttrName ( )
inline

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

◆ getColumnAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberDefOp::getColumnAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getSignal()

bool llzk::component::MemberDefOp::getSignal ( )

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

◆ getSignalAttr()

::mlir::UnitAttr llzk::component::MemberDefOp::getSignalAttr ( )
inline

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

◆ getSignalAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberDefOp::getSignalAttrName ( )
inline

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

◆ getSignalAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberDefOp::getSignalAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getSymName()

llvm::StringRef llzk::component::MemberDefOp::getSymName ( )

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

◆ getSymNameAttr()

::mlir::StringAttr llzk::component::MemberDefOp::getSymNameAttr ( )
inline

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

◆ getSymNameAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberDefOp::getSymNameAttrName ( )
inline

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

◆ getSymNameAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberDefOp::getSymNameAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getType()

mlir::Type llzk::component::MemberDefOp::getType ( )

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

◆ getTypeAttr()

::mlir::TypeAttr llzk::component::MemberDefOp::getTypeAttr ( )
inline

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

◆ getTypeAttrName() [1/2]

::mlir::StringAttr llzk::component::MemberDefOp::getTypeAttrName ( )
inline

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

◆ getTypeAttrName() [2/2]

::mlir::StringAttr llzk::component::MemberDefOp::getTypeAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ hasPublicAttr()

bool llzk::component::MemberDefOp::hasPublicAttr ( )
inline

Returns whether this member is a public output.

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ removeColumnAttr()

::mlir::Attribute llzk::component::MemberDefOp::removeColumnAttr ( )
inline

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

◆ removeSignalAttr()

::mlir::Attribute llzk::component::MemberDefOp::removeSignalAttr ( )
inline

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

◆ setColumn()

void llzk::component::MemberDefOp::setColumn ( bool attrValue)

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

◆ setColumnAttr()

void llzk::component::MemberDefOp::setColumnAttr ( ::mlir::UnitAttr attr)
inline

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ setPublicAttr()

void llzk::component::MemberDefOp::setPublicAttr ( bool newValue = true)

Adds or removes the unit llzk.pub attribute according to newValue.

Definition at line 566 of file Ops.cpp.

◆ setSignal()

void llzk::component::MemberDefOp::setSignal ( bool attrValue)

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

◆ setSignalAttr()

void llzk::component::MemberDefOp::setSignalAttr ( ::mlir::UnitAttr attr)
inline

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

◆ setSymName()

void llzk::component::MemberDefOp::setSymName ( ::llvm::StringRef attrValue)

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

◆ setSymNameAttr()

void llzk::component::MemberDefOp::setSymNameAttr ( ::mlir::StringAttr attr)
inline

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

◆ setType()

void llzk::component::MemberDefOp::setType ( ::mlir::Type attrValue)

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

◆ setTypeAttr()

void llzk::component::MemberDefOp::setTypeAttr ( ::mlir::TypeAttr attr)
inline

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

◆ verify()

LogicalResult llzk::component::MemberDefOp::verify ( )

Definition at line 615 of file Ops.cpp.

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 597 of file Ops.cpp.

◆ writeProperties()

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

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


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