void printConstantPool(MachineConstantPool *MCP, const TargetData &TD);
bool runOnMachineFunction(MachineFunction &F);
+
+ bool doInitialization(Module &M);
+ bool doFinalization(Module &M);
+
};
}
O << (int)MO.getImmedValue();
return;
case MachineOperand::MO_PCRelativeDisp:
- O << "<" << MO.getVRegValue()->getName() << ">";
+ O << MO.getVRegValue()->getName();
return;
case MachineOperand::MO_GlobalAddress:
- O << "<" << MO.getGlobal()->getName() << ">";
+ O << MO.getGlobal()->getName();
return;
case MachineOperand::MO_ExternalSymbol:
- O << "<" << MO.getSymbolName() << ">";
+ O << MO.getSymbolName();
return;
default:
O << "<unknown op ty>"; return;
switch (Desc.TSFlags & X86II::FormMask) {
case X86II::Pseudo:
+ // Print pseudo-instructions as comments; either they should have been
+ // turned into real instructions by now, or they don't need to be
+ // seen by the assembler (e.g., IMPLICIT_USEs.)
+ O << "# ";
if (Opcode == X86::PHI) {
printOp(O, MI->getOperand(0), RI);
O << " = phi ";
O << "\tUNKNOWN FORM:\t\t-"; MI->print(O, TM); break;
}
}
+
+bool Printer::doInitialization(Module &M)
+{
+ // Tell gas we are outputting Intel syntax (not AT&T syntax) assembly,
+ // with no % decorations on register names.
+ O << "\t.intel_syntax noprefix\n";
+ return false; // success
+}
+
+bool Printer::doFinalization(Module &M)
+{
+ // FIXME: We may have to print out constants here.
+ return false; // success
+}
+
void printConstantPool(MachineConstantPool *MCP, const TargetData &TD);
bool runOnMachineFunction(MachineFunction &F);
+
+ bool doInitialization(Module &M);
+ bool doFinalization(Module &M);
+
};
}
O << (int)MO.getImmedValue();
return;
case MachineOperand::MO_PCRelativeDisp:
- O << "<" << MO.getVRegValue()->getName() << ">";
+ O << MO.getVRegValue()->getName();
return;
case MachineOperand::MO_GlobalAddress:
- O << "<" << MO.getGlobal()->getName() << ">";
+ O << MO.getGlobal()->getName();
return;
case MachineOperand::MO_ExternalSymbol:
- O << "<" << MO.getSymbolName() << ">";
+ O << MO.getSymbolName();
return;
default:
O << "<unknown op ty>"; return;
switch (Desc.TSFlags & X86II::FormMask) {
case X86II::Pseudo:
+ // Print pseudo-instructions as comments; either they should have been
+ // turned into real instructions by now, or they don't need to be
+ // seen by the assembler (e.g., IMPLICIT_USEs.)
+ O << "# ";
if (Opcode == X86::PHI) {
printOp(O, MI->getOperand(0), RI);
O << " = phi ";
O << "\tUNKNOWN FORM:\t\t-"; MI->print(O, TM); break;
}
}
+
+bool Printer::doInitialization(Module &M)
+{
+ // Tell gas we are outputting Intel syntax (not AT&T syntax) assembly,
+ // with no % decorations on register names.
+ O << "\t.intel_syntax noprefix\n";
+ return false; // success
+}
+
+bool Printer::doFinalization(Module &M)
+{
+ // FIXME: We may have to print out constants here.
+ return false; // success
+}
+