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

Public Types

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

Public Member Functions

static ::llvm::ArrayRef<::llvm::StringRef > getAttributeNames ()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength (unsigned index)
::mlir::Operation::operand_range getODSOperands (unsigned index)
::mlir::TypedValue<::llzk::array::ArrayType > getArrRef ()
::mlir::TypedValue<::mlir::IndexType > getDim ()
::mlir::OpOperand & getArrRefMutable ()
::mlir::OpOperand & getDimMutable ()
std::pair< unsigned, unsigned > getODSResultIndexAndLength (unsigned index)
::mlir::Operation::result_range getODSResults (unsigned index)
::mlir::TypedValue<::mlir::IndexType > getLength ()
::llvm::LogicalResult verifyInvariantsImpl ()
::llvm::LogicalResult verifyInvariants ()
::llvm::LogicalResult verifySymbolUses (::mlir::SymbolTableCollection &symbolTable)
void print (::mlir::OpAsmPrinter &_odsPrinter)
void getEffects (::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
inline ::llzk::array::ArrayType getArrRefType ()
 Gets the type of the referenced base array.

Static Public Member Functions

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)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Type length, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Type length, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Type length, ::mlir::Value arr_ref, ::mlir::Value dim)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::Value arr_ref, ::mlir::Value dim)
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::Value arr_ref, ::mlir::Value dim)
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::Value arr_ref, ::mlir::Value dim)
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::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 ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute > attributes={})
static void build (::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static void build (::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static ArrayLengthOp create (::mlir::OpBuilder &builder, ::mlir::Location location, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
static ArrayLengthOp create (::mlir::ImplicitLocOpBuilder &builder, ::mlir::ValueRange operands, const Properties &properties, ::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes={})
::llvm::LogicalResult inferReturnTypes (::mlir::MLIRContext *context, ::std::optional<::mlir::Location > location, ::mlir::ValueRange operands, ::mlir::DictionaryAttr attributes, ::mlir::PropertyRef properties, ::mlir::RegionRange regions, ::llvm::SmallVectorImpl<::mlir::Type > &inferredReturnTypes)
::mlir::ParseResult parse (::mlir::OpAsmParser &parser, ::mlir::OperationState &result)

Static Public Attributes

static constexpr int odsIndex_arr_ref = 0
static constexpr int odsIndex_dim = 1

Detailed Description

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

Member Typedef Documentation

◆ Adaptor

◆ FoldAdaptor

using llzk::array::ArrayLengthOp::FoldAdaptor = GenericAdaptor<::llvm::ArrayRef<::mlir::Attribute>>

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

◆ GenericAdaptor

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

◆ Properties

Member Function Documentation

◆ build() [1/7]

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

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

◆ build() [2/7]

void llzk::array::ArrayLengthOp::build ( ::mlir::OpBuilder & ,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ build() [3/7]

void llzk::array::ArrayLengthOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Type length,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ build() [4/7]

void llzk::array::ArrayLengthOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::TypeRange resultTypes,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ build() [5/7]

void llzk::array::ArrayLengthOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ build() [6/7]

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

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

◆ build() [7/7]

void llzk::array::ArrayLengthOp::build ( ::mlir::OpBuilder & odsBuilder,
::mlir::OperationState & odsState,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ computePropertiesHash()

llvm::hash_code llzk::array::ArrayLengthOp::computePropertiesHash ( const Properties & prop)
static

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

◆ create() [1/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Type length,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [2/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [3/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [4/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [5/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [6/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [7/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::ImplicitLocOpBuilder & builder,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [8/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Type length,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [9/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [10/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [11/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::TypeRange resultTypes,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ create() [12/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::Value arr_ref,
::mlir::Value dim )
static

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

◆ create() [13/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::ValueRange operands,
::llvm::ArrayRef<::mlir::NamedAttribute > attributes = {} )
static

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

◆ create() [14/14]

ArrayLengthOp llzk::array::ArrayLengthOp::create ( ::mlir::OpBuilder & builder,
::mlir::Location location,
::mlir::ValueRange operands,
const Properties & properties,
::llvm::ArrayRef<::mlir::NamedAttribute > discardableAttributes = {} )
static

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

◆ getArrRef()

::mlir::TypedValue<::llzk::array::ArrayType > llzk::array::ArrayLengthOp::getArrRef ( )
inline

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

◆ getArrRefMutable()

::mlir::OpOperand & llzk::array::ArrayLengthOp::getArrRefMutable ( )
inline

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

◆ getArrRefType()

inline ::llzk::array::ArrayType llzk::array::ArrayLengthOp::getArrRefType ( )
inline

Gets the type of the referenced base array.

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

◆ getAttributeNames()

::llvm::ArrayRef<::llvm::StringRef > llzk::array::ArrayLengthOp::getAttributeNames ( )
inline

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

◆ getDim()

::mlir::TypedValue<::mlir::IndexType > llzk::array::ArrayLengthOp::getDim ( )
inline

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

◆ getDimMutable()

::mlir::OpOperand & llzk::array::ArrayLengthOp::getDimMutable ( )
inline

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

◆ getEffects()

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

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

◆ getInherentAttr()

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

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

◆ getLength()

::mlir::TypedValue<::mlir::IndexType > llzk::array::ArrayLengthOp::getLength ( )
inline

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

◆ getODSOperandIndexAndLength()

std::pair< unsigned, unsigned > llzk::array::ArrayLengthOp::getODSOperandIndexAndLength ( unsigned index)
inline

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

◆ getODSOperands()

::mlir::Operation::operand_range llzk::array::ArrayLengthOp::getODSOperands ( unsigned index)
inline

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

◆ getODSResultIndexAndLength()

std::pair< unsigned, unsigned > llzk::array::ArrayLengthOp::getODSResultIndexAndLength ( unsigned index)
inline

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

◆ getODSResults()

::mlir::Operation::result_range llzk::array::ArrayLengthOp::getODSResults ( unsigned index)
inline

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

◆ getOperationName()

constexpr ::llvm::StringLiteral llzk::array::ArrayLengthOp::getOperationName ( )
inlinestatic

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

◆ getPropertiesAsAttr()

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

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

◆ inferReturnTypes()

llvm::LogicalResult llzk::array::ArrayLengthOp::inferReturnTypes ( ::mlir::MLIRContext * context,
::std::optional<::mlir::Location > location,
::mlir::ValueRange operands,
::mlir::DictionaryAttr attributes,
::mlir::PropertyRef properties,
::mlir::RegionRange regions,
::llvm::SmallVectorImpl<::mlir::Type > & inferredReturnTypes )
static

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

◆ parse()

mlir::ParseResult llzk::array::ArrayLengthOp::parse ( ::mlir::OpAsmParser & parser,
::mlir::OperationState & result )
static

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

◆ populateInherentAttrs()

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

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

◆ print()

void llzk::array::ArrayLengthOp::print ( ::mlir::OpAsmPrinter & _odsPrinter)

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

◆ setInherentAttr()

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

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

◆ setPropertiesFromAttr()

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

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

◆ verifyInherentAttrs()

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

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

◆ verifyInvariants()

llvm::LogicalResult llzk::array::ArrayLengthOp::verifyInvariants ( )

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

◆ verifyInvariantsImpl()

llvm::LogicalResult llzk::array::ArrayLengthOp::verifyInvariantsImpl ( )

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

◆ verifySymbolUses()

LogicalResult llzk::array::ArrayLengthOp::verifySymbolUses ( ::mlir::SymbolTableCollection & symbolTable)

Definition at line 530 of file Ops.cpp.

Member Data Documentation

◆ odsIndex_arr_ref

int llzk::array::ArrayLengthOp::odsIndex_arr_ref = 0
staticconstexpr

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

◆ odsIndex_dim

int llzk::array::ArrayLengthOp::odsIndex_dim = 1
staticconstexpr

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


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