diff options
author | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-09-17 20:22:05 +0000 |
---|---|---|
committer | Bill Schmidt <wschmidt@linux.vnet.ibm.com> | 2013-09-17 20:22:05 +0000 |
commit | 3789209b79ba8097cc489630c005898365134f65 (patch) | |
tree | 94becba3d76125312c45d3419e276d8d70efada5 | |
parent | 5bd1dfa2b5deab10a1a7a5a4ba117c28d878595d (diff) | |
download | llvm-3789209b79ba8097cc489630c005898365134f65.tar.gz llvm-3789209b79ba8097cc489630c005898365134f65.tar.bz2 llvm-3789209b79ba8097cc489630c005898365134f65.tar.xz |
[PowerPC] Add a FIXME.
Documenting a design choice to generate only medium model sequences for TLS
addresses at this time. Small and large code models could be supported if
necessary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190883 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 83bd1abdde..5e12664e72 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1408,6 +1408,10 @@ SDValue PPCTargetLowering::LowerBlockAddress(SDValue Op, SDValue PPCTargetLowering::LowerGlobalTLSAddress(SDValue Op, SelectionDAG &DAG) const { + // FIXME: TLS addresses currently use medium model code sequences, + // which is the most useful form. Eventually support for small and + // large models could be added if users need it, at the cost of + // additional complexity. GlobalAddressSDNode *GA = cast<GlobalAddressSDNode>(Op); SDLoc dl(GA); const GlobalValue *GV = GA->getGlobal(); |