/// method to print assembly for each instruction.
///
bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- setupMachineFunction(MF);
+ SetupMachineFunction(MF);
O << "\n\n";
// Print out constants referenced by the function
// Print out labels for the function.
SwitchSection("\t.section .text", MF.getFunction());
- emitAlignment(4);
+ EmitAlignment(4);
O << "\t.globl " << CurrentFnName << "\n";
O << "\t.ent " << CurrentFnName << "\n";
SwitchSection("\t.section .rodata", 0);
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
- emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
+ EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i
<< ":\t\t\t\t\t" << CommentString << *CP[i] << "\n";
- emitGlobalConstant(CP[i]);
+ EmitGlobalConstant(CP[i]);
}
}
abort();
}
- emitAlignment(Align);
+ EmitAlignment(Align);
O << "\t.type " << name << ",@object\n";
O << "\t.size " << name << "," << Size << "\n";
O << name << ":\t\t\t\t# ";
O << " = ";
WriteAsOperand(O, C, false, false, &M);
O << "\n";
- emitGlobalConstant(C);
+ EmitGlobalConstant(C);
}
}
// FIXME: would be nice to have rodata (no 'w') when appropriate?
SwitchSection("\n\t.section .data, \"aw\", \"progbits\"\n", 0);
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
- emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
+ EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i
<< ":\t\t\t\t\t" << CommentString << *CP[i] << "\n";
- emitGlobalConstant(CP[i]);
+ EmitGlobalConstant(CP[i]);
}
}
abort();
}
- emitAlignment(Align);
+ EmitAlignment(Align);
O << "\t.type " << name << ",@object\n";
O << "\t.size " << name << "," << Size << "\n";
O << name << ":\t\t\t\t// ";
O << " = ";
WriteAsOperand(O, C, false, false, &M);
O << "\n";
- emitGlobalConstant(C);
+ EmitGlobalConstant(C);
}
}
/// method to print assembly for each instruction.
///
bool IA64AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- setupMachineFunction(MF);
+ SetupMachineFunction(MF);
O << "\n\n";
// Print out constants referenced by the function
// Print out labels for the function.
SwitchSection("\n\t.section .text, \"ax\", \"progbits\"\n", MF.getFunction());
// ^^ means "Allocated instruXions in mem, initialized"
- emitAlignment(5);
+ EmitAlignment(5);
O << "\t.global\t" << CurrentFnName << "\n";
O << "\t.type\t" << CurrentFnName << ", @function\n";
O << CurrentFnName << ":\n";
/// method to print assembly for each instruction.
///
bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- setupMachineFunction(MF);
+ SetupMachineFunction(MF);
O << "\n\n";
// Print out constants referenced by the function
// Print out labels for the function.
const Function *F = MF.getFunction();
SwitchSection(".text", F);
- emitAlignment(4, F);
+ EmitAlignment(4, F);
if (!F->hasInternalLinkage())
O << "\t.globl\t" << CurrentFnName << "\n";
O << CurrentFnName << ":\n";
// FIXME: force doubles to be naturally aligned. We should handle this
// more correctly in the future.
if (CP[i]->getType() == Type::DoubleTy)
- emitAlignment(3);
+ EmitAlignment(3);
else
- emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
+ EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << PrivateGlobalPrefix << "CPI" << FunctionNumber << '_' << i
<< ":\t\t\t\t\t" << CommentString << *CP[i] << '\n';
- emitGlobalConstant(CP[i]);
+ EmitGlobalConstant(CP[i]);
}
}
abort();
}
- emitAlignment(Align, I);
+ EmitAlignment(Align, I);
O << name << ":\t\t\t\t; '" << I->getName() << "'\n";
- emitGlobalConstant(C);
+ EmitGlobalConstant(C);
}
}
if (PICEnabled) {
O << ".data\n";
O << ".section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32\n";
- emitAlignment(2);
+ EmitAlignment(2);
O << "L" << *i << "$stub:\n";
O << "\t.indirect_symbol " << *i << "\n";
O << "\tmflr r0\n";
O << "\t.long dyld_stub_binding_helper\n";
} else {
O << "\t.section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16\n";
- emitAlignment(4);
+ EmitAlignment(4);
O << "L" << *i << "$stub:\n";
O << "\t.indirect_symbol " << *i << "\n";
O << "\tlis r11,ha16(L" << *i << "$lazy_ptr)\n";
<< "\n";
O << PrivateGlobalPrefix << "CPI" << FunctionNumber << '_' << i
<< ":\t\t\t\t\t;" << *CP[i] << '\n';
- emitGlobalConstant(CP[i]);
+ EmitGlobalConstant(CP[i]);
}
}
O << "\t.csect _global.rw_c[RW],3\n";
}
O << Name << ":\n";
- emitGlobalConstant(C);
+ EmitGlobalConstant(C);
}
// Output labels for globals
/// method to print assembly for each instruction.
///
bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- setupMachineFunction(MF);
+ SetupMachineFunction(MF);
O << "\n\n";
// Print out constants referenced by the function
// Print out labels for the function.
SwitchSection("\t.text\n", MF.getFunction());
- emitAlignment(4); // FIXME: This should be parameterized somewhere.
+ EmitAlignment(4); // FIXME: This should be parameterized somewhere.
O << "\t.globl\t" << CurrentFnName << "\n";
if (!forCygwin && !forDarwin)
O << "\t.type\t" << CurrentFnName << ", @function\n";
// FIXME: force doubles to be naturally aligned. We should handle this
// more correctly in the future.
if (CP[i]->getType() == Type::DoubleTy)
- emitAlignment(3);
+ EmitAlignment(3);
else
- emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
+ EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i
<< ":\t\t\t\t\t" << CommentString << *CP[i] << "\n";
- emitGlobalConstant(CP[i]);
+ EmitGlobalConstant(CP[i]);
}
}
break;
}
- emitAlignment(Align);
+ EmitAlignment(Align);
if (!forCygwin && !forDarwin) {
O << "\t.type " << name << ",@object\n";
O << "\t.size " << name << "," << Size << "\n";
O << " = ";
WriteAsOperand(O, C, false, false, &M);
O << "\n";
- emitGlobalConstant(C);
+ EmitGlobalConstant(C);
}
}
/// method to print assembly for each instruction.
///
bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
- setupMachineFunction(MF);
+ SetupMachineFunction(MF);
O << "\n\n";
// Print out constants referenced by the function
// Print out labels for the function.
SwitchSection("\t.text\n", MF.getFunction());
- emitAlignment(4);
+ EmitAlignment(4);
O << "\t.globl\t" << CurrentFnName << "\n";
if (!forCygwin && !forDarwin)
O << "\t.type\t" << CurrentFnName << ", @function\n";