diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:22:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:22:17 +0000 |
commit | 3c6910153c2913ea3e566bbbeb4070f15bfae2f4 (patch) | |
tree | 320d5241689289fbe76ed1a543bbf6ac866766a3 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 21074f43ed5165828717ea3606eb2bd222a39b26 (diff) |
Add support for READPORT, WRITEPORT, READIO, WRITEIO
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index faeb872528..f130b161fa 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1195,7 +1195,11 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, 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 @@ const char *SDNode::getOperationName() const { 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()) { |