[clang] [llvm] [SystemZ] Global Stackprotector and associated location section (PR #169317)

Dominik Steenken via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 2 07:11:59 PST 2026


================
@@ -1830,6 +1928,25 @@ unsigned SystemZInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
     return 18;
   if (MI.getOpcode() == TargetOpcode::PATCHABLE_RET)
     return 18 + (MI.getOperand(0).getImm() == SystemZ::CondReturn ? 4 : 0);
+  if ((MI.getOpcode() == SystemZ::MOVE_STACK_GUARD) ||
+      (MI.getOpcode() == SystemZ::COMPARE_STACK_GUARD)) {
----------------
dominik-steenken wrote:

Now, `LOAD_TSGA` (load tls stack guard address, 14 bytes) and `LOAD_GSGA` (load global stack guard address, 6 bytes) survive to the AsmPrinter.

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


More information about the cfe-commits mailing list