llvm-6502/lib/Target/PowerPC/MCTargetDesc
Ulrich Weigand a17a7e1868 [PowerPC] Rework TLS call operand processing
As part of the global-dynamic and local-dynamic TLS sequences, we need
to use a special form of the call instruction:

 bl __tls_get_addr(sym@tlsld)
 bl __tls_get_addr(sym@tlsgd)

which generates two fixups.  The current implementation of this causes
problems with recognizing this form in the asm parser.  To fix this,
this patch reworks operand processing for this special form by using
a single operand to hold both __tls_get_addr and sym@tlsld and defining
a print method to output the above form, and an encoding method to
generate the two fixups.

As a side simplification, the patch replaces the two instruction
patterns BL8_NOP_TLSGD and BL8_NOP_TLSLD by a single BL8_NOP_TLS,
since the patterns already operate in an identical fashion (whether
we have a local-dynamic or global-dynamic symbol is already encoded
in the symbol modifier).

No change in code generation intended.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185477 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-02 21:31:04 +00:00
..
CMakeLists.txt
LLVMBuild.txt
Makefile
PPCAsmBackend.cpp [PowerPC] Support absolute branches 2013-06-24 11:03:33 +00:00
PPCELFObjectWriter.cpp [PowerPC] Remove VK_PPC_TLSGD and VK_PPC_TLSLD 2013-07-02 21:29:06 +00:00
PPCFixupKinds.h [PowerPC] Support absolute branches 2013-06-24 11:03:33 +00:00
PPCMCAsmInfo.cpp
PPCMCAsmInfo.h
PPCMCCodeEmitter.cpp [PowerPC] Rework TLS call operand processing 2013-07-02 21:31:04 +00:00
PPCMCExpr.cpp [PowerPC] Support @higher et.al. modifiers 2013-06-21 14:43:42 +00:00
PPCMCExpr.h [PowerPC] Support @higher et.al. modifiers 2013-06-21 14:43:42 +00:00
PPCMCTargetDesc.cpp
PPCMCTargetDesc.h
PPCPredicates.cpp [PowerPC] Add predicted forms of branches 2013-06-24 16:52:04 +00:00
PPCPredicates.h [PowerPC] Add predicted forms of branches 2013-06-24 16:52:04 +00:00