Add 5-operand version of SelectNodeTo

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2005-08-21 18:49:58 +00:00
parent 6b09a29604
commit d54209fcf9
2 changed files with 15 additions and 0 deletions

View File

@@ -678,6 +678,18 @@ protected:
Op0.Val->Uses.push_back(this); Op1.Val->Uses.push_back(this);
Op2.Val->Uses.push_back(this); Op3.Val->Uses.push_back(this);
}
void setOperands(SDOperand Op0, SDOperand Op1, SDOperand Op2, SDOperand Op3,
SDOperand Op4) {
Operands.reserve(5);
Operands.push_back(Op0);
Operands.push_back(Op1);
Operands.push_back(Op2);
Operands.push_back(Op3);
Operands.push_back(Op4);
Op0.Val->Uses.push_back(this); Op1.Val->Uses.push_back(this);
Op2.Val->Uses.push_back(this); Op3.Val->Uses.push_back(this);
Op4.Val->Uses.push_back(this);
}
void addUser(SDNode *User) {
Uses.push_back(User);
}