MLIR
21.0.0git
|
ArithBuilder specialized specifically for tensor/memref indexing calculations. More...
#include "mlir/Dialect/Arith/Utils/Utils.h"
Public Member Functions | |
ArithIndexingBuilder (OpBuilder &b, Location loc) | |
![]() | |
ArithBuilder (OpBuilder &b, Location loc, arith::IntegerOverflowFlags ovf=arith::IntegerOverflowFlags::none) | |
Value | _and (Value lhs, Value rhs) |
Value | add (Value lhs, Value rhs) |
Value | sub (Value lhs, Value rhs) |
Value | mul (Value lhs, Value rhs) |
Value | select (Value cmp, Value lhs, Value rhs) |
Value | sgt (Value lhs, Value rhs) |
Value | slt (Value lhs, Value rhs) |
ArithBuilder specialized specifically for tensor/memref indexing calculations.
Those calculations generally should never signed overflow and always use signed integers, so we can set oveflow flags accordingly.