Adjust files for move of mapping info stuff into the Sparc directory

llvm-svn: 7802
This commit is contained in:
Chris Lattner 2003-08-13 02:38:16 +00:00
parent bb9be9ddbc
commit ec611ae0d0
5 changed files with 20 additions and 19 deletions

View File

@ -35,10 +35,9 @@
//
//===--------------------------------------------------------------------===//
#include "llvm/Reoptimizer/Mapping/MappingInfo.h"
#include "MappingInfo.h"
#include "llvm/Pass.h"
#include "llvm/Module.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineCodeForInstruction.h"

View File

@ -1,12 +1,12 @@
//===- llvm/Reoptimizer/Mapping/MappingInfo.h ------------------*- C++ -*--=////
//===- lib/Target/Sparc/MappingInfo.h ---------------------------*- C++ -*-===//
//
// Data structures to support the Reoptimizer's Instruction-to-MachineInstr
// mapping information gatherer.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
#define LLVM_REOPTIMIZER_MAPPING_MAPPINGINFO_H
#ifndef MAPPINGINFO_H
#define MAPPINGINFO_H
#include <iosfwd>
#include <vector>
@ -16,8 +16,7 @@ class Pass;
Pass *getMappingInfoCollector(std::ostream &out);
class MappingInfo {
class byteVector : public std::vector <unsigned char> {
public:
struct byteVector : public std::vector <unsigned char> {
void dumpAssembly (std::ostream &Out);
};
std::string comment;
@ -26,11 +25,11 @@ class MappingInfo {
byteVector bytes;
public:
void outByte (unsigned char b) { bytes.push_back (b); }
MappingInfo (std::string _comment, std::string _symbolPrefix,
unsigned _functionNumber) : comment(_comment),
symbolPrefix(_symbolPrefix), functionNumber(_functionNumber) { }
MappingInfo (std::string Comment, std::string SymbolPrefix,
unsigned FunctionNumber) : comment(Comment),
symbolPrefix(SymbolPrefix), functionNumber(FunctionNumber) {}
void dumpAssembly (std::ostream &Out);
unsigned char *getBytes (unsigned int &length) {
unsigned char *getBytes (unsigned &length) {
length = bytes.size(); return &bytes[0];
}
};

View File

@ -6,22 +6,21 @@
//===----------------------------------------------------------------------===//
#include "SparcInternals.h"
#include "llvm/Target/TargetMachineImpls.h"
#include "MappingInfo.h"
#include "llvm/Function.h"
#include "llvm/PassManager.h"
#include "llvm/Assembly/PrintModulePass.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionInfo.h"
#include "llvm/CodeGen/PreSelection.h"
#include "llvm/CodeGen/StackSlots.h"
#include "llvm/CodeGen/PeepholeOpts.h"
#include "llvm/CodeGen/InstrSelection.h"
#include "llvm/CodeGen/InstrScheduling.h"
#include "llvm/CodeGen/RegisterAllocation.h"
#include "llvm/CodeGen/MachineCodeForInstruction.h"
#include "llvm/Reoptimizer/Mapping/MappingInfo.h"
#include "llvm/Target/TargetMachineImpls.h"
#include "Support/CommandLine.h"
#include "llvm/Assembly/PrintModulePass.h"
static const unsigned ImplicitRegUseList[] = { 0 }; /* not used yet */
// Build the MachineInstruction Description Array...

View File

@ -650,8 +650,13 @@ struct UltraSparcOptInfo: public TargetOptInfo {
/// instructions. This pass enables the usage of the JIT register allocator(s).
Pass *createAddRegNumToValuesPass();
/// createStackSlotsPass - External interface to stack-slots pass that enters 2
/// empty slots at the top of each function stack
Pass *createStackSlotsPass(const TargetMachine &TM);
//---------------------------------------------------------------------------
// class UltraSparcMachine
// class UltraSparc
//
// Purpose:
// Primary interface to machine description for the UltraSPARC.

View File

@ -6,8 +6,7 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/CodeGen/StackSlots.h"
#include "llvm/Target/TargetMachine.h"
#include "SparcInternals.h"
#include "llvm/Constant.h"
#include "llvm/Function.h"
#include "llvm/DerivedTypes.h"