mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
const-ify SelectionDAG::getNodeValueTypes.
llvm-svn: 53264
This commit is contained in:
parent
9f1547684c
commit
2e23cd5a18
@ -167,7 +167,7 @@ public:
|
||||
const MVT *getNodeValueTypes(MVT VT1, MVT VT2, MVT VT3) {
|
||||
return getVTList(VT1, VT2, VT3).VTs;
|
||||
}
|
||||
const MVT *getNodeValueTypes(std::vector<MVT> &vtList) {
|
||||
const MVT *getNodeValueTypes(const std::vector<MVT> &vtList) {
|
||||
return getVTList(&vtList[0], (unsigned)vtList.size()).VTs;
|
||||
}
|
||||
|
||||
@ -312,7 +312,7 @@ public:
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
SDOperand getNode(unsigned Opcode, MVT VT,
|
||||
const SDUse *Ops, unsigned NumOps);
|
||||
SDOperand getNode(unsigned Opcode, std::vector<MVT> &ResultTys,
|
||||
SDOperand getNode(unsigned Opcode, const std::vector<MVT> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
SDOperand getNode(unsigned Opcode, const MVT *VTs, unsigned NumVTs,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
@ -511,7 +511,7 @@ public:
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
SDNode *getTargetNode(unsigned Opcode, MVT VT1, MVT VT2, MVT VT3, MVT VT4,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
SDNode *getTargetNode(unsigned Opcode, std::vector<MVT> &ResultTys,
|
||||
SDNode *getTargetNode(unsigned Opcode, const std::vector<MVT> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps);
|
||||
|
||||
/// getNodeIfExists - Get the specified node if it's already available, or
|
||||
|
@ -3399,7 +3399,7 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT VT,
|
||||
}
|
||||
|
||||
SDOperand SelectionDAG::getNode(unsigned Opcode,
|
||||
std::vector<MVT> &ResultTys,
|
||||
const std::vector<MVT> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps) {
|
||||
return getNode(Opcode, getNodeValueTypes(ResultTys), ResultTys.size(),
|
||||
Ops, NumOps);
|
||||
@ -3969,7 +3969,7 @@ SDNode *SelectionDAG::getTargetNode(unsigned Opcode, MVT VT1,
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, 4, Ops, NumOps).Val;
|
||||
}
|
||||
SDNode *SelectionDAG::getTargetNode(unsigned Opcode,
|
||||
std::vector<MVT> &ResultTys,
|
||||
const std::vector<MVT> &ResultTys,
|
||||
const SDOperand *Ops, unsigned NumOps) {
|
||||
const MVT *VTs = getNodeValueTypes(ResultTys);
|
||||
return getNode(ISD::BUILTIN_OP_END+Opcode, VTs, ResultTys.size(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user