teak-llvm/clang/lib/Driver/ToolChains/Arch
Chandler Carruth ae0cafece8 [x86/retpoline] Split the LLVM concept of retpolines into separate
subtarget features for indirect calls and indirect branches.

This is in preparation for enabling *only* the call retpolines when
using speculative load hardening.

I've continued to use subtarget features for now as they continue to
seem the best fit given the lack of other retpoline like constructs so
far.

The LLVM side is pretty simple. I'd like to eventually get rid of the
old feature, but not sure what backwards compatibility issues that will
cause.

This does remove the "implies" from requesting an external thunk. This
always seemed somewhat questionable and is now clearly not desirable --
you specify a thunk the same way no matter which set of things are
getting retpolines.

I really want to keep this nicely isolated from end users and just an
LLVM implementation detail, so I've moved the `-mretpoline` flag in
Clang to no longer rely on a specific subtarget feature by that name and
instead to be directly handled. In some ways this is simpler, but in
order to preserve existing behavior I've had to add some fallback code
so that users who relied on merely passing -mretpoline-external-thunk
continue to get the same behavior. We should eventually remove this
I suspect (we have never tested that it works!) but I've not done that
in this patch.

Differential Revision: https://reviews.llvm.org/D51150

llvm-svn: 340515
2018-08-23 06:06:38 +00:00
..
AArch64.cpp [Driver,AArch64] Add support for -mcpu=native. 2018-07-06 10:49:59 +00:00
AArch64.h
ARM.cpp OpenBSD/arm has switched to float ABI SoftFP. 2018-07-22 21:39:54 +00:00
ARM.h [ARM] Option for reading thread pointer from coprocessor register 2017-09-12 10:40:58 +00:00
Mips.cpp [mips] Add '-mvirt', '-mno-virt', '-mginv', '-mno-ginv' options 2018-07-11 12:45:25 +00:00
Mips.h Use Triple::isMIPS() instead of enumerating all Triples. NFC 2018-06-25 16:49:52 +00:00
PPC.cpp [PowerPC] Option for secure plt mode 2018-04-11 12:24:44 +00:00
PPC.h Change \t to spaces 2018-07-20 08:19:20 +00:00
RISCV.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
RISCV.h [RISCV] Add the RISCV target and compiler driver 2018-01-11 13:36:56 +00:00
Sparc.cpp [Sparc] Use the leon arch for Leon3's when using an external assembler 2018-05-24 06:16:02 +00:00
Sparc.h
SystemZ.cpp
SystemZ.h
X86.cpp [x86/retpoline] Split the LLVM concept of retpolines into separate 2018-08-23 06:06:38 +00:00
X86.h