[PATCH] D100919: [AArch64] Support customizing stack protector guard

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 23 16:24:15 PDT 2021


nickdesaulniers added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64InstrInfo.cpp:1914-1915
+      BuildMI(MBB, MI, DL, get(AArch64::LDRXui))
+          .addReg(Reg, getKillRegState(false))
+          .addReg(Reg, RegState::Define)
+          .addImm(Options.StackProtectorGuardOffset >> 3);
----------------
@efriedma can you please check that I have these flags correct? I'm not sure that I do.  Also, I suspect that I can't allocated a virtual register for the result of the LDR, since this is post-RA?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100919/new/

https://reviews.llvm.org/D100919



More information about the llvm-commits mailing list