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-05-14 01:58:56 +00:00
|
|
|
virtual const IA64RegisterInfo *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
|
2008-03-11 22:29:46 +00:00
|
|
|
virtual bool addInstSelector(PassManagerBase &PM, bool Fast);
|
|
|
|
virtual bool addPreEmitPass(PassManagerBase &PM, bool Fast);
|
|
|
|
virtual bool addAssemblyEmitter(PassManagerBase &PM, bool Fast,
|
2006-09-04 04:14:57 +00:00
|
|
|
std::ostream &Out);
|
2005-03-17 18:17:03 +00:00
|
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|