[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Evan Cheng evan.cheng at apple.com
Thu Nov 9 10:56:58 PST 2006



Changes in directory llvm/lib/CodeGen/SelectionDAG:

TargetLowering.cpp updated: 1.79 -> 1.80
---
Log message:

Add a mechanism to specify whether a target supports a particular indexed load / store.

---
Diffs of the changes:  (+8 -0)

 TargetLowering.cpp |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.79 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.80
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.79	Thu Nov  2 14:25:49 2006
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp	Thu Nov  9 12:56:43 2006
@@ -29,6 +29,14 @@
   memset(OpActions, 0, sizeof(OpActions));
   memset(LoadXActions, 0, sizeof(LoadXActions));
   memset(&StoreXActions, 0, sizeof(StoreXActions));
+  // Initialize all indexed load / store to expand.
+  for (unsigned VT = 0; VT != (unsigned)MVT::LAST_VALUETYPE; ++VT) {
+    for (unsigned IM = (unsigned)ISD::PRE_INC;
+         IM != (unsigned)ISD::LAST_INDEXED_MODE; ++IM) {
+      setIndexedLoadAction(IM, (MVT::ValueType)VT, Expand);
+      setIndexedStoreAction(IM, (MVT::ValueType)VT, Expand);
+    }
+  }
 
   IsLittleEndian = TD->isLittleEndian();
   UsesGlobalOffsetTable = false;






More information about the llvm-commits mailing list