[llvm] [NVPTX] extend type support for nvvm.{min, max, mulhi, sad} (PR #78385)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 19:09:31 PST 2024


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 9745c13ca82538d30a04db7da40d3c4cd9f7f13c 301acfc9f02aa43176a3500f15bc7da54113b094 -- llvm/lib/IR/AutoUpgrade.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/IR/AutoUpgrade.cpp b/llvm/lib/IR/AutoUpgrade.cpp
index 69ea591a8a..f199fef9eb 100644
--- a/llvm/lib/IR/AutoUpgrade.cpp
+++ b/llvm/lib/IR/AutoUpgrade.cpp
@@ -4133,8 +4133,9 @@ void llvm::UpgradeIntrinsicCall(CallBase *CI, Function *NewFn) {
       Value *Val = CI->getArgOperand(1);
       Rep = Builder.CreateAtomicRMW(AtomicRMWInst::FAdd, Ptr, Val, MaybeAlign(),
                                     AtomicOrdering::SequentiallyConsistent);
-    } else if (IsNVVM && (Name == "max.s" || Name == "max.i" || Name == "max.ll" ||
-                          Name == "max.us" || Name == "max.ui" || Name == "max.ull")) {
+    } else if (IsNVVM &&
+               (Name == "max.s" || Name == "max.i" || Name == "max.ll" ||
+                Name == "max.us" || Name == "max.ui" || Name == "max.ull")) {
       Value *Arg0 = CI->getArgOperand(0);
       Value *Arg1 = CI->getArgOperand(1);
       Value *Cmp = Name.starts_with("max.u")

``````````

</details>


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


More information about the llvm-commits mailing list