MLIR
21.0.0git
|
Idiomatic saturated operations on values like offsets, sizes, and strides. More...
#include "mlir/Dialect/Utils/StaticValueUtils.h"
Public Member Functions | |
int64_t | asInteger () |
FailureOr< SaturatedInteger > | desaturate (SaturatedInteger other) |
bool | operator== (SaturatedInteger other) |
bool | operator!= (SaturatedInteger other) |
SaturatedInteger | operator+ (SaturatedInteger other) |
SaturatedInteger | operator* (SaturatedInteger other) |
Static Public Member Functions | |
static SaturatedInteger | wrap (int64_t v) |
Public Attributes | |
bool | saturated = true |
int64_t | v = 0 |
Idiomatic saturated operations on values like offsets, sizes, and strides.
Definition at line 207 of file StaticValueUtils.h.
|
inline |
Definition at line 212 of file StaticValueUtils.h.
|
inline |
Definition at line 213 of file StaticValueUtils.h.
|
inline |
Definition at line 224 of file StaticValueUtils.h.
|
inline |
Definition at line 230 of file StaticValueUtils.h.
|
inline |
Definition at line 225 of file StaticValueUtils.h.
|
inline |
Definition at line 220 of file StaticValueUtils.h.
|
inlinestatic |
Definition at line 208 of file StaticValueUtils.h.
References v.
Referenced by computeCollapsedLayoutMap(), and computeExpandedLayoutMap().
bool mlir::SaturatedInteger::saturated = true |
Definition at line 241 of file StaticValueUtils.h.
Referenced by asInteger(), desaturate(), operator*(), operator+(), and operator==().
int64_t mlir::SaturatedInteger::v = 0 |
Definition at line 242 of file StaticValueUtils.h.
Referenced by asInteger(), desaturate(), operator*(), operator+(), operator==(), and wrap().