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

Nick Desaulniers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 4 17:25:05 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);
----------------
nickdesaulniers wrote:
> @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?
@efriedma bumping for review; otherwise can you suggest another reviewer?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100919



More information about the cfe-commits mailing list