O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_'
<< CPI << ':';
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " constant ";
WriteTypeSymbolic(O, CPE.getType(), MF->getFunction()->getParent());
}
void AsmPrinter::EOL(const std::string &Comment) const {
if (VerboseAsm && !Comment.empty()) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< ' '
<< Comment;
void AsmPrinter::EOL(const char* Comment) const {
if (VerboseAsm && *Comment) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< ' '
<< Comment;
if (TAI->getData64bitsDirective(AddrSpace)) {
O << TAI->getData64bitsDirective(AddrSpace) << i;
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " double " << Val;
}
O << '\n';
} else if (TD->isBigEndian()) {
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(i >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant word of double " << Val;
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(i);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant word of double " << Val;
}
} else {
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(i);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant word of double " << Val;
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(i >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant word of double " << Val;
}
O << TAI->getData32bitsDirective(AddrSpace)
<< CFP->getValueAPF().bitcastToAPInt().getZExtValue();
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " float " << Val;
}
O << '\n';
if (TD->isBigEndian()) {
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[1]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant halfword of x86_fp80 ~"
<< DoubleVal.convertToDouble();
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 48);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 16);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant halfword";
}
} else {
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant halfword of x86_fp80 ~"
<< DoubleVal.convertToDouble();
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 16);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[0] >> 48);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next halfword";
}
O << '\n';
O << TAI->getData16bitsDirective(AddrSpace) << uint16_t(p[1]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant halfword";
}
if (TD->isBigEndian()) {
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[0] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant word of ppc_fp128";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[0]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next word";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[1] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next word";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[1]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant word";
}
} else {
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[1]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant word of ppc_fp128";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[1] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next word";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[0]);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " next word";
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << uint32_t(p[0] >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant word";
}
else if (TD->isBigEndian()) {
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(Val >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant half of i64 " << Val;
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(Val);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant half of i64 " << Val;
}
} else {
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(Val);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " least significant half of i64 " << Val;
}
O << '\n';
O << TAI->getData32bitsDirective(AddrSpace) << unsigned(Val >> 32);
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString()
<< " most significant half of i64 " << Val;
}
if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
SmallString<40> S;
CI->getValue().toStringUnsigned(S, 16);
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " 0x" << S.c_str();
}
}
/// that is an implicit def.
void AsmPrinter::printImplicitDef(const MachineInstr *MI) const {
if (VerboseAsm) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " implicit-def: "
<< TRI->getAsmName(MI->getOperand(0).getReg()) << '\n';
}
if (printComment) {
if (const BasicBlock *BB = MBB->getBasicBlock())
if (BB->hasName()) {
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << ' ';
WriteAsOperand(O, BB, /*PrintType=*/false);
}
DebugLocTuple DLT = MF->getDebugLocTuple(MI.getDebugLoc());
- // Print source line info
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ // Print source line info.
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " SrcLine ";
if (DLT.CompileUnit->hasInitializer()) {
Constant *Name = DLT.CompileUnit->getInitializer();
DebugLocTuple DLT = MF->getDebugLocTuple(MI.getDebugLoc());
// Print source line info
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " SrcLine ";
if (DLT.CompileUnit->hasInitializer()) {
Constant *Name = DLT.CompileUnit->getInitializer();
if (loop) {
// Print a newline after bb# annotation.
O << "\n";
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " Loop Depth " << loop->getLoopDepth()
<< '\n';
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
MachineBasicBlock *Header = loop->getHeader();
assert(Header && "No header for loop");
if (loop->empty()) {
O << '\n';
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << " Inner Loop";
}
assert(Header && "No header for loop");
O << '\n';
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << Indent(CurLoop->getLoopDepth()-1)
<< " Inside Loop BB" << getFunctionNumber() << "_"
<< Header->getNumber() << " Depth " << CurLoop->getLoopDepth();
assert(Header && "No header for loop");
O << '\n';
- O.PadToColumn(TAI->getCommentColumn(), 1);
+ O.PadToColumn(TAI->getCommentColumn());
O << TAI->getCommentString() << Indent((*cl)->getLoopDepth()-1)
<< " Child Loop BB" << getFunctionNumber() << "_"