[llvm] Update frame layout & CFI generation to handle frames larger than 2gb (PR #99263)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 19:03:42 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 27b2f4f861b8aeeabc4eb1a97649062de8fa3992 461eed4080323b707c79d35cac7cdabc59890331 --extensions cpp,h -- llvm/include/llvm/CodeGen/MachineFrameInfo.h llvm/include/llvm/CodeGen/TargetFrameLowering.h llvm/include/llvm/MC/MCAsmBackend.h llvm/include/llvm/MC/MCDwarf.h llvm/lib/CodeGen/CFIInstrInserter.cpp llvm/lib/CodeGen/MachineFrameInfo.cpp llvm/lib/CodeGen/PrologEpilogInserter.cpp llvm/lib/MC/MCDwarf.cpp llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp llvm/lib/Target/ARM/ARMFrameLowering.cpp llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackendDarwin.h llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp llvm/lib/Target/MSP430/MSP430FrameLowering.cpp llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp llvm/lib/Target/X86/X86FrameLowering.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
index 4a425bc45e..0d0b58d910 100644
--- a/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
@@ -1660,7 +1660,7 @@ bool HexagonFrameLowering::assignCalleeSavedSpillSlots(MachineFunction &MF,
   using SpillSlot = TargetFrameLowering::SpillSlot;
 
   unsigned NumFixed;
-  int64_t MinOffset = 0;  // CS offsets are negative.
+  int64_t MinOffset = 0; // CS offsets are negative.
   const SpillSlot *FixedSlots = getCalleeSavedSpillSlots(NumFixed);
   for (const SpillSlot *S = FixedSlots; S != FixedSlots+NumFixed; ++S) {
     if (!SRegs[S->Reg])

``````````

</details>


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


More information about the llvm-commits mailing list