2005-03-17 18:17:03 +00:00
|
|
|
//===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===//
|
2005-04-21 23:13:11 +00:00
|
|
|
//
|
2005-03-17 18:17:03 +00:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2005-04-21 23:13:11 +00:00
|
|
|
//
|
2005-03-17 18:17:03 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2005-04-21 23:13:11 +00:00
|
|
|
//
|
2005-03-17 18:17:03 +00:00
|
|
|
// This file declares the IA64 specific subclass of TargetMachine.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2006-09-04 04:14:57 +00:00
|
|
|
#ifndef LLVM_TARGET_IA64TARGETMACHINE_H
|
|
|
|
#define LLVM_TARGET_IA64TARGETMACHINE_H
|
2005-03-17 18:17:03 +00:00
|
|
|
|
|
|
|
#include "llvm/Target/TargetMachine.h"
|
2006-05-12 06:33:49 +00:00
|
|
|
#include "llvm/Target/TargetData.h"
|
2005-03-17 18:17:03 +00:00
|
|
|
#include "llvm/Target/TargetFrameInfo.h"
|
|
|
|
#include "IA64InstrInfo.h"
|
2006-03-13 23:20:37 +00:00
|
|
|
#include "IA64ISelLowering.h"
|
2005-03-17 18:17:03 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2006-09-04 04:14:57 +00:00
|
|
|
class IA64TargetMachine : public LLVMTargetMachine {
|
2006-05-03 01:29:57 +00:00
|
|
|
const TargetData DataLayout; // Calculates type size & alignment
|
2006-03-13 23:20:37 +00:00
|
|
|
IA64InstrInfo InstrInfo;
|
|
|
|
TargetFrameInfo FrameInfo;
|
2005-03-17 18:17:03 +00:00
|
|
|
//IA64JITInfo JITInfo;
|
2006-03-13 23:20:37 +00:00
|
|
|
IA64TargetLowering TLInfo;
|
2006-09-07 23:39:26 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual const TargetAsmInfo *createTargetAsmInfo() const;
|
|
|
|
|
2005-03-17 18:17:03 +00:00
|
|
|
public:
|
2006-03-23 05:43:16 +00:00
|
|
|
IA64TargetMachine(const Module &M, const std::string &FS);
|
2005-03-17 18:17:03 +00:00
|
|
|
|
2006-03-13 23:20:37 +00:00
|
|
|
virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; }
|
|
|
|
virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
|
2006-05-12 23:26:11 +00:00
|
|
|
virtual IA64TargetLowering *getTargetLowering() const {
|
|
|
|
return const_cast<IA64TargetLowering*>(&TLInfo);
|
|
|
|
}
|
2008-02-10 18:45:23 +00:00
|
|
|
virtual const TargetRegisterInfo *getRegisterInfo() const {
|
2005-03-17 18:17:03 +00:00
|
|
|
return &InstrInfo.getRegisterInfo();
|
|
|
|
}
|
2006-05-03 01:29:57 +00:00
|
|
|
virtual const TargetData *getTargetData() const { return &DataLayout; }
|
2006-09-07 22:06:40 +00:00
|
|
|
|
2005-03-17 18:17:03 +00:00
|
|
|
static unsigned getModuleMatchQuality(const Module &M);
|
|
|
|
|
2006-09-04 04:14:57 +00:00
|
|
|
// Pass Pipeline Configuration
|
|
|
|
virtual bool addInstSelector(FunctionPassManager &PM, bool Fast);
|
|
|
|
virtual bool addPreEmitPass(FunctionPassManager &PM, bool Fast);
|
|
|
|
virtual bool addAssemblyEmitter(FunctionPassManager &PM, bool Fast,
|
|
|
|
std::ostream &Out);
|
2005-03-17 18:17:03 +00:00
|
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|