[llvm] [AMDGPU][NewPM] Port AMDGPURemoveIncompatibleFunctions to NPM (PR #122261)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 21:53:06 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 a261eee61200cb6aa3eac0e7dc03940a6afd7d54 ee01e71c9ef14335deec8dbd31d0a5ade748fee8 --extensions cpp,h -- llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.h llvm/lib/Target/AMDGPU/AMDGPU.h llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.h b/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.h
index 84e5febd42..e4c858588e 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.h
@@ -13,13 +13,13 @@
#include "llvm/Target/TargetMachine.h"
namespace llvm {
-class AMDGPURemoveIncompatibleFunctionsPass : public PassInfoMixin<AMDGPURemoveIncompatibleFunctionsPass> {
- const TargetMachine* TM;
-public:
- AMDGPURemoveIncompatibleFunctionsPass(const TargetMachine& TM) : TM(&TM) {}
- PreservedAnalyses run(Module &M,
- ModuleAnalysisManager &MAM);
+class AMDGPURemoveIncompatibleFunctionsPass
+ : public PassInfoMixin<AMDGPURemoveIncompatibleFunctionsPass> {
+ const TargetMachine *TM;
+public:
+ AMDGPURemoveIncompatibleFunctionsPass(const TargetMachine &TM) : TM(&TM) {}
+ PreservedAnalyses run(Module &M, ModuleAnalysisManager &MAM);
};
} // namespace llvm
``````````
</details>
https://github.com/llvm/llvm-project/pull/122261
More information about the llvm-commits
mailing list