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

Vikram Adve vadve at cs.uiuc.edu
Sat Sep 28 12:06:05 PDT 2002


Changes in directory llvm/include/llvm/CodeGen:

LiveRangeInfo.h updated: 1.12 -> 1.13

---
Log message:

Added a couple of helper methods for live range construction.


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/LiveRangeInfo.h
diff -u llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.12 llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.13
--- llvm/include/llvm/CodeGen/LiveRangeInfo.h:1.12	Wed Jul 24 16:21:28 2002
+++ llvm/include/llvm/CodeGen/LiveRangeInfo.h	Sat Sep 28 12:05:43 2002
@@ -58,13 +58,21 @@
 
   //------------ Private methods (see LiveRangeInfo.cpp for description)-------
 
-  void unionAndUpdateLRs(LiveRange *L1, LiveRange *L2);
+  LiveRange* createNewLiveRange         (const Value* Def,
+                                         bool isCC = false);
 
-  void addInterference(const Instruction *Inst, const ValueSet *LVSet);
+  LiveRange* createOrAddToLiveRange     (const Value* Def,
+                                         bool isCC = false);
+
+  void unionAndUpdateLRs                (LiveRange *L1,
+                                         LiveRange *L2);
+
+  void addInterference                  (const Instruction *Inst,
+                                         const ValueSet *LVSet);
   
-  void suggestRegs4CallRets();
+  void suggestRegs4CallRets             ();
 
-  const Function *getMethod() { return Meth; }
+  const Function *getMethod             () const { return Meth; }
 
 public:
   
@@ -79,15 +87,6 @@
   // Main entry point for live range construction
   //
   void constructLiveRanges();
-
-  // This method is used to add a live range created elsewhere (e.g.,
-  // in machine specific code) to the common live range map
-  //
-  inline void addLRToMap(const Value *Val, LiveRange *LR) {
-    assert(Val && LR && "Val/LR is NULL!\n");
-    assert((!LiveRangeMap[Val]) && "LR already set in map");
-    LiveRangeMap[Val] = LR;
-  }
   
   // return the common live range map for this method
   //





More information about the llvm-commits mailing list