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

Public Types

using Adaptor = IntToFeltOpAdaptor
template<typename RangeT>
using GenericAdaptor = IntToFeltOpGenericAdaptor<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<::mlir::Type > getValue ()
::mlir::OpOperand & getValueMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
::mlir::TypedValue<::llzk::felt::FeltTypegetResult ()
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 (IntToFeltOp 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)
static bool isCompatibleReturnTypes (::mlir::TypeRange lhs, ::mlir::TypeRange rhs)
::mlir::ParseResult parseOptionalOverflowSemantics (::mlir::OpAsmParser &parser, ::llzk::cast::OverflowSemanticsAttr &overflow)
static void printOptionalOverflowSemantics (::mlir::OpAsmPrinter &printer, IntToFeltOp op, ::llzk::cast::OverflowSemanticsAttr overflow)

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

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

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

◆ GenericAdaptor

template<typename RangeT>
using llzk::cast::IntToFeltOp::GenericAdaptor = IntToFeltOpGenericAdaptor<RangeT>

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

◆ Properties

Member Function Documentation

◆ build() [1/8]

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

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

◆ build() [2/8]

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

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

◆ build() [3/8]

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

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

◆ build() [4/8]

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

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

◆ build() [5/8]

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

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

◆ build() [6/8]

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

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

◆ build() [7/8]

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

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

◆ build() [8/8]

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

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

◆ canonicalize()

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

Definition at line 81 of file Ops.cpp.

◆ computePropertiesHash()

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

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

◆ getAttributeNames()

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

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

◆ getCanonicalizationPatterns()

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

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

◆ getEffects()

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

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getOverflow()

llzk::cast::OverflowSemantics llzk::cast::IntToFeltOp::getOverflow ( )

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

◆ getOverflowAttr()

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

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

◆ getOverflowAttrName() [1/2]

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

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

◆ getOverflowAttrName() [2/2]

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

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

◆ getPropertiesAsAttr()

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

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

◆ getResult()

::mlir::TypedValue<::llzk::felt::FeltType > llzk::cast::IntToFeltOp::getResult ( )
inline

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

◆ getValue()

::mlir::TypedValue<::mlir::Type > llzk::cast::IntToFeltOp::getValue ( )
inline

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

◆ getValueMutable()

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

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

◆ inferReturnTypes()

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

◆ isCompatibleReturnTypes()

bool llzk::cast::IntToFeltOp::isCompatibleReturnTypes ( ::mlir::TypeRange lhs,
::mlir::TypeRange rhs )
static

Definition at line 58 of file Ops.cpp.

◆ parse()

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

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

◆ parseOptionalOverflowSemantics()

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

Definition at line 97 of file Ops.cpp.

◆ populateDefaultProperties()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ printOptionalOverflowSemantics()

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

Definition at line 101 of file Ops.cpp.

◆ readProperties()

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

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

◆ setInherentAttr()

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

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

◆ setOverflow()

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

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

◆ setOverflowAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ writeProperties()

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

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


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