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

Chris Lattner lattner at cs.uiuc.edu
Sun Jun 27 13:52:01 PDT 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineFunctionInfo.h updated: 1.4 -> 1.5

---
Log message:

Add a map of MachineCodeForInstruction objects to MachineFunctionInfo


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

Index: llvm/include/llvm/CodeGen/MachineFunctionInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.4 llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.5
--- llvm/include/llvm/CodeGen/MachineFunctionInfo.h:1.4	Sat Dec 20 03:15:01 2003
+++ llvm/include/llvm/CodeGen/MachineFunctionInfo.h	Sun Jun 27 13:50:30 2004
@@ -9,25 +9,29 @@
 // 
 // This class keeps track of information about the stack frame and about the
 // per-function constant pool.
+//
+// FIXME: This class is completely SparcV9 specific.  Do not use it for future
+// targets.  This file will be eliminated in future versions of LLVM.
 //   
 //===----------------------------------------------------------------------===//
 
 #ifndef LLVM_CODEGEN_MACHINEFUNCTIONINFO_H
 #define LLVM_CODEGEN_MACHINEFUNCTIONINFO_H
 
+#include "llvm/CodeGen/MachineCodeForInstruction.h"
 #include "Support/HashExtras.h"
 #include "Support/hash_set"
 
 namespace llvm {
 
 class MachineFunction;
-class Value;
 class Constant;
 class Type;
 
 class MachineFunctionInfo {
   hash_set<const Constant*> constantsForConstPool;
   hash_map<const Value*, int> offsets;
+
   unsigned	staticStackSize;
   unsigned	automaticVarsSize;
   unsigned	regSpillsSize;
@@ -41,6 +45,8 @@
 
   MachineFunction &MF;
 public:
+  hash_map<const Instruction*, MachineCodeForInstruction> MCFIEntries;
+
   MachineFunctionInfo(MachineFunction &mf) : MF(mf) {
     staticStackSize = automaticVarsSize = regSpillsSize = 0;
     maxOptionalArgsSize = maxOptionalNumArgs = currentTmpValuesSize = 0;





More information about the llvm-commits mailing list