LLZK 0.1.0
Veridise's ZK Language IR
|
#include <AbstractLatticeValue.h>
Public Member Functions | |
AbstractLatticeValue (ScalarTy s) | |
AbstractLatticeValue () | |
AbstractLatticeValue (const mlir::ArrayRef< int64_t > shape) | |
AbstractLatticeValue (const AbstractLatticeValue &rhs) | |
AbstractLatticeValue & | operator= (const AbstractLatticeValue &rhs) |
bool | isScalar () const |
bool | isSingleValue () const |
bool | isArray () const |
const ScalarTy & | getScalarValue () const |
ScalarTy & | getScalarValue () |
const ArrayTy & | getArrayValue () const |
ArrayTy & | getArrayValue () |
const Derived & | getElemFlatIdx (unsigned i) const |
Directly index into the flattened array using a single index. | |
Derived & | getElemFlatIdx (unsigned 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.
|
inlineexplicit |
Definition at line 65 of file AbstractLatticeValue.h.
|
inline |
Definition at line 66 of file AbstractLatticeValue.h.
|
inlineexplicit |
Definition at line 67 of file AbstractLatticeValue.h.
|
inline |
Definition at line 70 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 216 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 241 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 154 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 210 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 205 of file AbstractLatticeValue.h.
|
inline |
Definition at line 129 of file AbstractLatticeValue.h.
|
inline |
Definition at line 109 of file AbstractLatticeValue.h.
|
inline |
Definition at line 104 of file AbstractLatticeValue.h.
|
inline |
Definition at line 122 of file AbstractLatticeValue.h.
|
inline |
Directly index into the flattened array using a single index.
Definition at line 115 of file AbstractLatticeValue.h.
|
inline |
Definition at line 131 of file AbstractLatticeValue.h.
|
inline |
Definition at line 99 of file AbstractLatticeValue.h.
|
inline |
Definition at line 94 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 203 of file AbstractLatticeValue.h.
|
inline |
Definition at line 92 of file AbstractLatticeValue.h.
|
inline |
Definition at line 90 of file AbstractLatticeValue.h.
|
inline |
Definition at line 91 of file AbstractLatticeValue.h.
|
inline |
Definition at line 73 of file AbstractLatticeValue.h.
|
inline |
Definition at line 188 of file AbstractLatticeValue.h.
|
inline |
Definition at line 133 of file AbstractLatticeValue.h.
|
inline |
Sets this value to be equal to rhs
.
mlir::ChangeResult
indicating if an update was performed or not. Definition at line 169 of file AbstractLatticeValue.h.
|
inline |
Union this value with that of rhs.
Definition at line 178 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given array.
Definition at line 230 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given scalar.
Definition at line 219 of file AbstractLatticeValue.h.