[llvm-commits] CVS: llvm/include/llvm/CodeGen/Passes.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 2 00:45:02 PDT 2004


Changes in directory llvm/include/llvm/CodeGen:

Passes.h updated: 1.15 -> 1.16

---
Log message:

Add a new pass for code generators to use


---
Diffs of the changes:  (+9 -1)

Index: llvm/include/llvm/CodeGen/Passes.h
diff -u llvm/include/llvm/CodeGen/Passes.h:1.15 llvm/include/llvm/CodeGen/Passes.h:1.16
--- llvm/include/llvm/CodeGen/Passes.h:1.15	Sat May  8 11:14:02 2004
+++ llvm/include/llvm/CodeGen/Passes.h	Fri Jul  2 00:44:13 2004
@@ -23,7 +23,15 @@
   class FunctionPass;
   class PassInfo;
   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
   /// standard error, as a debugging tool.
   FunctionPass *createMachineFunctionPrinterPass(std::ostream *OS,





More information about the llvm-commits mailing list