BitVector getPristineRegs(const MachineFunction &MF) const;
/// Used by the MachineFunction printer to print information about
- /// stack objects.
+ /// stack objects. Implemented in MachineFunction.cpp.
void print(const MachineFunction &MF, raw_ostream &OS) const;
/// dump - Print the function to stderr.
}
void MachineFrameInfo::print(const MachineFunction &MF, raw_ostream &OS) const{
- OS << "MF name: " << MF.getName() << "\n";
- if (Objects.empty()) {
- OS << "No stack objects.\n";
- return;
- }
+ if (Objects.empty()) return;
+
const TargetFrameLowering *FI = MF.getSubtarget().getFrameLowering();
int ValOffset = (FI ? FI->getOffsetOfLocalArea() : 0);
- OS << "NumFixedObjects=" << static_cast<unsigned>(NumFixedObjects) << "\n";
-
OS << "Frame Objects:\n";
for (unsigned i = 0, e = Objects.size(); i != e; ++i) {
OS << " fi#" << (int)(i-NumFixedObjects) << ": ";
if (SO.StackID != 0)
- OS << "stackid=" << static_cast<unsigned>(SO.StackID) << ", ";
+ OS << "id=" << static_cast<unsigned>(SO.StackID) << ' ';
if (SO.Size == ~0ULL) {
OS << "dead\n";
continue;
}
- OS << "isSplitSplot=" << static_cast<bool>(SO.isSpillSlot) << ", ";
if (SO.Size == 0)
OS << "variable sized";
else
OS << ", align=" << SO.Alignment.value();
if (i < NumFixedObjects)
- OS << ", fixed objects:";
+ OS << ", fixed";
if (i < NumFixedObjects || SO.SPOffset != -1) {
int64_t Off = SO.SPOffset - ValOffset;
OS << ", at location [SP";