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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getPredicateAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
::mlir::TypedValue<::llzk::felt::FeltTypegetLhs ()
 
::mlir::TypedValue<::llzk::felt::FeltTypegetRhs ()
 
::mlir::OpOperand & getLhsMutable ()
 
::mlir::OpOperand & getRhsMutable ()
 
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
 
::mlir::Operation::result_range getODSResults (unsigned index)
 
::mlir::TypedValue<::mlir::IntegerType > getResult ()
 
void writeProperties (::mlir::DialectBytecodeWriter &writer)
 
::llzk::boolean::FeltCmpPredicateAttr getPredicateAttr ()
 
::llzk::boolean::FeltCmpPredicate getPredicate ()
 
void setPredicateAttr (::llzk::boolean::FeltCmpPredicateAttr attr)
 
void setPredicate (::llzk::boolean::FeltCmpPredicate attrValue)
 
::mlir::LogicalResult verifyInvariantsImpl ()
 
::mlir::LogicalResult verifyInvariants ()
 
void print (::mlir::OpAsmPrinter &_odsPrinter)
 
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
 

Static Public Member Functions

::mlir::StringAttr getPredicateAttrName (::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::Type result, ::llzk::boolean::FeltCmpPredicateAttr predicate, ::mlir::Value lhs, ::mlir::Value rhs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::boolean::FeltCmpPredicateAttr predicate, ::mlir::Value lhs, ::mlir::Value rhs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::boolean::FeltCmpPredicateAttr predicate, ::mlir::Value lhs, ::mlir::Value rhs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::llzk::boolean::FeltCmpPredicate predicate, ::mlir::Value lhs, ::mlir::Value rhs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::boolean::FeltCmpPredicate predicate, ::mlir::Value lhs, ::mlir::Value rhs)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::boolean::FeltCmpPredicate predicate, ::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 void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
 
::mlir::LogicalResult inferReturnTypes (::mlir::MLIRContext *context, ::std::optional<::mlir::Location > location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::OpaqueProperties properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type > &inferredReturnTypes)
 
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
 

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

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

◆ FoldAdaptor

using llzk::boolean::CmpOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

template<typename RangeT>
using llzk::boolean::CmpOp::GenericAdaptor = CmpOpGenericAdaptor<RangeT>

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

◆ Properties

Member Function Documentation

◆ build() [1/8]

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

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

◆ build() [2/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::boolean::FeltCmpPredicate predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [3/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::boolean::FeltCmpPredicateAttr predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [4/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::boolean::FeltCmpPredicate predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [5/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::boolean::FeltCmpPredicateAttr predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [6/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::boolean::FeltCmpPredicate predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [7/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::boolean::FeltCmpPredicateAttr predicate,
::mlir::Value lhs,
::mlir::Value rhs )
static

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

◆ build() [8/8]

void llzk::boolean::CmpOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ computePropertiesHash()

llvm::hash_code llzk::boolean::CmpOp::computePropertiesHash ( const Properties & prop)
static

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

◆ getAttributeNames()

static ::llvm::ArrayRef<::llvm::StringRef > llzk::boolean::CmpOp::getAttributeNames ( )
inline

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

◆ getEffects()

void llzk::boolean::CmpOp::getEffects ( ::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > & effects)

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

◆ getInherentAttr()

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

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

◆ getLhs()

mlir::TypedValue<::llzk::felt::FeltType > llzk::boolean::CmpOp::getLhs ( )

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

◆ getLhsMutable()

mlir::OpOperand & llzk::boolean::CmpOp::getLhsMutable ( )

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::boolean::CmpOp::getODSOperandIndexAndLength ( unsigned index)

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

◆ getODSOperands()

mlir::Operation::operand_range llzk::boolean::CmpOp::getODSOperands ( unsigned index)

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::boolean::CmpOp::getODSResultIndexAndLength ( unsigned index)

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

◆ getODSResults()

mlir::Operation::result_range llzk::boolean::CmpOp::getODSResults ( unsigned index)

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

◆ getOperationName()

static constexpr ::llvm::StringLiteral llzk::boolean::CmpOp::getOperationName ( )
inlinestatic

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

◆ getPredicate()

llzk::boolean::FeltCmpPredicate llzk::boolean::CmpOp::getPredicate ( )

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

◆ getPredicateAttr()

llzk::boolean::FeltCmpPredicateAttr llzk::boolean::CmpOp::getPredicateAttr ( )

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

◆ getPredicateAttrName() [1/2]

::mlir::StringAttr llzk::boolean::CmpOp::getPredicateAttrName ( )
inline

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

◆ getPredicateAttrName() [2/2]

::mlir::StringAttr llzk::boolean::CmpOp::getPredicateAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getResult()

mlir::TypedValue<::mlir::IntegerType > llzk::boolean::CmpOp::getResult ( )

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

◆ getRhs()

mlir::TypedValue<::llzk::felt::FeltType > llzk::boolean::CmpOp::getRhs ( )

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

◆ getRhsMutable()

mlir::OpOperand & llzk::boolean::CmpOp::getRhsMutable ( )

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

◆ inferReturnTypes()

mlir::LogicalResult llzk::boolean::CmpOp::inferReturnTypes ( ::mlir::MLIRContext * context,
::std::optional<::mlir::Location > location,
::mlir::ValueRange operands,
::mlir::DictionaryAttr attributes,
::mlir::OpaqueProperties properties,
::mlir::RegionRange regions,
::llvm::SmallVectorImpl<::mlir::Type > & inferredReturnTypes )
static

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

◆ parse()

mlir::ParseResult llzk::boolean::CmpOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::boolean::CmpOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ readProperties()

mlir::LogicalResult llzk::boolean::CmpOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

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

◆ setInherentAttr()

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

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

◆ setPredicate()

void llzk::boolean::CmpOp::setPredicate ( ::llzk::boolean::FeltCmpPredicate attrValue)

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

◆ setPredicateAttr()

void llzk::boolean::CmpOp::setPredicateAttr ( ::llzk::boolean::FeltCmpPredicateAttr attr)

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

mlir::LogicalResult llzk::boolean::CmpOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

mlir::LogicalResult llzk::boolean::CmpOp::verifyInvariantsImpl ( )

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

◆ writeProperties()

void llzk::boolean::CmpOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

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


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