[PATCH] D102742: [IR] make stack-protector-guard-* flags into module attrs

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 18 17:51:29 PDT 2021


nickdesaulniers created this revision.
nickdesaulniers added reviewers: MaskRay, pcc, xiangzhangllvm.
Herald added subscribers: dexonsmith, hiraditya, kristof.beyls.
nickdesaulniers requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

D88631 <https://reviews.llvm.org/D88631> added initial support for:

- -mstack-protector-guard=
- -mstack-protector-guard-reg=
- -mstack-protector-guard-offset=

flags, and D100919 <https://reviews.llvm.org/D100919> extended these to AArch64. Unfortunately, these flags
aren't retained for LTO. Make them module attributes rather than
TargetOptions.

Link: https://github.com/ClangBuiltLinux/linux/issues/1378


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102742

Files:
  clang/lib/CodeGen/CodeGenModule.cpp
  llvm/include/llvm/IR/Module.h
  llvm/lib/IR/Module.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102742.346317.patch
Type: text/x-patch
Size: 4427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210519/5e3558ef/attachment.bin>


More information about the llvm-commits mailing list