[PowerPC][PCRelative] Set TLS unsupported with PC relative memops
authorKamau Bridgeman <kamau.bridgeman@ibm.com>
Thu, 6 Aug 2020 17:29:35 +0000 (12:29 -0500)
committerKamau Bridgeman <kamau.bridgeman@ibm.com>
Fri, 7 Aug 2020 15:56:24 +0000 (10:56 -0500)
commitd8c6d083c954b03855700e16c81b483d2ae654d0
tree5cba2b9160a6bf7b784eee08ba9c9cf0a3a3a84d
parent4a7aedb843a591900b419e86dcf46d9bec4c5526
[PowerPC][PCRelative] Set TLS unsupported with PC relative memops

Introduce a fatal error if any thread local storage code is compiled
using pc relative memory operations as well as a hidden override
option `-enable-ppc-pcrel-tls` so that this support can be incrementally
added if possible.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D85448
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/test/CodeGen/PowerPC/pcrel-tls.ll [new file with mode: 0644]