|
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 |
| bool | isDynamicArray () 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 70 of file AbstractLatticeValue.h.
|
inline |
Definition at line 72 of file AbstractLatticeValue.h.
|
inlineexplicit |
Definition at line 73 of file AbstractLatticeValue.h.
|
inline |
Definition at line 82 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 229 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 257 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 167 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 223 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 218 of file AbstractLatticeValue.h.
|
inline |
Definition at line 142 of file AbstractLatticeValue.h.
|
inline |
Definition at line 122 of file AbstractLatticeValue.h.
|
inline |
Definition at line 117 of file AbstractLatticeValue.h.
|
inline |
Definition at line 135 of file AbstractLatticeValue.h.
|
inline |
Directly index into the flattened array using a single index.
Definition at line 128 of file AbstractLatticeValue.h.
|
inline |
Definition at line 144 of file AbstractLatticeValue.h.
|
inline |
Definition at line 112 of file AbstractLatticeValue.h.
|
inline |
Definition at line 107 of file AbstractLatticeValue.h.
|
inlineprotected |
Definition at line 216 of file AbstractLatticeValue.h.
|
inline |
Definition at line 104 of file AbstractLatticeValue.h.
|
inline |
Definition at line 105 of file AbstractLatticeValue.h.
|
inline |
Definition at line 102 of file AbstractLatticeValue.h.
|
inline |
Definition at line 103 of file AbstractLatticeValue.h.
|
inline |
Definition at line 85 of file AbstractLatticeValue.h.
|
inline |
Definition at line 201 of file AbstractLatticeValue.h.
|
inline |
Definition at line 146 of file AbstractLatticeValue.h.
|
inline |
Sets this value to be equal to rhs.
Definition at line 182 of file AbstractLatticeValue.h.
|
inline |
Union this value with that of rhs.
Definition at line 191 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given array.
Definition at line 246 of file AbstractLatticeValue.h.
|
inlineprotected |
Union this value with the given scalar.
Definition at line 235 of file AbstractLatticeValue.h.