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

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 27 19:29:01 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

MachineFunction.h updated: 1.10 -> 1.11

---
Log message:

Add note about state that should be removed when time permits


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.10 llvm/include/llvm/CodeGen/MachineFunction.h:1.11
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.10	Sun Oct 27 19:11:58 2002
+++ llvm/include/llvm/CodeGen/MachineFunction.h	Sun Oct 27 19:27:51 2002
@@ -1,4 +1,4 @@
-//===-- llvm/CodeGen/MachineFunction.h ---------------------------*- C++ -*--=//
+//===-- llvm/CodeGen/MachineFunction.h --------------------------*- C++ -*-===//
 // 
 // Collect native machine code information for a method.  This allows
 // target-specific information about the generated code to be stored with each
@@ -27,6 +27,8 @@
   hash_set<const Constant*> constantsForConstPool;
   hash_map<const Value*, int> offsets;
   const         Function* method;
+
+  // FIXME: State should be held elsewhere...
   unsigned	staticStackSize;
   unsigned	automaticVarsSize;
   unsigned	regSpillsSize;
@@ -39,8 +41,8 @@
   bool          automaticVarsAreaFrozen;
   
 public:
-  /*ctor*/      MachineFunction(const Function* function,
-                                const TargetMachine& target);
+  MachineFunction(const Function* function,
+                  const TargetMachine& target);
   
   // The next two methods are used to construct and to retrieve
   // the MachineFunction object for the given method.
@@ -54,6 +56,14 @@
   static void destruct(const Function *F);
   static MachineFunction& get(const Function* function);
   
+
+
+  //===--------------------------------------------------------------------===//
+  //
+  // FIXME: Most of the following state should be moved out to passes that use
+  // it, instead of being put here.
+  //
+
   //
   // Accessors for global information about generated code for a method.
   // 





More information about the llvm-commits mailing list