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

Public Types

using Adaptor = EmitContainmentOpAdaptor
template<typename RangeT>
using GenericAdaptor = EmitContainmentOpGenericAdaptor<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<::llzk::array::ArrayType > 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 verify ()
::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 EmitContainmentOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitContainmentOp 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 EmitContainmentOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::Value lhs, ::mlir::Value rhs)
static EmitContainmentOp 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 EmitContainmentOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static EmitContainmentOp 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 EmitContainmentOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static EmitContainmentOp 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 119 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/4]

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

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

◆ build() [2/4]

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

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

◆ build() [3/4]

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

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

◆ build() [4/4]

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

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

◆ computePropertiesHash()

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

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

◆ create() [1/8]

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

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

◆ create() [2/8]

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

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

◆ create() [3/8]

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

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

◆ create() [4/8]

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

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

◆ create() [5/8]

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

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

◆ create() [6/8]

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

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

◆ create() [7/8]

EmitContainmentOp llzk::constrain::EmitContainmentOp::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 176 of file Ops.cpp.inc.

◆ create() [8/8]

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

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

◆ getAttributeNames()

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

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

◆ getInherentAttr()

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

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

◆ getLhs()

::mlir::TypedValue<::llzk::array::ArrayType > llzk::constrain::EmitContainmentOp::getLhs ( )
inline

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

◆ getLhsMutable()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getRhs()

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

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

◆ getRhsMutable()

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

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

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verify()

LogicalResult llzk::constrain::EmitContainmentOp::verify ( )

Definition at line 51 of file Ops.cpp.

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ verifySymbolUses()

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

Definition at line 44 of file Ops.cpp.

Member Data Documentation

◆ odsIndex_lhs

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

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

◆ odsIndex_rhs

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

Definition at line 128 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