mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-15 07:59:33 +00:00
Add a variant of getTargetNode() that takes a vector of MVT::ValueType.
llvm-svn: 42620
This commit is contained in:
parent
ec6d5655c6
commit
5ae84c0fa6
@ -414,6 +414,8 @@ public:
|
||||
MVT::ValueType VT2, MVT::ValueType VT3,
|
||||
MVT::ValueType VT4,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
SDNode *getTargetNode(unsigned Opcode, std::vector<MVT::ValueType> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
|
||||
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
|
||||
/// This can cause recursive merging of nodes in the DAG. Use the first
|
||||
|
@ -3054,6 +3054,13 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT::ValueType VT1,
|
||||
const MVT::ValueType *VTs = getNodeValueTypes(VTList);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val;
|
||||
}
|
||||
SDNode *SelectionDAG::getTargetNode(unsigned Opcode,
|
||||
std::vector<MVT::ValueType> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps) {
|
||||
const MVT::ValueType *VTs = getNodeValueTypes(ResultTys);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, ResultTys.size(),
|
||||
Ops, NumOps).Val;
|
||||
}
|
||||
|
||||
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
|
||||
/// This can cause recursive merging of nodes in the DAG.
|
||||
|
Loading…
x
Reference in New Issue
Block a user