[llvm] [Hexagon] Add MachineUnroller pass (PR #177197)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 21 08:45:53 PST 2026


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 origin/main HEAD --extensions h,cpp -- llvm/include/llvm/CodeGen/MachineUnroller.h llvm/lib/CodeGen/MachineUnroller.cpp llvm/lib/CodeGen/MachineUnrollerPass.cpp llvm/lib/Target/Hexagon/HexagonMachineUnroller.cpp llvm/lib/Target/Hexagon/HexagonMachineUnroller.h llvm/include/llvm/CodeGen/Passes.h llvm/include/llvm/CodeGen/TargetPassConfig.h llvm/include/llvm/InitializePasses.h llvm/lib/CodeGen/CodeGen.cpp llvm/lib/Target/Hexagon/HexagonTargetMachine.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/llvm/lib/CodeGen/MachineUnrollerPass.cpp b/llvm/lib/CodeGen/MachineUnrollerPass.cpp
index db1a72a6c..b7e437fb1 100644
--- a/llvm/lib/CodeGen/MachineUnrollerPass.cpp
+++ b/llvm/lib/CodeGen/MachineUnrollerPass.cpp
@@ -119,7 +119,7 @@ class MachineUnrollerSchedDAG : public ScheduleDAGInstrs {
 public:
   MachineUnrollerSchedDAG(MachineUnrollerPass &P, MachineLoop &L,
                           MachineOptimizationRemarkEmitter *ORE)
-      : ScheduleDAGInstrs(*P.MF, P.MLI, false), Pass(P), Loop(L), ORE(ORE){};
+      : ScheduleDAGInstrs(*P.MF, P.MLI, false), Pass(P), Loop(L), ORE(ORE) {};
   unsigned getUnrollFactor();
   void schedule() override;
 

``````````

</details>


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


More information about the llvm-commits mailing list