[llvm] [AMDGPU] Add inreg support for SGPR arguments (PR #67182)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 22 12:20:43 PDT 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 ab82c3d0a8406edecfd26cb30678aab6d3eff1b7 dab6d4ca31bc4ee1b220d951e46cb1557f47b36f -- llvm/lib/Target/AMDGPU/SIISelLowering.cpp llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index 5dc9c6427..354dac92f 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -2566,7 +2566,9 @@ SDValue SITargetLowering::LowerFormalArguments(
   } else {
     CCAssignFn *AssignFn = CCAssignFnForCall(CallConv, isVarArg);
     if (!IsGraphics && !IsKernel && !Subtarget->enableFlatScratch()) {
-      CCInfo.AllocateRegBlock(ArrayRef<MCPhysReg>{AMDGPU::SGPR0, AMDGPU::SGPR1, AMDGPU::SGPR2, AMDGPU::SGPR3}, 4);
+      CCInfo.AllocateRegBlock(ArrayRef<MCPhysReg>{AMDGPU::SGPR0, AMDGPU::SGPR1,
+                                                  AMDGPU::SGPR2, AMDGPU::SGPR3},
+                              4);
     }
     CCInfo.AnalyzeFormalArguments(Splits, AssignFn);
   }

``````````

</details>


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


More information about the llvm-commits mailing list