[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp SelectionDAG.cpp LegalizeDAG.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Thu Mar 31 13:24:22 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.36 -> 1.37
SelectionDAG.cpp updated: 1.53 -> 1.54
LegalizeDAG.cpp updated: 1.63 -> 1.64
---
Log message:
PCMarker support for DAG and Alpha
---
Diffs of the changes: (+11 -0)
LegalizeDAG.cpp | 4 ++++
SelectionDAG.cpp | 1 +
SelectionDAGISel.cpp | 6 ++++++
3 files changed, 11 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.36 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.37
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.36 Tue Mar 29 19:10:47 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu Mar 31 15:24:06 2005
@@ -662,6 +662,12 @@
setValue(&I, DAG.getSetCC(ISD::SETUO, MVT::i1, getValue(I.getOperand(1)),
getValue(I.getOperand(2))));
return;
+ case Intrinsic::pcmarker: {
+ SDOperand Num = getValue(I.getOperand(1));
+ DAG.setRoot(DAG.getNode(ISD::PCMARKER, MVT::Other, getRoot(), Num));
+ return;
+ }
+
}
SDOperand Callee;
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.53 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.54
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.53 Thu Mar 10 14:55:51 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Thu Mar 31 15:24:06 2005
@@ -1099,6 +1099,7 @@
const char *SDNode::getOperationName() const {
switch (getOpcode()) {
default: return "<<Unknown>>";
+ case ISD::PCMARKER: return "PCMarker";
case ISD::EntryToken: return "EntryToken";
case ISD::TokenFactor: return "TokenFactor";
case ISD::Constant: return "Constant";
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.63 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.64
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.63 Mon Mar 28 16:03:13 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Thu Mar 31 15:24:06 2005
@@ -552,6 +552,10 @@
break;
}
break;
+ case ISD::PCMARKER:
+ Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
+ Result = DAG.getNode(ISD::PCMARKER, MVT::Other, Tmp1, Node->getOperand(1));
+ break;
case ISD::TRUNCSTORE:
Tmp1 = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
Tmp3 = LegalizeOp(Node->getOperand(2)); // Legalize the pointer.
More information about the llvm-commits
mailing list