[llvm] [AMDGPU] Support alloca in AS0 (PR #136584)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 23 13:50:45 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/AMDGPU/AMDGPUAttributor.cpp llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h llvm/lib/Target/AMDGPU/SIISelLowering.cpp llvm/lib/Target/AMDGPU/SIISelLowering.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index 0be5fd5d7..869229606 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -755,8 +755,7 @@ private:
       return cast<AllocaInst>(I).getAddressSpace() != AMDGPUAS::FLAT_ADDRESS;
     };
 
-    if (!A.checkForAllInstructions(AllocaNotInAS0, *this,
-                                   {Instruction::Alloca},
+    if (!A.checkForAllInstructions(AllocaNotInAS0, *this, {Instruction::Alloca},
                                    UsedAssumedInformation))
       return true;
 

``````````

</details>


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


More information about the llvm-commits mailing list