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

Chris Lattner lattner at cs.uiuc.edu
Mon Apr 10 18:09:38 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineFunction.h updated: 1.57 -> 1.58
---
Log message:

Add helper methods.


---
Diffs of the changes:  (+2 -0)

 MachineFunction.h |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.57 llvm/include/llvm/CodeGen/MachineFunction.h:1.58
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.57	Wed Jan  4 07:44:43 2006
+++ llvm/include/llvm/CodeGen/MachineFunction.h	Mon Apr 10 20:09:25 2006
@@ -192,8 +192,10 @@
   typedef std::vector<unsigned>::const_iterator liveout_iterator;
   livein_iterator livein_begin() const { return LiveIns.begin(); }
   livein_iterator livein_end()   const { return LiveIns.end(); }
+  bool            livein_empty() const { return LiveIns.empty(); }
   liveout_iterator liveout_begin() const { return LiveOuts.begin(); }
   liveout_iterator liveout_end()   const { return LiveOuts.end(); }
+  bool             liveout_empty() const { return LiveOuts.empty(); }
 
   /// getBlockNumbered - MachineBasicBlocks are automatically numbered when they
   /// are inserted into the machine function.  The block number for a machine






More information about the llvm-commits mailing list