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

Public Types

using Adaptor = BVConstantOpAdaptor
template<typename RangeT>
using GenericAdaptor = BVConstantOpGenericAdaptor<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::smt::BitVectorTypegetResult ()
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::llzk::smt::BitVectorAttr getValueAttr ()
::llzk::smt::BitVectorAttr getValue ()
void setValueAttr (::llzk::smt::BitVectorAttr attr)
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::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 ()
::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, const llvm::APInt &value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, uint64_t value, unsigned width)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::llzk::smt::BitVectorAttr value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llzk::smt::BitVectorAttr value)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llzk::smt::BitVectorAttr 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={})
::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)

Detailed Description

Definition at line 2149 of file SMT.h.inc.

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::smt::BVConstantOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

Definition at line 2156 of file SMT.h.inc.

◆ GenericAdaptor

template<typename RangeT>
using llzk::smt::BVConstantOp::GenericAdaptor = BVConstantOpGenericAdaptor<RangeT>

Definition at line 2155 of file SMT.h.inc.

◆ Properties

Member Function Documentation

◆ build() [1/7]

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

Definition at line 2690 of file SMT.cpp.inc.

◆ build() [2/7]

void llzk::smt::BVConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::llzk::smt::BitVectorAttr value )
static

Definition at line 2669 of file SMT.cpp.inc.

◆ build() [3/7]

void llzk::smt::BVConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::llzk::smt::BitVectorAttr value )
static

Definition at line 2664 of file SMT.cpp.inc.

◆ build() [4/7]

void llzk::smt::BVConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::llzk::smt::BitVectorAttr value )
static

Definition at line 2684 of file SMT.cpp.inc.

◆ build() [5/7]

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

Definition at line 2708 of file SMT.cpp.inc.

◆ build() [6/7]

void llzk::smt::BVConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
const llvm::APInt & value )
static

Definition at line 2652 of file SMT.cpp.inc.

◆ build() [7/7]

void llzk::smt::BVConstantOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
uint64_t value,
unsigned width )
static

Definition at line 2658 of file SMT.cpp.inc.

◆ computePropertiesHash()

llvm::hash_code llzk::smt::BVConstantOp::computePropertiesHash ( const Properties & prop)
static

Definition at line 2604 of file SMT.cpp.inc.

◆ fold()

OpFoldResult BVConstantOp::fold ( FoldAdaptor adaptor)

Definition at line 39 of file SMTOps.cpp.

◆ getAsmResultNames()

void BVConstantOp::getAsmResultNames ( ::mlir::OpAsmSetValueNameFn setNameFn)

Definition at line 32 of file SMTOps.cpp.

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::smt::BVConstantOp::getAttributeNames ( )
inline

Definition at line 2158 of file SMT.h.inc.

◆ getEffects()

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

Definition at line 2792 of file SMT.cpp.inc.

◆ getInherentAttr()

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

Definition at line 2609 of file SMT.cpp.inc.

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::smt::BVConstantOp::getODSOperandIndexAndLength ( unsigned index)
inline

Definition at line 2175 of file SMT.h.inc.

◆ getODSOperands()

::mlir::Operation::operand_range llzk::smt::BVConstantOp::getODSOperands ( unsigned index)
inline

Definition at line 2179 of file SMT.h.inc.

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::smt::BVConstantOp::getODSResultIndexAndLength ( unsigned index)
inline

Definition at line 2185 of file SMT.h.inc.

◆ getODSResults()

::mlir::Operation::result_range llzk::smt::BVConstantOp::getODSResults ( unsigned index)
inline

Definition at line 2189 of file SMT.h.inc.

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::smt::BVConstantOp::getOperationName ( )
inlinestatic

Definition at line 2171 of file SMT.h.inc.

◆ getPropertiesAsAttr()

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

Definition at line 2588 of file SMT.cpp.inc.

◆ getResult()

::mlir::TypedValue<::llzk::smt::BitVectorType > llzk::smt::BVConstantOp::getResult ( )
inline

Definition at line 2195 of file SMT.h.inc.

◆ getValue()

llzk::smt::BitVectorAttr llzk::smt::BVConstantOp::getValue ( )

Definition at line 2647 of file SMT.cpp.inc.

◆ getValueAttr()

::llzk::smt::BitVectorAttr llzk::smt::BVConstantOp::getValueAttr ( )
inline

Definition at line 2208 of file SMT.h.inc.

◆ getValueAttrName() [1/2]

::mlir::StringAttr llzk::smt::BVConstantOp::getValueAttrName ( )
inline

Definition at line 2163 of file SMT.h.inc.

◆ getValueAttrName() [2/2]

::mlir::StringAttr llzk::smt::BVConstantOp::getValueAttrName ( ::mlir::OperationName name)
inlinestatic

Definition at line 2167 of file SMT.h.inc.

◆ inferReturnTypes()

LogicalResult BVConstantOp::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 23 of file SMTOps.cpp.

◆ parse()

mlir::ParseResult llzk::smt::BVConstantOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

Definition at line 2757 of file SMT.cpp.inc.

◆ populateInherentAttrs()

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

Definition at line 2622 of file SMT.cpp.inc.

◆ print()

void llzk::smt::BVConstantOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

Definition at line 2784 of file SMT.cpp.inc.

◆ readProperties()

llvm::LogicalResult llzk::smt::BVConstantOp::readProperties ( ::mlir::DialectBytecodeReader & reader,
::mlir::OperationState & state )
static

Definition at line 2635 of file SMT.cpp.inc.

◆ setInherentAttr()

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

Definition at line 2615 of file SMT.cpp.inc.

◆ setPropertiesFromAttr()

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

Definition at line 2565 of file SMT.cpp.inc.

◆ setValueAttr()

void llzk::smt::BVConstantOp::setValueAttr ( ::llzk::smt::BitVectorAttr attr)
inline

Definition at line 2213 of file SMT.h.inc.

◆ verifyInherentAttrs()

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

Definition at line 2626 of file SMT.cpp.inc.

◆ verifyInvariants()

llvm::LogicalResult llzk::smt::BVConstantOp::verifyInvariants ( )

Definition at line 2753 of file SMT.cpp.inc.

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::smt::BVConstantOp::verifyInvariantsImpl ( )

Definition at line 2735 of file SMT.cpp.inc.

◆ writeProperties()

void llzk::smt::BVConstantOp::writeProperties ( ::mlir::DialectBytecodeWriter & writer)

Definition at line 2642 of file SMT.cpp.inc.


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