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

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 6 04:49:25 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff df2485b215af46ebd5fd3a94b929ebc951c1d12e 1684ebfa03ef0ff3ab9507d342783ac69a84ac32 -- mlir/include/mlir/Target/LLVMIR/ModuleImport.h mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp mlir/lib/Target/LLVMIR/ModuleImport.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/lib/Target/LLVMIR/ModuleImport.cpp b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
index ec4ab9f458..d43fe1b562 100644
--- a/mlir/lib/Target/LLVMIR/ModuleImport.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
@@ -628,8 +628,7 @@ void ModuleImport::setIntegerFlagsAttr(llvm::Instruction *inst,
   value =
       bitEnumSet(value, IntegerOverflowFlags::nuw, inst->hasNoUnsignedWrap());
 
-  auto attr =
-      IntegerOverflowFlagsAttr::get(op->getContext(), value);
+  auto attr = IntegerOverflowFlagsAttr::get(op->getContext(), value);
   iface->setAttr(iface.getIntegerOverflowAttrName(), attr);
 }
 

``````````

</details>


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


More information about the Mlir-commits mailing list