Skip to content
Snippets Groups Projects
Commit 1661358d authored by Chris Lattner's avatar Chris Lattner
Browse files

Add a new pass for code generators to use

llvm-svn: 14562
parent 1d6b5f38
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,15 @@ namespace llvm { ...@@ -23,7 +23,15 @@ namespace llvm {
class FunctionPass; class FunctionPass;
class PassInfo; class PassInfo;
class TargetMachine; class TargetMachine;
/// createUnreachableBlockEliminationPass - The LLVM code generator does not
/// work well with unreachable basic blocks (what live ranges make sense for a
/// block that cannot be reached?). As such, a code generator should either
/// not instruction select unreachable blocks, or it can run this pass as it's
/// last LLVM modifying pass to clean up blocks that are not reachable from
/// the entry block.
FunctionPass *createUnreachableBlockEliminationPass();
/// MachineFunctionPrinter pass - This pass prints out the machine function to /// MachineFunctionPrinter pass - This pass prints out the machine function to
/// standard error, as a debugging tool. /// standard error, as a debugging tool.
FunctionPass *createMachineFunctionPrinterPass(std::ostream *OS, FunctionPass *createMachineFunctionPrinterPass(std::ostream *OS,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment