diff options
| author | Duncan Sands <baldrick@free.fr> | 2009-05-31 04:15:38 +0000 | 
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2009-05-31 04:15:38 +0000 | 
| commit | 96e5698741779325f3079dbc8e9ab70684afcd5a (patch) | |
| tree | 48858293abf118b6bca3ecdeb451f71779680b8a /llvm/lib/CodeGen/SelectionDAG | |
| parent | 6674a492c47d0adf77d22f58b0e84527f6c24c93 (diff) | |
| download | bcm5719-llvm-96e5698741779325f3079dbc8e9ab70684afcd5a.tar.gz bcm5719-llvm-96e5698741779325f3079dbc8e9ab70684afcd5a.zip | |
Rename CustomLowerResults to CustomLowerNode, since
it is used both when a result is illegal and when an
operand is illegal.
llvm-svn: 72658
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
4 files changed, 8 insertions, 9 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 57e03b05fdd..c3c1beabd5f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -772,7 +772,7 @@ void DAGTypeLegalizer::ExpandFloatResult(SDNode *N, unsigned ResNo) {    Lo = Hi = SDValue();    // See if the target wants to custom expand this node. -  if (CustomLowerResults(N, N->getValueType(ResNo), true)) +  if (CustomLowerNode(N, N->getValueType(ResNo), true))      return;    switch (N->getOpcode()) { diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index b2581131f9f..eb9342cc8b8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -35,7 +35,7 @@ void DAGTypeLegalizer::PromoteIntegerResult(SDNode *N, unsigned ResNo) {    SDValue Res = SDValue();    // See if the target wants to custom expand this node. -  if (CustomLowerResults(N, N->getValueType(ResNo), true)) +  if (CustomLowerNode(N, N->getValueType(ResNo), true))      return;    switch (N->getOpcode()) { @@ -654,7 +654,7 @@ bool DAGTypeLegalizer::PromoteIntegerOperand(SDNode *N, unsigned OpNo) {    DEBUG(cerr << "Promote integer operand: "; N->dump(&DAG); cerr << "\n");    SDValue Res = SDValue(); -  if (CustomLowerResults(N, N->getOperand(OpNo).getValueType(), false)) +  if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))      return false;    switch (N->getOpcode()) { @@ -968,7 +968,7 @@ void DAGTypeLegalizer::ExpandIntegerResult(SDNode *N, unsigned ResNo) {    Lo = Hi = SDValue();    // See if the target wants to custom expand this node. -  if (CustomLowerResults(N, N->getValueType(ResNo), true)) +  if (CustomLowerNode(N, N->getValueType(ResNo), true))      return;    switch (N->getOpcode()) { @@ -2006,7 +2006,7 @@ bool DAGTypeLegalizer::ExpandIntegerOperand(SDNode *N, unsigned OpNo) {    DEBUG(cerr << "Expand integer operand: "; N->dump(&DAG); cerr << "\n");    SDValue Res = SDValue(); -  if (CustomLowerResults(N, N->getOperand(OpNo).getValueType(), false)) +  if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false))      return false;    switch (N->getOpcode()) { diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index f699fd6e307..00d71e1a4fe 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -867,7 +867,7 @@ SDValue DAGTypeLegalizer::CreateStackStoreLoad(SDValue Op,    return DAG.getLoad(DestVT, dl, Store, StackPtr, NULL, 0);  } -/// CustomLowerResults - Replace the node's results with custom code provided +/// CustomLowerNode - Replace the node's results with custom code provided  /// by the target and return "true", or do nothing and return "false".  /// The last parameter is FALSE if we are dealing with a node with legal  /// result types and illegal operand. The second parameter denotes the type of @@ -875,8 +875,7 @@ SDValue DAGTypeLegalizer::CreateStackStoreLoad(SDValue Op,  /// The last parameter being TRUE means we are dealing with a  /// node with illegal result types. The second parameter denotes the type of  /// illegal ResNo in that case. -bool DAGTypeLegalizer::CustomLowerResults(SDNode *N, MVT VT, -                                          bool LegalizeResult) { +bool DAGTypeLegalizer::CustomLowerNode(SDNode *N, MVT VT, bool LegalizeResult) {    // See if the target wants to custom lower this node.    if (TLI.getOperationAction(N->getOpcode(), VT) != TargetLowering::Custom)      return false; diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h index 382e270b214..75c89246a31 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h @@ -186,7 +186,7 @@ private:    SDValue BitConvertToInteger(SDValue Op);    SDValue BitConvertVectorToIntegerVector(SDValue Op);    SDValue CreateStackStoreLoad(SDValue Op, MVT DestVT); -  bool CustomLowerResults(SDNode *N, MVT VT, bool LegalizeResult); +  bool CustomLowerNode(SDNode *N, MVT VT, bool LegalizeResult);    SDValue GetVectorElementPointer(SDValue VecPtr, MVT EltVT, SDValue Index);    SDValue JoinIntegers(SDValue Lo, SDValue Hi);    SDValue LibCallify(RTLIB::Libcall LC, SDNode *N, bool isSigned); | 

