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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
::mlir::StringAttr getIsSignedAttrName ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::llzk::smt::BitVectorTypegetInput ()
::mlir::OpOperand & getInputMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
::mlir::TypedValue<::llzk::smt::IntTypegetResult ()
void writeProperties (::mlir::DialectBytecodeWriter &writer)
::mlir::UnitAttr getIsSignedAttr ()
bool getIsSigned ()
void setIsSignedAttr (::mlir::UnitAttr attr)
void setIsSigned (bool attrValue)
::mlir::Attribute removeIsSignedAttr ()
::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 getIsSignedAttrName (::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, ::mlir::Value input, ::mlir::UnitAttr is_signed)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value input, ::mlir::UnitAttr is_signed)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input, ::mlir::UnitAttr is_signed)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type result, ::mlir::Value input, bool is_signed=false)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value input, bool is_signed=false)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value input, bool is_signed=false)
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 1244 of file SMT.h.inc.

Member Typedef Documentation

◆ Adaptor

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

◆ FoldAdaptor

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

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

◆ GenericAdaptor

template<typename RangeT>
using llzk::smt::BV2IntOp::GenericAdaptor = BV2IntOpGenericAdaptor<RangeT>

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

◆ Properties

Member Function Documentation

◆ build() [1/8]

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

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

◆ build() [2/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::mlir::Value input,
::mlir::UnitAttr is_signed )
static

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

◆ build() [3/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type result,
::mlir::Value input,
bool is_signed = false )
static

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

◆ build() [4/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value input,
::mlir::UnitAttr is_signed )
static

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

◆ build() [5/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value input,
bool is_signed = false )
static

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

◆ build() [6/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value input,
::mlir::UnitAttr is_signed )
static

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

◆ build() [7/8]

void llzk::smt::BV2IntOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value input,
bool is_signed = false )
static

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

◆ build() [8/8]

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

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

◆ computePropertiesHash()

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

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

◆ getAttributeNames()

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

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

◆ getEffects()

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

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

◆ getInherentAttr()

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

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

◆ getInput()

::mlir::TypedValue<::llzk::smt::BitVectorType > llzk::smt::BV2IntOp::getInput ( )
inline

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

◆ getInputMutable()

::mlir::OpOperand & llzk::smt::BV2IntOp::getInputMutable ( )
inline

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

◆ getIsSigned()

bool llzk::smt::BV2IntOp::getIsSigned ( )

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

◆ getIsSignedAttr()

::mlir::UnitAttr llzk::smt::BV2IntOp::getIsSignedAttr ( )
inline

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

◆ getIsSignedAttrName() [1/2]

::mlir::StringAttr llzk::smt::BV2IntOp::getIsSignedAttrName ( )
inline

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

◆ getIsSignedAttrName() [2/2]

::mlir::StringAttr llzk::smt::BV2IntOp::getIsSignedAttrName ( ::mlir::OperationName name)
inlinestatic

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

◆ getODSOperandIndexAndLength()

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

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

◆ getODSOperands()

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

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

◆ getODSResultIndexAndLength()

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

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

◆ getODSResults()

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

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

◆ getOperationName()

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

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

◆ getPropertiesAsAttr()

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

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

◆ getResult()

::mlir::TypedValue<::llzk::smt::IntType > llzk::smt::BV2IntOp::getResult ( )
inline

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

◆ inferReturnTypes()

llvm::LogicalResult llzk::smt::BV2IntOp::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 1591 of file SMT.cpp.inc.

◆ parse()

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

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

◆ populateInherentAttrs()

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

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

◆ print()

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

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

◆ readProperties()

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

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

◆ removeIsSignedAttr()

::mlir::Attribute llzk::smt::BV2IntOp::removeIsSignedAttr ( )
inline

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

◆ setInherentAttr()

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

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

◆ setIsSigned()

void llzk::smt::BV2IntOp::setIsSigned ( bool attrValue)

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

◆ setIsSignedAttr()

void llzk::smt::BV2IntOp::setIsSignedAttr ( ::mlir::UnitAttr attr)
inline

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

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

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

◆ verifyInvariantsImpl()

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

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

◆ writeProperties()

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

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


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