[llvm] [AMDGPU][NewPM] Port SIPostRABundler to NPM (PR #123717)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 01:31:20 PST 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 0f9e913466982b92776d6ff748df48af28631517 f874c2ba06191883e2ee5c9a21264d054a665797 --extensions h,cpp -- llvm/lib/Target/AMDGPU/SIPostRABundler.h llvm/lib/Target/AMDGPU/AMDGPU.h llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPU.h b/llvm/lib/Target/AMDGPU/AMDGPU.h
index 846b7c9839..0c5178ec23 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPU.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPU.h
@@ -428,7 +428,7 @@ extern char &SIInsertWaitcntsID;
void initializeSIFormMemoryClausesPass(PassRegistry&);
extern char &SIFormMemoryClausesID;
-void initializeSIPostRABundlerLegacyPass(PassRegistry&);
+void initializeSIPostRABundlerLegacyPass(PassRegistry &);
extern char &SIPostRABundlerLegacyID;
void initializeGCNCreateVOPDPass(PassRegistry &);
diff --git a/llvm/lib/Target/AMDGPU/SIPostRABundler.cpp b/llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
index cbd8f3ad5c..87ff4b4d36 100644
--- a/llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
+++ b/llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
@@ -47,7 +47,8 @@ public:
class SIPostRABundler {
public:
- bool run(MachineFunction &MF);
+ bool run(MachineFunction &MF);
+
private:
const SIRegisterInfo *TRI;
@@ -67,7 +68,8 @@ constexpr uint64_t MemFlags = SIInstrFlags::MTBUF | SIInstrFlags::MUBUF |
} // End anonymous namespace.
-INITIALIZE_PASS(SIPostRABundlerLegacy, DEBUG_TYPE, "SI post-RA bundler", false, false)
+INITIALIZE_PASS(SIPostRABundlerLegacy, DEBUG_TYPE, "SI post-RA bundler", false,
+ false)
char SIPostRABundlerLegacy::ID = 0;
@@ -132,7 +134,8 @@ bool SIPostRABundlerLegacy::runOnMachineFunction(MachineFunction &MF) {
return SIPostRABundler().run(MF);
}
-PreservedAnalyses SIPostRABundlerPass::run(MachineFunction &MF, MachineFunctionAnalysisManager &) {
+PreservedAnalyses SIPostRABundlerPass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &) {
SIPostRABundler().run(MF);
return PreservedAnalyses::all();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/123717
More information about the llvm-commits
mailing list