|
LLZK 2.1.1
An open-source IR for Zero Knowledge (ZK) circuits
|
#include <AbstractLatticeValue.h>
Public Member Functions | |
| bool | isScalar () const |
| bool | isSingleValue () const |
| bool | isArray () const |
| bool | isDynamicArray () const |
| const ScalarTy & | getScalarValue () const |
| ScalarTy & | getScalarValue () |
| const ArrayTy & | getArrayValue () const |
| ArrayTy & | getArrayValue () |
| const Derived & | getElemFlatIdx (size_t i) const |
| Directly index into the flattened array using a single index. | |
| Derived & | getElemFlatIdx (size_t i) |
| size_t | getArraySize () const |
| size_t | getNumArrayDims () const |
| void | print (mlir::raw_ostream &os) const |
| ScalarTy | foldToScalar () const |
| If this is an array value, combine all elements into a single scalar value and return it. | |
| mlir::ChangeResult | setValue (const AbstractLatticeValue &rhs) |
| Sets this value to be equal to rhs. | |
| mlir::ChangeResult | update (const Derived &rhs) |
| Union this value with that of rhs. | |
| bool | operator== (const AbstractLatticeValue &rhs) const |
Protected Member Functions | |
| std::variant< ScalarTy, ArrayTy > & | getValue () |
| const std::vector< int64_t > & | getArrayShape () const |
| int64_t | getArrayDim (unsigned i) const |
| void | copyArrayShape (const AbstractLatticeValue &rhs) |
| mlir::ChangeResult | updateScalar (const ScalarTy &rhs) |
| Union this value with the given scalar. | |
| mlir::ChangeResult | updateArray (const ArrayTy &rhs) |
| Union this value with the given array. | |
| mlir::ChangeResult | foldAndUpdate (const Derived &rhs) |
| Folds the current value into a scalar and folds rhs to a scalar and updates the current value to the union of the two scalars. | |
Definition at line 40 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 233 of file AbstractLatticeValue.h.
|
inlineprotected |
Folds the current value into a scalar and folds rhs to a scalar and updates the current value to the union of the two scalars.
Definition at line 261 of file AbstractLatticeValue.h.
|
inline |
If this is an array value, combine all elements into a single scalar value and return it.
If this is already a scalar value, return the scalar value.
Definition at line 171 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 227 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 222 of file AbstractLatticeValue.h.
|
inline |
Definition at line 146 of file AbstractLatticeValue.h.
|
inline |
Definition at line 126 of file AbstractLatticeValue.h.
|
inline |
Definition at line 121 of file AbstractLatticeValue.h.
|
inline |
Definition at line 139 of file AbstractLatticeValue.h.
|
inline |
Directly index into the flattened array using a single index.
Definition at line 132 of file AbstractLatticeValue.h.
|
inline |
Definition at line 148 of file AbstractLatticeValue.h.
|
inline |
Definition at line 116 of file AbstractLatticeValue.h.
|
inline |
Definition at line 111 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 220 of file AbstractLatticeValue.h.
|
inline |
Definition at line 108 of file AbstractLatticeValue.h.
|
inline |
Definition at line 109 of file AbstractLatticeValue.h.
|
inline |
Definition at line 106 of file AbstractLatticeValue.h.
|
inline |
Definition at line 107 of file AbstractLatticeValue.h.
|
inline |
Definition at line 205 of file AbstractLatticeValue.h.
|
inline |
Definition at line 150 of file AbstractLatticeValue.h.
|
inline |
Sets this value to be equal to rhs.
Definition at line 186 of file AbstractLatticeValue.h.
|
inline |
Union this value with that of rhs.
Definition at line 195 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given array.
Definition at line 250 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given scalar.
Definition at line 239 of file AbstractLatticeValue.h.