[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:26:07 PDT 2025
================
@@ -66,4 +66,15 @@ def AtomicOrdering : I64EnumAttr<
let cppNamespace = "::mlir::ptr";
}
+//===----------------------------------------------------------------------===//
+// Ptr add flags enum attr.
+//===----------------------------------------------------------------------===//
+
+def Ptr_PtrAddFlags : I32EnumAttr<"PtrAddFlags", "Pointer add flags", [
+ I32EnumAttrCase<"none", 0>, I32EnumAttrCase<"nusw", 1>,
+ I32EnumAttrCase<"nuw", 2>, I32EnumAttrCase<"inbounds", 3>
+ ]> {
+ let cppNamespace = "::mlir::ptr";
+}
----------------
joker-eph wrote:
Can we use EnumProp instead of an attribute?
https://github.com/llvm/llvm-project/pull/136434
More information about the Mlir-commits
mailing list