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

Chris Lattner lattner at cs.uiuc.edu
Mon May 9 13:22:30 PDT 2005



Changes in directory llvm/lib/CodeGen/SelectionDAG:

SelectionDAG.cpp updated: 1.102 -> 1.103
---
Log message:

Add support for READPORT, WRITEPORT, READIO, WRITEIO


---
Diffs of the changes:  (+10 -1)

 SelectionDAG.cpp |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletion(-)


Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.102 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.103
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.102	Mon May  9 12:06:45 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp	Mon May  9 15:22:17 2005
@@ -1195,7 +1195,11 @@
   SDNode *&N = BinaryOps[std::make_pair(Opcode, std::make_pair(N1, N2))];
   if (N) return SDOperand(N, 0);
   N = new SDNode(Opcode, N1, N2);
-  N->setValueTypes(VT);
+
+  if (Opcode != ISD::READPORT && Opcode != ISD::READIO)
+    N->setValueTypes(VT);
+  else
+    N->setValueTypes(VT, MVT::Other);
 
   AllNodes.push_back(N);
   return SDOperand(N, 0);
@@ -1666,6 +1670,11 @@
   case ISD::MEMCPY:  return "memcpy";
   case ISD::MEMMOVE: return "memmove";
 
+  case ISD::READPORT: return "readport";
+  case ISD::WRITEPORT: return "writeport";
+  case ISD::READIO: return "readio";
+  case ISD::WRITEIO: return "writeio";
+
   case ISD::SETCC:
     const SetCCSDNode *SetCC = cast<SetCCSDNode>(this);
     switch (SetCC->getCondition()) {






More information about the llvm-commits mailing list