[Mlir-commits] [mlir] [mlir][LLVM] Add nsw and nuw flags (PR #74508)

Tom Eccles llvmlistbot at llvm.org
Wed Dec 6 04:49:17 PST 2023


================
@@ -0,0 +1,14 @@
+// RUN: mlir-translate -mlir-to-llvmir %s | FileCheck %s
+
+// CHECK-LABEL: define void @intflags_func
+llvm.func @intflags_func(%arg0: i64, %arg1: i64) {
+  // CHECK: %{{.*}} = add nsw i64 %{{.*}}, %{{.*}}
+  %0 = llvm.add %arg0, %arg1 flags <nsw> : i64
----------------
tblah wrote:

I swapped to "overflow", but dropping the space wasn't trivial. Would you like me to pursue it?

https://github.com/llvm/llvm-project/pull/74508


More information about the Mlir-commits mailing list