[Mlir-commits] [mlir] Add 'exact' flag to arith.shrui/shrsi/divsi/divui operations (PR #165923)

Jeremy Furtek llvmlistbot at llvm.org
Wed Nov 5 14:59:52 PST 2025


================
@@ -139,4 +139,38 @@ def ArithRoundingModeInterface : OpInterface<"ArithRoundingModeInterface"> {
   ];
 }
 
+def ArithExactFlagInterface : OpInterface<"ArithExactFlagInterface"> {
+  let description = [{
+    Access to op exact flag.
+  }];
----------------
jfurtek wrote:

> When is this interface useful?

It isn't - thanks for catching this. I expected the `exact` flag implementation to mirror that of the overflow flags (which has a similar interface to the one I created here), but no interface is necessary for the exact flag at the moment. (The SPIR-V lowering uses the `arith` overflow flags interface, but there is currently no use for an exact flag interface.)

I removed `ArithExactFlagInterface`.

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


More information about the Mlir-commits mailing list