Add tensor.bitcast operator to bitcast between two tensors of compatible shape and same bit width. This can be use to reinterpret an unsigned integer as a signed integer or vice versa.
Details
Details
Diff Detail
Diff Detail
Event Timeline
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp | ||
---|---|---|
163 | LLVM is migrating to a different cast syntax: https://mlir.llvm.org/deprecation/ So this should be dyn_cast<TensorType>(a) | |
188 | Ditto on the cast issue. |
LLVM is migrating to a different cast syntax: https://mlir.llvm.org/deprecation/
So this should be dyn_cast<TensorType>(a)