1 //===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by Duraid Madina and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the IA64 specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef IA64TARGETMACHINE_H
15 #define IA64TARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetFrameInfo.h"
19 #include "llvm/PassManager.h"
20 #include "IA64InstrInfo.h"
21 #include "IA64ISelLowering.h"
24 class IntrinsicLowering;
26 class IA64TargetMachine : public TargetMachine {
27 IA64InstrInfo InstrInfo;
28 TargetFrameInfo FrameInfo;
29 //IA64JITInfo JITInfo;
30 IA64TargetLowering TLInfo;
32 IA64TargetMachine(const Module &M, IntrinsicLowering *IL,
33 const std::string &FS);
35 virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; }
36 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
37 virtual IA64TargetLowering *getTargetLowering() { return &TLInfo; }
38 virtual const MRegisterInfo *getRegisterInfo() const {
39 return &InstrInfo.getRegisterInfo();
42 virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
43 CodeGenFileType FileType, bool Fast);
45 static unsigned getModuleMatchQuality(const Module &M);
46 static unsigned compileTimeMatchQuality(void);
49 } // End llvm namespace