[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp SelectionDAG.cpp
Evan Cheng
evan.cheng at apple.com
Thu Nov 9 09:54:34 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
DAGCombiner.cpp updated: 1.245 -> 1.246
SelectionDAG.cpp updated: 1.371 -> 1.372
---
Log message:
Rename ISD::MemOpAddrMode to ISD::MemIndexedMode
---
Diffs of the changes: (+11 -9)
DAGCombiner.cpp | 4 ++--
SelectionDAG.cpp | 16 +++++++++-------
2 files changed, 11 insertions(+), 9 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.245 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.246
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.245 Wed Nov 8 22:29:46 2006
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Thu Nov 9 11:54:19 2006
@@ -202,7 +202,7 @@
Ptr.Val->use_size() > 1) {
SDOperand BasePtr;
SDOperand Offset;
- ISD::MemOpAddrMode AM = ISD::UNINDEXED;
+ ISD::MemIndexedMode AM = ISD::UNINDEXED;
if (TLI.getPreIndexedAddressParts(N, BasePtr, Offset, AM, DAG)) {
// Try turning it into a pre-indexed load / store except when
// 1) Another use of base ptr is a predecessor of N. If ptr is folded
@@ -298,7 +298,7 @@
SDOperand BasePtr;
SDOperand Offset;
- ISD::MemOpAddrMode AM = ISD::UNINDEXED;
+ ISD::MemIndexedMode AM = ISD::UNINDEXED;
if (TLI.getPostIndexedAddressParts(N, Op, BasePtr, Offset, AM,DAG)) {
if (Ptr == Offset)
std::swap(BasePtr, Offset);
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.371 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.372
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.371 Wed Nov 8 13:16:43 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Thu Nov 9 11:54:19 2006
@@ -1619,8 +1619,9 @@
return SDOperand(N, 0);
}
-SDOperand SelectionDAG::getIndexedLoad(SDOperand OrigLoad, SDOperand Base,
- SDOperand Offset, ISD::MemOpAddrMode AM){
+SDOperand
+SelectionDAG::getIndexedLoad(SDOperand OrigLoad, SDOperand Base,
+ SDOperand Offset, ISD::MemIndexedMode AM) {
LoadSDNode *LD = cast<LoadSDNode>(OrigLoad);
assert(LD->getOffset().getOpcode() == ISD::UNDEF &&
"Load is already a indexed load!");
@@ -1722,8 +1723,9 @@
return SDOperand(N, 0);
}
-SDOperand SelectionDAG::getIndexedStore(SDOperand OrigStore, SDOperand Base,
- SDOperand Offset, ISD::MemOpAddrMode AM){
+SDOperand
+SelectionDAG::getIndexedStore(SDOperand OrigStore, SDOperand Base,
+ SDOperand Offset, ISD::MemIndexedMode AM) {
StoreSDNode *ST = cast<StoreSDNode>(OrigStore);
assert(ST->getOffset().getOpcode() == ISD::UNDEF &&
"Store is already a indexed store!");
@@ -2841,7 +2843,7 @@
}
}
-const char *SDNode::getAddressingModeName(ISD::MemOpAddrMode AM) {
+const char *SDNode::getIndexedModeName(ISD::MemIndexedMode AM) {
switch (AM) {
default:
return "";
@@ -2943,7 +2945,7 @@
if (doExt)
std::cerr << MVT::getValueTypeString(LD->getLoadedVT()) << ">";
- const char *AM = getAddressingModeName(LD->getAddressingMode());
+ const char *AM = getIndexedModeName(LD->getAddressingMode());
if (AM != "")
std::cerr << " " << AM;
} else if (const StoreSDNode *ST = dyn_cast<StoreSDNode>(this)) {
@@ -2951,7 +2953,7 @@
std::cerr << " <trunc "
<< MVT::getValueTypeString(ST->getStoredVT()) << ">";
- const char *AM = getAddressingModeName(ST->getAddressingMode());
+ const char *AM = getIndexedModeName(ST->getAddressingMode());
if (AM != "")
std::cerr << " " << AM;
}
More information about the llvm-commits
mailing list