diff options
| author | Dan Gohman <gohman@apple.com> | 2009-07-25 01:43:01 +0000 | 
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-07-25 01:43:01 +0000 | 
| commit | 1ddf98ad8e950401bf013d628764accf1d5e8ee0 (patch) | |
| tree | 02fbbd6f121d8480690c7a1b043c2783bf24f75b /llvm/lib/CodeGen/SelectionDAG | |
| parent | 3b484b928daea1b80ad8f79dd7bef2445cf883e4 (diff) | |
| download | bcm5719-llvm-1ddf98ad8e950401bf013d628764accf1d5e8ee0.tar.gz bcm5719-llvm-1ddf98ad8e950401bf013d628764accf1d5e8ee0.zip | |
Convert a few more things to use raw_ostream.
llvm-svn: 77039
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp | 28 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 25 | 
2 files changed, 27 insertions, 26 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp index 1bf5b0b3701..5957e3a503b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp @@ -43,15 +43,15 @@ static RTLIB::Libcall GetFPLibCall(MVT VT,  //===----------------------------------------------------------------------===//  void DAGTypeLegalizer::SoftenFloatResult(SDNode *N, unsigned ResNo) { -  DEBUG(cerr << "Soften float result " << ResNo << ": "; N->dump(&DAG); -        cerr << "\n"); +  DEBUG(errs() << "Soften float result " << ResNo << ": "; N->dump(&DAG); +        errs() << "\n");    SDValue R = SDValue();    switch (N->getOpcode()) {    default:  #ifndef NDEBUG -    cerr << "SoftenFloatResult #" << ResNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "SoftenFloatResult #" << ResNo << ": "; +    N->dump(&DAG); errs() << "\n";  #endif      llvm_unreachable("Do not know how to soften the result of this operator!"); @@ -531,15 +531,15 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_XINT_TO_FP(SDNode *N) {  //===----------------------------------------------------------------------===//  bool DAGTypeLegalizer::SoftenFloatOperand(SDNode *N, unsigned OpNo) { -  DEBUG(cerr << "Soften float operand " << OpNo << ": "; N->dump(&DAG); -        cerr << "\n"); +  DEBUG(errs() << "Soften float operand " << OpNo << ": "; N->dump(&DAG); +        errs() << "\n");    SDValue Res = SDValue();    switch (N->getOpcode()) {    default:  #ifndef NDEBUG -    cerr << "SoftenFloatOperand Op #" << OpNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "SoftenFloatOperand Op #" << OpNo << ": "; +    N->dump(&DAG); errs() << "\n";  #endif      llvm_unreachable("Do not know how to soften this operator's operand!"); @@ -767,7 +767,7 @@ SDValue DAGTypeLegalizer::SoftenFloatOp_STORE(SDNode *N, unsigned OpNo) {  /// have invalid operands or may have other results that need promotion, we just  /// know that (at least) one result needs expansion.  void DAGTypeLegalizer::ExpandFloatResult(SDNode *N, unsigned ResNo) { -  DEBUG(cerr << "Expand float result: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Expand float result: "; N->dump(&DAG); errs() << "\n");    SDValue Lo, Hi;    Lo = Hi = SDValue(); @@ -778,8 +778,8 @@ void DAGTypeLegalizer::ExpandFloatResult(SDNode *N, unsigned ResNo) {    switch (N->getOpcode()) {    default:  #ifndef NDEBUG -    cerr << "ExpandFloatResult #" << ResNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "ExpandFloatResult #" << ResNo << ": "; +    N->dump(&DAG); errs() << "\n";  #endif      llvm_unreachable("Do not know how to expand the result of this operator!"); @@ -1166,7 +1166,7 @@ void DAGTypeLegalizer::ExpandFloatRes_XINT_TO_FP(SDNode *N, SDValue &Lo,  /// types of the node are known to be legal, but other operands of the node may  /// need promotion or expansion as well as the specified one.  bool DAGTypeLegalizer::ExpandFloatOperand(SDNode *N, unsigned OpNo) { -  DEBUG(cerr << "Expand float operand: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Expand float operand: "; N->dump(&DAG); errs() << "\n");    SDValue Res = SDValue();    if (TLI.getOperationAction(N->getOpcode(), N->getOperand(OpNo).getValueType()) @@ -1177,8 +1177,8 @@ bool DAGTypeLegalizer::ExpandFloatOperand(SDNode *N, unsigned OpNo) {      switch (N->getOpcode()) {      default:    #ifndef NDEBUG -      cerr << "ExpandFloatOperand Op #" << OpNo << ": "; -      N->dump(&DAG); cerr << "\n"; +      errs() << "ExpandFloatOperand Op #" << OpNo << ": "; +      N->dump(&DAG); errs() << "\n";    #endif        llvm_unreachable("Do not know how to expand this operator's operand!"); diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index dd66f7bb852..5be07066418 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -21,6 +21,7 @@  #include "LegalizeTypes.h"  #include "llvm/CodeGen/PseudoSourceValue.h"  #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/raw_ostream.h"  using namespace llvm;  //===----------------------------------------------------------------------===// @@ -32,7 +33,7 @@ using namespace llvm;  /// may also have invalid operands or may have other results that need  /// expansion, we just know that (at least) one result needs promotion.  void DAGTypeLegalizer::PromoteIntegerResult(SDNode *N, unsigned ResNo) { -  DEBUG(cerr << "Promote integer result: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Promote integer result: "; N->dump(&DAG); errs() << "\n");    SDValue Res = SDValue();    // See if the target wants to custom expand this node. @@ -42,8 +43,8 @@ void DAGTypeLegalizer::PromoteIntegerResult(SDNode *N, unsigned ResNo) {    switch (N->getOpcode()) {    default:  #ifndef NDEBUG -    cerr << "PromoteIntegerResult #" << ResNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "PromoteIntegerResult #" << ResNo << ": "; +    N->dump(&DAG); errs() << "\n";  #endif      llvm_unreachable("Do not know how to promote this operator!");    case ISD::AssertSext:  Res = PromoteIntRes_AssertSext(N); break; @@ -598,7 +599,7 @@ SDValue DAGTypeLegalizer::PromoteIntRes_XMULO(SDNode *N, unsigned ResNo) {  /// result types of the node are known to be legal, but other operands of the  /// node may need promotion or expansion as well as the specified one.  bool DAGTypeLegalizer::PromoteIntegerOperand(SDNode *N, unsigned OpNo) { -  DEBUG(cerr << "Promote integer operand: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Promote integer operand: "; N->dump(&DAG); errs() << "\n");    SDValue Res = SDValue();    if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false)) @@ -607,8 +608,8 @@ bool DAGTypeLegalizer::PromoteIntegerOperand(SDNode *N, unsigned OpNo) {    switch (N->getOpcode()) {      default:    #ifndef NDEBUG -    cerr << "PromoteIntegerOperand Op #" << OpNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "PromoteIntegerOperand Op #" << OpNo << ": "; +    N->dump(&DAG); errs() << "\n";    #endif      llvm_unreachable("Do not know how to promote this operator's operand!"); @@ -909,7 +910,7 @@ SDValue DAGTypeLegalizer::PromoteIntOp_ZERO_EXTEND(SDNode *N) {  /// have invalid operands or may have other results that need promotion, we just  /// know that (at least) one result needs expansion.  void DAGTypeLegalizer::ExpandIntegerResult(SDNode *N, unsigned ResNo) { -  DEBUG(cerr << "Expand integer result: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Expand integer result: "; N->dump(&DAG); errs() << "\n");    SDValue Lo, Hi;    Lo = Hi = SDValue(); @@ -920,8 +921,8 @@ void DAGTypeLegalizer::ExpandIntegerResult(SDNode *N, unsigned ResNo) {    switch (N->getOpcode()) {    default:  #ifndef NDEBUG -    cerr << "ExpandIntegerResult #" << ResNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "ExpandIntegerResult #" << ResNo << ": "; +    N->dump(&DAG); errs() << "\n";  #endif      llvm_unreachable("Do not know how to expand the result of this operator!"); @@ -1956,7 +1957,7 @@ void DAGTypeLegalizer::ExpandIntRes_ZERO_EXTEND(SDNode *N,  /// result types of the node are known to be legal, but other operands of the  /// node may need promotion or expansion as well as the specified one.  bool DAGTypeLegalizer::ExpandIntegerOperand(SDNode *N, unsigned OpNo) { -  DEBUG(cerr << "Expand integer operand: "; N->dump(&DAG); cerr << "\n"); +  DEBUG(errs() << "Expand integer operand: "; N->dump(&DAG); errs() << "\n");    SDValue Res = SDValue();    if (CustomLowerNode(N, N->getOperand(OpNo).getValueType(), false)) @@ -1965,8 +1966,8 @@ bool DAGTypeLegalizer::ExpandIntegerOperand(SDNode *N, unsigned OpNo) {    switch (N->getOpcode()) {    default:    #ifndef NDEBUG -    cerr << "ExpandIntegerOperand Op #" << OpNo << ": "; -    N->dump(&DAG); cerr << "\n"; +    errs() << "ExpandIntegerOperand Op #" << OpNo << ": "; +    N->dump(&DAG); errs() << "\n";    #endif      llvm_unreachable("Do not know how to expand this operator's operand!"); | 

