[Mlir-commits] [mlir] [mlir][ptr] Add the `ptradd` and `type_offset` ops, and `int_space` attr (PR #136434)
Mehdi Amini
llvmlistbot at llvm.org
Sun Apr 20 05:01:11 PDT 2025
================
@@ -39,6 +41,37 @@ void PtrDialect::initialize() {
>();
}
+//===----------------------------------------------------------------------===//
+// PtrAddOp
+//===----------------------------------------------------------------------===//
+
+/// Fold the op to the base ptr when the offset is 0.
----------------
joker-eph wrote:
```suggestion
/// Fold: ptradd ptr + 0 -> ptr
```
https://github.com/llvm/llvm-project/pull/136434
More information about the Mlir-commits
mailing list