Refactor TLS code and add some tests. The tests and expected results are:
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Feb 2009 13:37:18 +0000 (13:37 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 27 Feb 2009 13:37:18 +0000 (13:37 +0000)
commit9a58023c6ce1e77447a21d07a3de4c1ac98a3d24
tree842f2838176d1b9fdf5147364cada22a85ce38b2
parent0186250b31b54f2496afbdf927d5b7c432cf675d
Refactor TLS code and add some tests. The tests and expected results are:

 pic |  declaration | linkage  | visibility |

!pic |  declaration | external | default    | tls1.ll     tls2.ll     | local exec
 pic |  declaration | external | default    | tls1-pic.ll tls2-pic.ll | general dynamic
!pic | !declaration | external | default    | tls3.ll     tls4.ll     | initial exec
 pic | !declaration | external | default    | tls3-pic.ll tls4-pic.ll | general dynamic

!pic |  declaration | external | hidden     | tls7.ll     tls8.ll     | local exec
 pic |  declaration | external | hidden     | X                       | local dynamic
!pic | !declaration | external | hidden     | tls9.ll     tls10.ll    | local exec
 pic | !declaration | external | hidden     | X                       | local dynamic

!pic |  declaration | internal | default    | tls5.ll     tls6.ll     | local exec
 pic |  declaration | internal | default    | X                       | local dynamic

The ones marked with an X have not been implemented since local dynamic is not implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65632 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/TargetLowering.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/tls1-pic.ll [new file with mode: 0644]
test/CodeGen/X86/tls1.ll
test/CodeGen/X86/tls10.ll [new file with mode: 0644]
test/CodeGen/X86/tls2-pic.ll [new file with mode: 0644]
test/CodeGen/X86/tls2.ll
test/CodeGen/X86/tls3-pic.ll [new file with mode: 0644]
test/CodeGen/X86/tls3.ll [new file with mode: 0644]
test/CodeGen/X86/tls4-pic.ll [new file with mode: 0644]
test/CodeGen/X86/tls4.ll [new file with mode: 0644]
test/CodeGen/X86/tls5.ll [new file with mode: 0644]
test/CodeGen/X86/tls6.ll [new file with mode: 0644]
test/CodeGen/X86/tls7.ll [new file with mode: 0644]
test/CodeGen/X86/tls8.ll [new file with mode: 0644]
test/CodeGen/X86/tls9.ll [new file with mode: 0644]