LLVM API Documentation
00001 //===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by Duraid Madina and is distributed under the 00006 // University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file declares the IA64 specific subclass of TargetMachine. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef IA64TARGETMACHINE_H 00015 #define IA64TARGETMACHINE_H 00016 00017 #include "llvm/Target/TargetMachine.h" 00018 #include "llvm/Target/TargetFrameInfo.h" 00019 #include "llvm/PassManager.h" 00020 #include "IA64InstrInfo.h" 00021 #include "IA64ISelLowering.h" 00022 00023 namespace llvm { 00024 00025 class IA64TargetMachine : public TargetMachine { 00026 IA64InstrInfo InstrInfo; 00027 TargetFrameInfo FrameInfo; 00028 //IA64JITInfo JITInfo; 00029 IA64TargetLowering TLInfo; 00030 public: 00031 IA64TargetMachine(const Module &M, const std::string &FS); 00032 00033 virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; } 00034 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; } 00035 virtual IA64TargetLowering *getTargetLowering() { return &TLInfo; } 00036 virtual const MRegisterInfo *getRegisterInfo() const { 00037 return &InstrInfo.getRegisterInfo(); 00038 } 00039 00040 virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out, 00041 CodeGenFileType FileType, bool Fast); 00042 00043 static unsigned getModuleMatchQuality(const Module &M); 00044 static unsigned compileTimeMatchQuality(void); 00045 00046 }; 00047 } // End llvm namespace 00048 00049 #endif 00050 00051