forked from OSchip/llvm-project
parent
655f794964
commit
194ded551c
|
@ -76,7 +76,8 @@ public:
|
||||||
const DIExpression *getExpression() const { return Expression; }
|
const DIExpression *getExpression() const { return Expression; }
|
||||||
friend bool operator==(const Value &, const Value &);
|
friend bool operator==(const Value &, const Value &);
|
||||||
friend bool operator<(const Value &, const Value &);
|
friend bool operator<(const Value &, const Value &);
|
||||||
void dump() const {
|
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||||
|
LLVM_DUMP_METHOD void dump() const {
|
||||||
if (isLocation()) {
|
if (isLocation()) {
|
||||||
llvm::dbgs() << "Loc = { reg=" << Loc.getReg() << " ";
|
llvm::dbgs() << "Loc = { reg=" << Loc.getReg() << " ";
|
||||||
if (Loc.isIndirect())
|
if (Loc.isIndirect())
|
||||||
|
@ -90,6 +91,7 @@ public:
|
||||||
if (Expression)
|
if (Expression)
|
||||||
Expression->dump();
|
Expression->dump();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -150,7 +150,9 @@ private:
|
||||||
/// dominates MBB.
|
/// dominates MBB.
|
||||||
bool dominates(MachineBasicBlock &MBB) const { return UVS.dominates(&MBB); }
|
bool dominates(MachineBasicBlock &MBB) const { return UVS.dominates(&MBB); }
|
||||||
|
|
||||||
void dump() const { MI.dump(); }
|
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||||
|
LLVM_DUMP_METHOD void dump() const { MI.dump(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
bool operator==(const VarLoc &Other) const {
|
bool operator==(const VarLoc &Other) const {
|
||||||
return Var == Other.Var && Loc.Hash == Other.Loc.Hash;
|
return Var == Other.Var && Loc.Hash == Other.Loc.Hash;
|
||||||
|
@ -282,6 +284,7 @@ void LiveDebugValues::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
// Debug Range Extension Implementation
|
// Debug Range Extension Implementation
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
|
void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
|
||||||
const VarLocInMBB &V,
|
const VarLocInMBB &V,
|
||||||
const VarLocMap &VarLocIDs,
|
const VarLocMap &VarLocIDs,
|
||||||
|
@ -300,6 +303,7 @@ void LiveDebugValues::printVarLocInMBB(const MachineFunction &MF,
|
||||||
}
|
}
|
||||||
Out << "\n";
|
Out << "\n";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/// End all previous ranges related to @MI and start a new range from @MI
|
/// End all previous ranges related to @MI and start a new range from @MI
|
||||||
/// if it is a DBG_VALUE instr.
|
/// if it is a DBG_VALUE instr.
|
||||||
|
|
|
@ -61,7 +61,8 @@ namespace {
|
||||||
return GV != nullptr || CP != nullptr || ES != nullptr || JT != -1;
|
return GV != nullptr || CP != nullptr || ES != nullptr || JT != -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dump() {
|
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
|
||||||
|
LLVM_DUMP_METHOD void dump() {
|
||||||
errs() << "MSP430ISelAddressMode " << this << '\n';
|
errs() << "MSP430ISelAddressMode " << this << '\n';
|
||||||
if (BaseType == RegBase && Base.Reg.getNode() != nullptr) {
|
if (BaseType == RegBase && Base.Reg.getNode() != nullptr) {
|
||||||
errs() << "Base.Reg ";
|
errs() << "Base.Reg ";
|
||||||
|
@ -83,6 +84,7 @@ namespace {
|
||||||
} else if (JT != -1)
|
} else if (JT != -1)
|
||||||
errs() << " JT" << JT << " Align" << Align << '\n';
|
errs() << " JT" << JT << " Align" << Align << '\n';
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -304,8 +304,7 @@ bool MergeFunctions::doSanityCheck(std::vector<WeakVH> &Worklist) {
|
||||||
if (Res1 != -Res2) {
|
if (Res1 != -Res2) {
|
||||||
dbgs() << "MERGEFUNC-SANITY: Non-symmetric; triple: " << TripleNumber
|
dbgs() << "MERGEFUNC-SANITY: Non-symmetric; triple: " << TripleNumber
|
||||||
<< "\n";
|
<< "\n";
|
||||||
F1->dump();
|
dbgs() << *F1 << '\n' << *F2 << '\n';
|
||||||
F2->dump();
|
|
||||||
Valid = false;
|
Valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -340,9 +339,7 @@ bool MergeFunctions::doSanityCheck(std::vector<WeakVH> &Worklist) {
|
||||||
<< TripleNumber << "\n";
|
<< TripleNumber << "\n";
|
||||||
dbgs() << "Res1, Res3, Res4: " << Res1 << ", " << Res3 << ", "
|
dbgs() << "Res1, Res3, Res4: " << Res1 << ", " << Res3 << ", "
|
||||||
<< Res4 << "\n";
|
<< Res4 << "\n";
|
||||||
F1->dump();
|
dbgs() << *F1 << '\n' << *F2 << '\n' << *F3 << '\n';
|
||||||
F2->dump();
|
|
||||||
F3->dump();
|
|
||||||
Valid = false;
|
Valid = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue