[clang] [llvm] [SystemZ][z/OS] Add support of stack guard on z/OS (PR #206045)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 05:24:35 PDT 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 cpp,c,h -- clang/lib/Driver/ToolChains/Clang.cpp clang/test/Driver/stack-protector-guard.c llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp llvm/lib/Target/SystemZ/SystemZAsmPrinter.h llvm/lib/Target/SystemZ/SystemZInstrInfo.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/Target/SystemZ/SystemZInstrInfo.cpp b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
index 2662bb905..488317143 100644
--- a/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -1815,7 +1815,8 @@ void SystemZInstrInfo::expandStackGuardPseudo(MachineInstr &MI,
   if (GuardType.empty() || (GuardType == "tls")) {
     if (STI.isTargetzOS()) {
       enum { OFFSET_CEELAA_STACK_GUARD = 0x98 };
-      BuildMI(MBB, MI, DL, get(SystemZ::LOAD_LIBRARY_ANCHOR_AREA_ADDR), AddrReg);
+      BuildMI(MBB, MI, DL, get(SystemZ::LOAD_LIBRARY_ANCHOR_AREA_ADDR),
+              AddrReg);
       Offset = OFFSET_CEELAA_STACK_GUARD;
     } else {
       // Emit a load of the TLS block's address

``````````

</details>


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


More information about the cfe-commits mailing list