[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAG.h SelectionDAGNodes.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 12 10:11:49 PST 2005
Changes in directory llvm/include/llvm/CodeGen:
SelectionDAG.h updated: 1.9 -> 1.10
SelectionDAGNodes.h updated: 1.9 -> 1.10
---
Log message:
Update comments to indicate CopyFrom/ToReg take physregs as well as vregs.
---
Diffs of the changes: (+7 -7)
Index: llvm/include/llvm/CodeGen/SelectionDAG.h
diff -u llvm/include/llvm/CodeGen/SelectionDAG.h:1.9 llvm/include/llvm/CodeGen/SelectionDAG.h:1.10
--- llvm/include/llvm/CodeGen/SelectionDAG.h:1.9 Mon Jan 10 17:05:53 2005
+++ llvm/include/llvm/CodeGen/SelectionDAG.h Wed Jan 12 12:11:36 2005
@@ -116,17 +116,17 @@
SDOperand getBasicBlock(MachineBasicBlock *MBB);
SDOperand getExternalSymbol(const char *Sym, MVT::ValueType VT);
- SDOperand getCopyToReg(SDOperand Chain, SDOperand N, unsigned VReg) {
+ SDOperand getCopyToReg(SDOperand Chain, SDOperand N, unsigned Reg) {
// Note: these are auto-CSE'd because the caller doesn't make requests that
// could cause duplicates to occur.
- SDNode *NN = new CopyRegSDNode(Chain, N, VReg);
+ SDNode *NN = new CopyRegSDNode(Chain, N, Reg);
AllNodes.push_back(NN);
return SDOperand(NN, 0);
}
- SDOperand getCopyFromReg(unsigned VReg, MVT::ValueType VT) {
+ SDOperand getCopyFromReg(unsigned Reg, MVT::ValueType VT) {
// Note: These nodes are auto-CSE'd by the caller of this method.
- SDNode *NN = new CopyRegSDNode(VReg, VT);
+ SDNode *NN = new CopyRegSDNode(Reg, VT);
AllNodes.push_back(NN);
return SDOperand(NN, 0);
}
Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.9 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.10
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.9 Mon Jan 10 23:56:17 2005
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Wed Jan 12 12:11:36 2005
@@ -50,14 +50,14 @@
// CopyToReg - This node has chain and child nodes, and an associated
// register number. The instruction selector must guarantee that the value
- // of the value node is available in the virtual register stored in the
+ // of the value node is available in the register stored in the
// CopyRegSDNode object.
CopyToReg,
// CopyFromReg - This node indicates that the input value is a virtual or
// physical register that is defined outside of the scope of this
- // SelectionDAG. The virtual register is available from the
- // CopyRegSDNode object.
+ // SelectionDAG. The register number is available from the CopyRegSDNode
+ // object.
CopyFromReg,
// EXTRACT_ELEMENT - This is used to get the first or second (determined by
More information about the llvm-commits
mailing list