[llvm] [NVPTX] Fixup EXT_LOAD lowering for i128 values (PR #138049)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 16:16:43 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 -- llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
``````````

</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 57f35a827..5c41ac261 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
@@ -1460,8 +1460,8 @@ bool NVPTXDAGToDAGISel::tryStore(SDNode *N) {
   // Create the machine instruction DAG
   SDValue Value = PlainStore ? PlainStore->getValue() : AtomicStore->getVal();
 
-  assert(isPowerOf2_32(ToTypeWidth) && ToTypeWidth >= 8 &&
-         ToTypeWidth <= 128 && "Invalid width for store");
+  assert(isPowerOf2_32(ToTypeWidth) && ToTypeWidth >= 8 && ToTypeWidth <= 128 &&
+         "Invalid width for store");
 
   SDValue Offset, Base;
   SelectADDR(ST->getBasePtr(), Base, Offset);
@@ -1547,8 +1547,8 @@ bool NVPTXDAGToDAGISel::tryStoreVector(SDNode *N) {
     ToType = NVPTX::PTXLdStInstCode::Untyped;
   }
 
-  assert(isPowerOf2_32(ToTypeWidth) && ToTypeWidth >= 8 &&
-         ToTypeWidth <= 128 && TotalWidth <= 128 && "Invalid width for store");
+  assert(isPowerOf2_32(ToTypeWidth) && ToTypeWidth >= 8 && ToTypeWidth <= 128 &&
+         TotalWidth <= 128 && "Invalid width for store");
 
   SDValue Offset, Base;
   SelectADDR(N2, Base, Offset);

``````````

</details>


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


More information about the llvm-commits mailing list