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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getOverflowAttrName ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::llzk::felt::FeltTypegetValue ()
::mlir::OpOperand & getValueMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
::mlir::TypedValue<::mlir::IndexType > getResult ()
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::llzk::cast::OverflowSemanticsAttr getOverflowAttr ()
::llzk::cast::OverflowSemantics getOverflow ()
void setOverflowAttr (::llzk::cast::OverflowSemanticsAttr attr)
void setOverflow (::llzk::cast::OverflowSemantics attrValue)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
void print (::mlir::OpAsmPrinter &_odsPrinter)
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)

Static Public Member Functions

::mlir::StringAttr getOverflowAttrName (::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::Type result, ::llzk::cast::OverflowSemanticsAttr overflow, ::mlir::Value value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::cast::OverflowSemanticsAttr overflow, ::mlir::Value value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::cast::OverflowSemanticsAttr overflow, ::mlir::Value value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::llzk::cast::OverflowSemantics overflow, ::mlir::Value value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::cast::OverflowSemantics overflow, ::mlir::Value value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::cast::OverflowSemantics overflow, ::mlir::Value value)
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={})
static void populateDefaultProperties (::mlir::OperationName opName, Properties &properties)
::llvm::LogicalResult canonicalize (FeltToIndexOp op, ::mlir::PatternRewriter &rewriter)
static void getCanonicalizationPatterns (::mlir::RewritePatternSet &results, ::mlir::MLIRContext *context)
::llvm::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)
::mlir::ParseResult parseOptionalOverflowSemantics (::mlir::OpAsmParser &parser, ::llzk::cast::OverflowSemanticsAttr &overflow)
static void printOptionalOverflowSemantics (::mlir::OpAsmPrinter &printer, FeltToIndexOp op, ::llzk::cast::OverflowSemanticsAttr overflow)

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::cast::FeltToIndexOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/8]

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

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

◆ build() [2/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::cast::OverflowSemantics overflow,
::mlir::Value value )
static

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

◆ build() [3/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::cast::OverflowSemanticsAttr overflow,
::mlir::Value value )
static

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

◆ build() [4/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::cast::OverflowSemantics overflow,
::mlir::Value value )
static

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

◆ build() [5/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::cast::OverflowSemanticsAttr overflow,
::mlir::Value value )
static

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

◆ build() [6/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::cast::OverflowSemantics overflow,
::mlir::Value value )
static

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

◆ build() [7/8]

void llzk::cast::FeltToIndexOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::cast::OverflowSemanticsAttr overflow,
::mlir::Value value )
static

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

◆ build() [8/8]

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

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

◆ canonicalize()

LogicalResult llzk::cast::FeltToIndexOp::canonicalize ( FeltToIndexOp op,
::mlir::PatternRewriter & rewriter )
static

Definition at line 107 of file Ops.cpp.

◆ computePropertiesHash()

llvm::hash_code llzk::cast::FeltToIndexOp::computePropertiesHash ( const Properties & prop)
static

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

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::cast::FeltToIndexOp::getAttributeNames ( )
inline

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

◆ getCanonicalizationPatterns()

void llzk::cast::FeltToIndexOp::getCanonicalizationPatterns ( ::mlir::RewritePatternSet & results,
::mlir::MLIRContext * context )
static

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

◆ getEffects()

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

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::cast::FeltToIndexOp::getODSOperandIndexAndLength ( unsigned index)
inline

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

◆ getODSOperands()

::mlir::Operation::operand_range llzk::cast::FeltToIndexOp::getODSOperands ( unsigned index)
inline

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::cast::FeltToIndexOp::getODSResultIndexAndLength ( unsigned index)
inline

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

◆ getODSResults()

::mlir::Operation::result_range llzk::cast::FeltToIndexOp::getODSResults ( unsigned index)
inline

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

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::cast::FeltToIndexOp::getOperationName ( )
inlinestatic

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

◆ getOverflow()

llzk::cast::OverflowSemantics llzk::cast::FeltToIndexOp::getOverflow ( )

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

◆ getOverflowAttr()

::llzk::cast::OverflowSemanticsAttr llzk::cast::FeltToIndexOp::getOverflowAttr ( )
inline

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

◆ getOverflowAttrName() [1/2]

::mlir::StringAttr llzk::cast::FeltToIndexOp::getOverflowAttrName ( )
inline

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

◆ getOverflowAttrName() [2/2]

::mlir::StringAttr llzk::cast::FeltToIndexOp::getOverflowAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getResult()

::mlir::TypedValue<::mlir::IndexType > llzk::cast::FeltToIndexOp::getResult ( )
inline

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

◆ getValue()

::mlir::TypedValue<::llzk::felt::FeltType > llzk::cast::FeltToIndexOp::getValue ( )
inline

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

◆ getValueMutable()

::mlir::OpOperand & llzk::cast::FeltToIndexOp::getValueMutable ( )
inline

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

◆ inferReturnTypes()

llvm::LogicalResult llzk::cast::FeltToIndexOp::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 345 of file Ops.cpp.inc.

◆ parse()

mlir::ParseResult llzk::cast::FeltToIndexOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ parseOptionalOverflowSemantics()

ParseResult llzk::cast::FeltToIndexOp::parseOptionalOverflowSemantics ( ::mlir::OpAsmParser & parser,
::llzk::cast::OverflowSemanticsAttr & overflow )
static

Definition at line 119 of file Ops.cpp.

◆ populateDefaultProperties()

void llzk::cast::FeltToIndexOp::populateDefaultProperties ( ::mlir::OperationName opName,
Properties & properties )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::cast::FeltToIndexOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ printOptionalOverflowSemantics()

void llzk::cast::FeltToIndexOp::printOptionalOverflowSemantics ( ::mlir::OpAsmPrinter & printer,
FeltToIndexOp op,
::llzk::cast::OverflowSemanticsAttr overflow )
static

Definition at line 125 of file Ops.cpp.

◆ readProperties()

llvm::LogicalResult llzk::cast::FeltToIndexOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

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

◆ setInherentAttr()

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

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

◆ setOverflow()

void llzk::cast::FeltToIndexOp::setOverflow ( ::llzk::cast::OverflowSemantics attrValue)

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

◆ setOverflowAttr()

void llzk::cast::FeltToIndexOp::setOverflowAttr ( ::llzk::cast::OverflowSemanticsAttr attr)
inline

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

llvm::LogicalResult llzk::cast::FeltToIndexOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::cast::FeltToIndexOp::verifyInvariantsImpl ( )

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

◆ writeProperties()

void llzk::cast::FeltToIndexOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

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


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