freebsd-skq/contrib/llvm/lib/Target
Ed Maste e93a7dab19 llvm: Backport upstream r229195 to fix arm64 TLS relocations
As is described at http://llvm.org/bugs/show_bug.cgi?id=22408, the GNU
  linkers ld.bfd and ld.gold currently only support a subset of the
  whole range of AArch64 ELF TLS relocations. Furthermore, they assume
  that some of the code sequences to access thread-local variables are
  produced in a very specific sequence.  When the sequence is not as the
  linker expects, it can silently mis-relaxe/mis-optimize the
  instructions.
  Even if that wouldn't be the case, it's good to produce the exact
  sequence, as that ensures that linkers can perform optimizing
  relaxations.

  This patch:

  * implements support for 16MiB TLS area size instead of 4GiB TLS area
    size. Ideally clang would grow an -mtls-size option to allow support
    for both, but that's not part of this patch.
  * by default doesn't produce local dynamic access patterns, as even
    modern ld.bfd and ld.gold linkers do not support the associated
    relocations. An option (-aarch64-elf-ldtls-generation) is added to
    enable generation of local dynamic code sequence, but is off by
    default.
  * makes sure that the exact expected code sequence for local dynamic
    and general dynamic accesses is produced, by making use of a new
    pseudo instruction. The patch also removes two
    (AArch64ISD::TLSDESC_BLR, AArch64ISD::TLSDESC_CALL) pre-existing
    AArch64-specific pseudo SDNode instructions that are superseded by
    the new one (TLSDESC_CALLSEQ).

Submitted by:	Kristof Beyls
Differential Revision:	https://reviews.freebsd.org/D2175
2015-03-30 20:01:41 +00:00
..
AArch64 llvm: Backport upstream r229195 to fix arm64 TLS relocations 2015-03-30 20:01:41 +00:00
ARM Pull in r230348 from upstream llvm trunk (by Tim Northover): 2015-03-23 21:13:29 +00:00
CppBackend Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Hexagon Merge llvm 3.6.0rc2 from ^/vendor/llvm/dist, merge clang 3.6.0rc2 from 2015-01-31 21:57:38 +00:00
Mips Pull in r227089 from upstream llvm trunk (by Vasileios Kalintiris): 2015-02-07 23:25:56 +00:00
MSP430 Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
NVPTX Merge llvm 3.6.0rc2 from ^/vendor/llvm/dist, merge clang 3.6.0rc2 from 2015-01-31 21:57:38 +00:00
PowerPC Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 from 2015-02-14 14:13:00 +00:00
R600 Merge llvm 3.6.0rc3 from ^/vendor/llvm/dist, merge clang 3.6.0rc3 from 2015-02-14 14:13:00 +00:00
Sparc Merge llvm 3.6.0rc2 from ^/vendor/llvm/dist, merge clang 3.6.0rc2 from 2015-01-31 21:57:38 +00:00
SystemZ Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
X86 Merge llvm 3.6.0rc4 from ^/vendor/llvm/dist, merge clang 3.6.0rc4 from 2015-02-19 22:20:19 +00:00
XCore Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
Target.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
TargetIntrinsicInfo.cpp Upgrade our copy of llvm/clang to trunk r178860, in preparation of the 2013-04-12 17:57:40 +00:00
TargetLibraryInfo.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
TargetLoweringObjectFile.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
TargetMachine.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
TargetMachineC.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00
TargetSubtargetInfo.cpp Merge llvm 3.6.0rc1 from ^/vendor/llvm/dist, merge clang 3.6.0rc1 from 2015-01-25 23:36:55 +00:00