[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port MachineSink to NPM (PR #115434)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 13 23:29:20 PST 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 68bcb36981bce9b99ee70c3bd41443c6d44cd7ae 4a8feec5b0ac4967e28a871211d660468f3a0a93 --extensions cpp,h -- llvm/include/llvm/CodeGen/MachineSink.h llvm/include/llvm/Analysis/AliasAnalysis.h llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h llvm/include/llvm/CodeGen/MachineBranchProbabilityInfo.h llvm/include/llvm/CodeGen/MachineCycleAnalysis.h llvm/include/llvm/CodeGen/MachineDominators.h llvm/include/llvm/CodeGen/MachinePassManager.h llvm/include/llvm/CodeGen/MachinePostDominators.h llvm/include/llvm/CodeGen/Passes.h llvm/include/llvm/IR/Dominators.h llvm/include/llvm/InitializePasses.h llvm/include/llvm/Passes/CodeGenPassBuilder.h llvm/include/llvm/Target/CGPassBuilderOption.h llvm/lib/CodeGen/CodeGen.cpp llvm/lib/CodeGen/MachineSink.cpp llvm/lib/CodeGen/TargetPassConfig.cpp llvm/lib/Passes/PassBuilder.cpp llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/include/llvm/CodeGen/MachineSink.h b/llvm/include/llvm/CodeGen/MachineSink.h
index 1eee9d7f7e..71bd7229b7 100644
--- a/llvm/include/llvm/CodeGen/MachineSink.h
+++ b/llvm/include/llvm/CodeGen/MachineSink.h
@@ -22,7 +22,8 @@ public:
 
   PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &);
 
-  void printPipeline(raw_ostream &OS, function_ref<StringRef(StringRef)> MapClassName2PassName);
+  void printPipeline(raw_ostream &OS,
+                     function_ref<StringRef(StringRef)> MapClassName2PassName);
 };
 
 } // namespace llvm

``````````

</details>


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


More information about the llvm-branch-commits mailing list