[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:08:27 PST 2026
================
@@ -741,13 +743,41 @@ void SystemZAsmPrinter::emitInstruction(const MachineInstr *MI) {
case SystemZ::EH_SjLj_Setup:
return;
+ case SystemZ::LOAD_STACK_GUARD:
+ llvm_unreachable(
+ "LOAD_STACK_GUARD should have been eliminated by the DAG Combiner.");
+
+ case SystemZ::MOVE_STACK_GUARD:
+ case SystemZ::COMPARE_STACK_GUARD:
+ llvm_unreachable("MOVE_STACK_GUARD and COMPARE_STACK_GUARD should have "
+ "been expanded by ExpandPostRAPseudo.");
+
+ case SystemZ::LARL:
+ case SystemZ::LGRL: {
+ auto &Op = MI->getOperand(1);
+ if (Op.isGlobal() && (Op.getGlobal()->getName() == "__stack_chk_guard"))
----------------
dominik-steenken wrote:
As discussed separately, there is now one pseudo each for loading the tls and global stack guard addrress. These are expanded in the Post RA Pseudo Expander.
https://github.com/llvm/llvm-project/pull/169317
More information about the cfe-commits
mailing list