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 | bdae03f22765a4c792d6281e636f4ace1ec66e54 (patch) | |
tree | a8b6e3b544e51434e3d14b39603399f3a717176e /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | bb381d7063133d2fa855cd30db49f4f4023ba343 (diff) | |
download | bcm5719-llvm-bdae03f22765a4c792d6281e636f4ace1ec66e54.tar.gz bcm5719-llvm-bdae03f22765a4c792d6281e636f4ace1ec66e54.zip |
[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.
llvm-svn: 190883
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 83bd1abdded..5e12664e728 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/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(); |