[llvm] [AMDGPU][GISel] Use datalayout alignment for buffer-load legalization (PR #95578)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 14 12:02:06 PDT 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 eca988aa4420f33810f9830c80ff9f149b7928ff 4f4f5c4a8f2494a21a6c87f944185184efcab249 -- llvm/include/llvm/CodeGen/GlobalISel/Utils.h llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp llvm/lib/CodeGen/GlobalISel/Utils.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/Utils.cpp b/llvm/lib/CodeGen/GlobalISel/Utils.cpp
index 381aa94712..328a146580 100644
--- a/llvm/lib/CodeGen/GlobalISel/Utils.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/Utils.cpp
@@ -1910,6 +1910,6 @@ bool llvm::isGuaranteedNotToBeUndef(Register Reg,
 Type *llvm::getTypeForLLT(LLT Ty, LLVMContext &C) {
   if (Ty.isVector())
     return VectorType::get(IntegerType::get(C, Ty.getScalarSizeInBits()),
-                                Ty.getElementCount());
+                           Ty.getElementCount());
   return IntegerType::get(C, Ty.getSizeInBits());
 }

``````````

</details>


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


More information about the llvm-commits mailing list