mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Update comments to indicate CopyFrom/ToReg take physregs as well as vregs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19514 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -116,17 +116,17 @@ public:
|
|||||||
SDOperand getBasicBlock(MachineBasicBlock *MBB);
|
SDOperand getBasicBlock(MachineBasicBlock *MBB);
|
||||||
SDOperand getExternalSymbol(const char *Sym, MVT::ValueType VT);
|
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
|
// Note: these are auto-CSE'd because the caller doesn't make requests that
|
||||||
// could cause duplicates to occur.
|
// could cause duplicates to occur.
|
||||||
SDNode *NN = new CopyRegSDNode(Chain, N, VReg);
|
SDNode *NN = new CopyRegSDNode(Chain, N, Reg);
|
||||||
AllNodes.push_back(NN);
|
AllNodes.push_back(NN);
|
||||||
return SDOperand(NN, 0);
|
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.
|
// 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);
|
AllNodes.push_back(NN);
|
||||||
return SDOperand(NN, 0);
|
return SDOperand(NN, 0);
|
||||||
}
|
}
|
||||||
|
@ -50,14 +50,14 @@ namespace ISD {
|
|||||||
|
|
||||||
// CopyToReg - This node has chain and child nodes, and an associated
|
// CopyToReg - This node has chain and child nodes, and an associated
|
||||||
// register number. The instruction selector must guarantee that the value
|
// 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.
|
// CopyRegSDNode object.
|
||||||
CopyToReg,
|
CopyToReg,
|
||||||
|
|
||||||
// CopyFromReg - This node indicates that the input value is a virtual or
|
// CopyFromReg - This node indicates that the input value is a virtual or
|
||||||
// physical register that is defined outside of the scope of this
|
// physical register that is defined outside of the scope of this
|
||||||
// SelectionDAG. The virtual register is available from the
|
// SelectionDAG. The register number is available from the CopyRegSDNode
|
||||||
// CopyRegSDNode object.
|
// object.
|
||||||
CopyFromReg,
|
CopyFromReg,
|
||||||
|
|
||||||
// EXTRACT_ELEMENT - This is used to get the first or second (determined by
|
// EXTRACT_ELEMENT - This is used to get the first or second (determined by
|
||||||
|
Reference in New Issue
Block a user