|
LogicalResult | stageWithSortImpl (sparse_tensor::StageWithSortSparseOp op, PatternRewriter &rewriter, Value &tmpBufs) |
|
template<typename T , typename U > |
constexpr bool | safelyEQ (T t, U u) noexcept |
|
template<typename T , typename U > |
constexpr bool | safelyNE (T t, U u) noexcept |
|
template<typename T , typename U > |
constexpr bool | safelyLT (T t, U u) noexcept |
|
template<typename T , typename U > |
constexpr bool | safelyGT (T t, U u) noexcept |
|
template<typename T , typename U > |
constexpr bool | safelyLE (T t, U u) noexcept |
|
template<typename T , typename U > |
constexpr bool | safelyGE (T t, U u) noexcept |
|
template<typename To , typename From > |
To | checkOverflowCast (From x) |
| A version of static_cast<To> which checks for overflow/underflow. More...
|
|
uint64_t | checkedMul (uint64_t lhs, uint64_t rhs) |
| A version of operator* on uint64_t which guards against overflows (when assertions are enabled). More...
|
|
template<typename V , bool IsPattern> |
std::enable_if_t<!is_complex< V >::value, V > | readValue (char **linePtr) |
| Returns an element-value of non-complex type. More...
|
|
template<typename V , bool IsPattern> |
std::enable_if_t< is_complex< V >::value, V > | readValue (char **linePtr) |
| Returns an element-value of complex type. More...
|
|
template<typename V > |
V | readValue (char **linePtr, bool isPattern) |
| Returns an element-value. More...
|
|
template<typename To , typename From >
To mlir::sparse_tensor::detail::checkOverflowCast |
( |
From |
x | ) |
|
|
inline |
A version of static_cast<To>
which checks for overflow/underflow.
The implementation avoids performing runtime assertions whenever the types alone are sufficient to statically prove that overflow cannot happen.
Definition at line 106 of file ArithmeticUtils.h.
References max(), min(), safelyGE(), and safelyLE().
template<typename V , bool IsPattern>
std::enable_if_t<!is_complex<V>::value, V> mlir::sparse_tensor::detail::readValue |
( |
char ** |
linePtr | ) |
|
|
inline |
Returns an element-value of non-complex type.
If IsPattern
is true, then returns an arbitrary value. If IsPattern
is false, then reads the value from the current line buffer beginning at linePtr
.
Definition at line 43 of file File.h.
Referenced by mlir::linalg::vectorizeCopy().
template<typename V , bool IsPattern>
std::enable_if_t<is_complex<V>::value, V> mlir::sparse_tensor::detail::readValue |
( |
char ** |
linePtr | ) |
|
|
inline |
Returns an element-value of complex type.
If IsPattern
is true, then returns an arbitrary value. If IsPattern
is false, then reads the value from the current line buffer beginning at linePtr
.
Definition at line 56 of file File.h.