|
LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
|
Attribute storage adapter providing numeric hashing for DynamicAPInt. More...
#include <AttributeHelper.h>
Public Member Functions | |
| DynamicAPIntValue (const llvm::DynamicAPInt &integer) | |
| operator const llvm::DynamicAPInt & () const | |
| Borrow the owned integer. | |
Friends | |
| bool | operator== (const DynamicAPIntValue &a, const DynamicAPIntValue &b) |
| llvm::hash_code | hash_value (const DynamicAPIntValue &key) |
Attribute storage adapter providing numeric hashing for DynamicAPInt.
This is meant as a thin adaptor for storing DynamicAPInt in attribute storage generated by tablegen. It should not generally be used outside of attribute storage contexts. Public accessors on the attribute expose the underlying value directly rather than exposing this wrapper.
Definition at line 43 of file AttributeHelper.h.
|
inline |
Definition at line 45 of file AttributeHelper.h.
|
inline |
Borrow the owned integer.
The returned reference must not outlive this wrapper. For the expected use case of wrappers held in attribute storage, its lifetime is that of the owning MLIRContext so this borrow is safe. References obtained from temporary instances of this wrapper must not be held beyond the full expression that creates the wrapper.
Definition at line 53 of file AttributeHelper.h.
|
friend |
Definition at line 59 of file AttributeHelper.h.
|
friend |
Definition at line 55 of file AttributeHelper.h.