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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::mlir::Type > getLhs ()
::mlir::TypedValue<::mlir::Type > getRhs ()
::mlir::OpOperand & getLhsMutable ()
::mlir::OpOperand & getRhsMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)

Static Public Member Functions

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)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitEqualityOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitEqualityOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Value lhs, ::mlir::Value rhs)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitEqualityOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitEqualityOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::Value lhs, ::mlir::Value rhs)
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static EmitEqualityOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static EmitEqualityOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static EmitEqualityOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static EmitEqualityOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Static Public Attributes

static constexpr int odsIndex_lhs = 0
static constexpr int odsIndex_rhs = 1

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::constrain::EmitEqualityOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/4]

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

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

◆ build() [2/4]

void llzk::constrain::EmitEqualityOp::build ( ::mlir::OpBuilder & ,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ build() [3/4]

void llzk::constrain::EmitEqualityOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [4/4]

void llzk::constrain::EmitEqualityOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ computePropertiesHash()

llvm::hash_code llzk::constrain::EmitEqualityOp::computePropertiesHash ( const Properties & prop)
static

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

◆ create() [1/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ create() [2/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [3/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [4/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ create() [5/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ create() [6/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [7/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [8/8]

EmitEqualityOp llzk::constrain::EmitEqualityOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::constrain::EmitEqualityOp::getAttributeNames ( )
inline

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

◆ getInherentAttr()

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

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

◆ getLhs()

::mlir::TypedValue<::mlir::Type > llzk::constrain::EmitEqualityOp::getLhs ( )
inline

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

◆ getLhsMutable()

::mlir::OpOperand & llzk::constrain::EmitEqualityOp::getLhsMutable ( )
inline

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::constrain::EmitEqualityOp::getODSOperandIndexAndLength ( unsigned index)
inline

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

◆ getODSOperands()

::mlir::Operation::operand_range llzk::constrain::EmitEqualityOp::getODSOperands ( unsigned index)
inline

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::constrain::EmitEqualityOp::getODSResultIndexAndLength ( unsigned index)
inline

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

◆ getODSResults()

::mlir::Operation::result_range llzk::constrain::EmitEqualityOp::getODSResults ( unsigned index)
inline

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

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::constrain::EmitEqualityOp::getOperationName ( )
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getRhs()

::mlir::TypedValue<::mlir::Type > llzk::constrain::EmitEqualityOp::getRhs ( )
inline

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

◆ getRhsMutable()

::mlir::OpOperand & llzk::constrain::EmitEqualityOp::getRhsMutable ( )
inline

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

◆ parse()

mlir::ParseResult llzk::constrain::EmitEqualityOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::constrain::EmitEqualityOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

llvm::LogicalResult llzk::constrain::EmitEqualityOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::constrain::EmitEqualityOp::verifyInvariantsImpl ( )

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

◆ verifySymbolUses()

LogicalResult llzk::constrain::EmitEqualityOp::verifySymbolUses ( ::mlir::SymbolTableCollection & symbolTable)

Definition at line 31 of file Ops.cpp.

Member Data Documentation

◆ odsIndex_lhs

int llzk::constrain::EmitEqualityOp::odsIndex_lhs = 0
staticconstexpr

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

◆ odsIndex_rhs

int llzk::constrain::EmitEqualityOp::odsIndex_rhs = 1
staticconstexpr

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


The documentation for this class was generated from the following files:
  • build/include/llzk/Dialect/Constrain/IR/Ops.h.inc
  • lib/Dialect/Constrain/IR/Ops.cpp
  • build/include/llzk/Dialect/Constrain/IR/Ops.cpp.inc