[Mlir-commits] [mlir] [mlir][LLVM] Add nsw and nuw flags (PR #74508)
Tobias Gysi
llvmlistbot at llvm.org
Wed Dec 6 10:16:38 PST 2023
================
@@ -172,6 +172,11 @@ class ModuleImport {
/// attributes of LLVMFuncOp `funcOp`.
void processFunctionAttributes(llvm::Function *func, LLVMFuncOp funcOp);
+ /// Sets the integer overflow flags (nsw/nuw) attribute for the imported
+ /// operation `op` given the original instruction `inst`. Asserts if the
+ /// operation does not implement the integer overflow flag interface.
+ void setIntegerFlagsAttr(llvm::Instruction *inst, Operation *op) const;
----------------
gysit wrote:
```suggestion
void setIntegerOverflowFlagsAttr(llvm::Instruction *inst, Operation *op) const;
```
https://github.com/llvm/llvm-project/pull/74508
More information about the Mlir-commits
mailing list