[llvm] r190883 - [PowerPC] Add a FIXME.

Bill Schmidt wschmidt at linux.vnet.ibm.com
Tue Sep 17 13:22:05 PDT 2013


Author: wschmidt
Date: Tue Sep 17 15:22:05 2013
New Revision: 190883

URL: http://llvm.org/viewvc/llvm-project?rev=190883&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp

Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=190883&r1=190882&r2=190883&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Tue Sep 17 15:22:05 2013
@@ -1408,6 +1408,10 @@ SDValue PPCTargetLowering::LowerBlockAdd
 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();





More information about the llvm-commits mailing list