31 const std::string Banner;
34 MachineFunctionPrinterPass(
raw_ostream &os,
const std::string &banner)
37 const char *getPassName()
const {
return "MachineFunction Printer"; }
45 OS <<
"# " << Banner <<
":\n";
46 MF.
print(OS, getAnalysisIfAvailable<SlotIndexes>());
56 "Machine Function Printer",
false,
false)
63 const std::string &Banner){
64 return new MachineFunctionPrinterPass(OS, Banner);
void print(raw_ostream &OS, SlotIndexes *=0) const
char & MachineFunctionPrinterPassID
MachineFunctionPrinterPass - This pass prints out MachineInstr's.
ID
LLVM Calling Convention Representation.
INITIALIZE_PASS(MachineFunctionPrinterPass,"print-machineinstrs","Machine Function Printer", false, false) namespace llvm
MachineFunctionPass * createMachineFunctionPrinterPass(raw_ostream &OS, const std::string &Banner="")
raw_ostream & dbgs()
dbgs - Return a circular-buffered debug stream.
virtual void getAnalysisUsage(AnalysisUsage &AU) const