diff options
author | Sanjay Patel <spatel@rotateright.com> | 2015-05-11 19:34:10 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2015-05-11 19:34:10 +0000 |
commit | ba2d52291568ffaf5d99921ecba69acf62fa38cf (patch) | |
tree | b7f3fadecd514411a47dd8cb0106eca7749213f7 | |
parent | 268efdd49bd19b616da377aa1067fecc18b91815 (diff) | |
download | bcm5719-llvm-ba2d52291568ffaf5d99921ecba69acf62fa38cf.tar.gz bcm5719-llvm-ba2d52291568ffaf5d99921ecba69acf62fa38cf.zip |
group getNode() variants by purpose and add comments; NFC
llvm-svn: 237013
-rw-r--r-- | llvm/include/llvm/CodeGen/SelectionDAG.h | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h index 10aaecb1de9..373876cdc59 100644 --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -652,6 +652,16 @@ public: /// Gets or creates the specified node. /// + SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, + ArrayRef<SDUse> Ops); + SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, + ArrayRef<SDValue> Ops); + SDValue getNode(unsigned Opcode, SDLoc DL, ArrayRef<EVT> ResultTys, + ArrayRef<SDValue> Ops); + SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, + ArrayRef<SDValue> Ops); + + // Specialize based on number of operands. SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT); SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N); SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2, @@ -662,25 +672,19 @@ public: SDValue N3, SDValue N4); SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, SDValue N1, SDValue N2, SDValue N3, SDValue N4, SDValue N5); - SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, ArrayRef<SDUse> Ops); - SDValue getNode(unsigned Opcode, SDLoc DL, EVT VT, - ArrayRef<SDValue> Ops); - SDValue getNode(unsigned Opcode, SDLoc DL, - ArrayRef<EVT> ResultTys, - ArrayRef<SDValue> Ops); - SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, - ArrayRef<SDValue> Ops); + + // Specialize again based on number of operands for nodes with a VTList + // rather than a single VT. SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs); SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N); - SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, - SDValue N1, SDValue N2); - SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, - SDValue N1, SDValue N2, SDValue N3); - SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, - SDValue N1, SDValue N2, SDValue N3, SDValue N4); - SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, - SDValue N1, SDValue N2, SDValue N3, SDValue N4, - SDValue N5); + SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, + SDValue N2); + SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, + SDValue N2, SDValue N3); + SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, + SDValue N2, SDValue N3, SDValue N4); + SDValue getNode(unsigned Opcode, SDLoc DL, SDVTList VTs, SDValue N1, + SDValue N2, SDValue N3, SDValue N4, SDValue N5); /// Compute a TokenFactor to force all the incoming stack arguments to be /// loaded from the stack. This is used in tail call lowering to protect |