llvm.org GIT mirror llvm / 9c6342d
Add note about state that should be removed when time permits git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4315 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 18 years ago
1 changed file(s) with 13 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
None //===-- llvm/CodeGen/MachineFunction.h ---------------------------*- C++ -*--=//
0 //===-- llvm/CodeGen/MachineFunction.h --------------------------*- C++ -*-===//
11 //
22 // Collect native machine code information for a method. This allows
33 // target-specific information about the generated code to be stored with each
2626 hash_set constantsForConstPool;
2727 hash_map offsets;
2828 const Function* method;
29
30 // FIXME: State should be held elsewhere...
2931 unsigned staticStackSize;
3032 unsigned automaticVarsSize;
3133 unsigned regSpillsSize;
3840 bool automaticVarsAreaFrozen;
3941
4042 public:
41 /*ctor*/ MachineFunction(const Function* function,
42 const TargetMachine& target);
43 MachineFunction(const Function* function,
44 const TargetMachine& target);
4345
4446 // The next two methods are used to construct and to retrieve
4547 // the MachineFunction object for the given method.
5355 static void destruct(const Function *F);
5456 static MachineFunction& get(const Function* function);
5557
58
59
60 //===--------------------------------------------------------------------===//
61 //
62 // FIXME: Most of the following state should be moved out to passes that use
63 // it, instead of being put here.
64 //
65
5666 //
5767 // Accessors for global information about generated code for a method.
5868 //