[PowerPC] Add a FIXME.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 17 Sep 2013 20:22:05 +0000 (20:22 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Tue, 17 Sep 2013 20:22:05 +0000 (20:22 +0000)
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

lib/Target/PowerPC/PPCISelLowering.cpp

index 83bd1abddedb98ed38596f153e8bc0ac9fb7b133..5e12664e728ca56ee5309e8611c08ebaa4c01810 100644 (file)
@@ -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();