[llvm] [NVPTX] miscellaneous minor cleanup (NFC) (PR #152329)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 09:04:03 PDT 2025
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 HEAD~1 HEAD --extensions cpp,h -- llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
index 75e8635ec..18aeda6a7 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
@@ -1758,7 +1758,6 @@ bool NVPTXDAGToDAGISel::tryBF16ArithToFMA(SDNode *N) {
return true;
}
-
SDValue NVPTXDAGToDAGISel::selectPossiblyImm(SDValue V) {
if (V.getOpcode() == ISD::BITCAST)
V = V.getOperand(0);
@@ -1780,12 +1779,12 @@ bool NVPTXDAGToDAGISel::SelectInlineAsmMemoryOperand(
switch (ConstraintID) {
default:
return true;
- case InlineAsm::ConstraintCode::m: { // memory
- const auto [Base, Offset] = selectADDR(Op, CurDAG);
- OutOps.push_back(Base);
- OutOps.push_back(Offset);
- return false;
- }
+ case InlineAsm::ConstraintCode::m: { // memory
+ const auto [Base, Offset] = selectADDR(Op, CurDAG);
+ OutOps.push_back(Base);
+ OutOps.push_back(Offset);
+ return false;
+ }
}
return true;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/152329
More information about the llvm-commits
mailing list