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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
 
::mlir::StringAttr getValueAttrName ()
 
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
 
::mlir::Operation::operand_range getODSOperands (unsigned index)
 
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::felt::FeltConstAttr getValueAttr ()
 
::llzk::felt::FeltConstAttr getValue ()
 
void setValueAttr (::llzk::felt::FeltConstAttr attr)
 
::mlir::LogicalResult verifyInvariantsImpl ()
 
::mlir::LogicalResult verifyInvariants ()
 
::mlir::OpFoldResult fold (FoldAdaptor adaptor)
 
void getAsmResultNames (::mlir::OpAsmSetValueNameFn setNameFn)
 
void print (::mlir::OpAsmPrinter &_odsPrinter)
 
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
 

Static Public Member Functions

::mlir::StringAttr getValueAttrName (::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::felt::FeltConstAttr value)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::felt::FeltConstAttr value)
 
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::felt::FeltConstAttr 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={})
 
::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 582 of file Ops.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::felt::FeltConstantOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/5]

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

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

◆ build() [2/5]

void llzk::felt::FeltConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::felt::FeltConstAttr value )
static

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

◆ build() [3/5]

void llzk::felt::FeltConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::felt::FeltConstAttr value )
static

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

◆ build() [4/5]

void llzk::felt::FeltConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::felt::FeltConstAttr value )
static

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

◆ build() [5/5]

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

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

◆ computePropertiesHash()

llvm::hash_code llzk::felt::FeltConstantOp::computePropertiesHash ( const Properties & prop)
static

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

◆ fold()

OpFoldResult llzk::felt::FeltConstantOp::fold ( FeltConstantOp::FoldAdaptor adaptor)

Definition at line 38 of file Ops.cpp.

◆ getAsmResultNames()

void llzk::felt::FeltConstantOp::getAsmResultNames ( ::mlir::OpAsmSetValueNameFn setNameFn)

Definition at line 30 of file Ops.cpp.

◆ getAttributeNames()

static ::llvm::ArrayRef<::llvm::StringRef > llzk::felt::FeltConstantOp::getAttributeNames ( )
inline

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

◆ getEffects()

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

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

◆ getInherentAttr()

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

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::felt::FeltConstantOp::getODSOperandIndexAndLength ( unsigned index)

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

◆ getODSOperands()

mlir::Operation::operand_range llzk::felt::FeltConstantOp::getODSOperands ( unsigned index)

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::felt::FeltConstantOp::getODSResultIndexAndLength ( unsigned index)

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

◆ getODSResults()

mlir::Operation::result_range llzk::felt::FeltConstantOp::getODSResults ( unsigned index)

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

◆ getOperationName()

static constexpr ::llvm::StringLiteral llzk::felt::FeltConstantOp::getOperationName ( )
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ getResult()

mlir::TypedValue<::llzk::felt::FeltType > llzk::felt::FeltConstantOp::getResult ( )

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

◆ getValue()

llzk::felt::FeltConstAttr llzk::felt::FeltConstantOp::getValue ( )

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

◆ getValueAttr()

llzk::felt::FeltConstAttr llzk::felt::FeltConstantOp::getValueAttr ( )

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

◆ getValueAttrName() [1/2]

::mlir::StringAttr llzk::felt::FeltConstantOp::getValueAttrName ( )
inline

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

◆ getValueAttrName() [2/2]

::mlir::StringAttr llzk::felt::FeltConstantOp::getValueAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ inferReturnTypes()

mlir::LogicalResult llzk::felt::FeltConstantOp::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 1010 of file Ops.cpp.inc.

◆ parse()

mlir::ParseResult llzk::felt::FeltConstantOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::felt::FeltConstantOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ readProperties()

mlir::LogicalResult llzk::felt::FeltConstantOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ setValueAttr()

void llzk::felt::FeltConstantOp::setValueAttr ( ::llzk::felt::FeltConstAttr attr)

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

mlir::LogicalResult llzk::felt::FeltConstantOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

mlir::LogicalResult llzk::felt::FeltConstantOp::verifyInvariantsImpl ( )

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

◆ writeProperties()

void llzk::felt::FeltConstantOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

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


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