31 const std::string Banner;
34 MachineFunctionPrinterPass(
raw_ostream &os,
const std::string &banner)
37 const char *getPassName()
const override {
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);
char & MachineFunctionPrinterPassID
MachineFunctionPrinterPass - This pass prints out MachineInstr's.
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void print(raw_ostream &OS, SlotIndexes *=nullptr) const
print - Print out the MachineFunction in a format suitable for debugging to the specified stream...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
Represent the analysis usage information of a pass.
MachineFunctionPass * createMachineFunctionPrinterPass(raw_ostream &OS, const std::string &Banner="")
MachineFunctionPrinter pass - This pass prints out the machine function to the given stream as a debu...
raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
void setPreservesAll()
Set by analyses that do not transform their input at all.
INITIALIZE_PASS(MachineFunctionPrinterPass,"machineinstr-printer","Machine Function Printer", false, false) namespace llvm
This class implements an extremely fast bulk output stream that can only output to a stream...