[Mlir-commits] [mlir] [mlir][LLVM] Add exact flag (PR #115327)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Nov 8 01:20:30 PST 2024


=?utf-8?q?Léon?= Frenot <leon.frenot at ens-lyon.fr>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/115327 at github.com>


================
@@ -683,6 +683,14 @@ void ModuleImport::setIntegerOverflowFlags(llvm::Instruction *inst,
   iface.setOverflowFlags(value);
 }
 
+void ModuleImport::setExactFlag(llvm::Instruction *inst, Operation *op) const {
+  auto iface = cast<ExactFlagInterface>(op);
+
+  bool value = inst->isExact();
+
+  iface.setIsExact(value);
----------------
lfrenot wrote:

Done!

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


More information about the Mlir-commits mailing list