From: Chris Lattner Date: Sun, 27 Jun 2004 18:50:30 +0000 (+0000) Subject: Add a map of MachineCodeForInstruction objects to MachineFunctionInfo X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4aa5b2affbbd99113c83b7e9543ba4423235a919;p=oota-llvm.git Add a map of MachineCodeForInstruction objects to MachineFunctionInfo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14436 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineFunctionInfo.h b/include/llvm/CodeGen/MachineFunctionInfo.h index 1d3c668a6ca..8afdc719e22 100644 --- a/include/llvm/CodeGen/MachineFunctionInfo.h +++ b/include/llvm/CodeGen/MachineFunctionInfo.h @@ -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 constantsForConstPool; hash_map offsets; + unsigned staticStackSize; unsigned automaticVarsSize; unsigned regSpillsSize; @@ -41,6 +45,8 @@ class MachineFunctionInfo { MachineFunction &MF; public: + hash_map MCFIEntries; + MachineFunctionInfo(MachineFunction &mf) : MF(mf) { staticStackSize = automaticVarsSize = regSpillsSize = 0; maxOptionalArgsSize = maxOptionalNumArgs = currentTmpValuesSize = 0; diff --git a/lib/Target/SparcV9/MachineFunctionInfo.h b/lib/Target/SparcV9/MachineFunctionInfo.h index 1d3c668a6ca..8afdc719e22 100644 --- a/lib/Target/SparcV9/MachineFunctionInfo.h +++ b/lib/Target/SparcV9/MachineFunctionInfo.h @@ -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 constantsForConstPool; hash_map offsets; + unsigned staticStackSize; unsigned automaticVarsSize; unsigned regSpillsSize; @@ -41,6 +45,8 @@ class MachineFunctionInfo { MachineFunction &MF; public: + hash_map MCFIEntries; + MachineFunctionInfo(MachineFunction &mf) : MF(mf) { staticStackSize = automaticVarsSize = regSpillsSize = 0; maxOptionalArgsSize = maxOptionalNumArgs = currentTmpValuesSize = 0;