[Mlir-commits] [mlir] [mlir][LLVM] Add nsw and nuw flags (PR #74508)
Ivan Butygin
llvmlistbot at llvm.org
Tue Dec 5 10:46:53 PST 2023
================
@@ -428,6 +428,29 @@ def DISubprogramFlags : I32BitEnumAttr<
let printBitEnumPrimaryGroups = 1;
}
+//===----------------------------------------------------------------------===//
+// IntegerArithFlags
+//===----------------------------------------------------------------------===//
+
+def IAFnone : I32BitEnumAttrCaseNone<"none">;
+def IAFnsw : I32BitEnumAttrCaseBit<"nsw", 0>;
+def IAFnuw : I32BitEnumAttrCaseBit<"nuw", 1>;
+
+def IntegerArithFlags : I32BitEnumAttr<
----------------
Hardcode84 wrote:
Do we expect any other flags besides `nsw`/`nuw` here in the future? If not I think it's better to have more specific name, like `IntegerOverflowFlags`.
https://github.com/llvm/llvm-project/pull/74508
More information about the Mlir-commits
mailing list