[llvm] [AMDGPU] Add AMDGPU-specific module splitting (PR #89245)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 00:55:13 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 5ca368501ae81ca364f66ee6053aa4f8104fdbdd dc053934ea04095a43280aa237e384a4a7c245ef -- llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp llvm/lib/Target/AMDGPU/AMDGPUSplitModule.h llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
index bc8d726cfb..0c3000ac25 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
@@ -669,7 +669,8 @@ void llvm::splitAMDGPUModule(
     for (const auto &KWD : WorkList) {
       SML << "[Kernel] " << getName(*KWD.Fn) << " (totalCost:" << KWD.TotalCost
           << " indirect:" << KWD.HasIndirectCall
-          << " hasNonDuplicatableDep:" << KWD.HasNonDuplicatableDependecy << ")\n";
+          << " hasNonDuplicatableDep:" << KWD.HasNonDuplicatableDependecy
+          << ")\n";
       for (const auto *Dep : KWD.Dependencies)
         SML << "  [Dep] " << getName(*Dep) << '\n';
     }

``````````

</details>


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


More information about the llvm-commits mailing list