LLVM API Documentation

IA64TargetMachine.h

Go to the documentation of this file.
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/TargetData.h"
00019 #include "llvm/Target/TargetFrameInfo.h"
00020 #include "llvm/PassManager.h"
00021 #include "IA64InstrInfo.h"
00022 #include "IA64ISelLowering.h"
00023 
00024 namespace llvm {
00025 
00026 class IA64TargetMachine : public TargetMachine {
00027   const TargetData DataLayout;       // Calculates type size & alignment
00028   IA64InstrInfo      InstrInfo;
00029   TargetFrameInfo    FrameInfo;
00030   //IA64JITInfo      JITInfo;
00031   IA64TargetLowering TLInfo;
00032 public:
00033   IA64TargetMachine(const Module &M, const std::string &FS);
00034 
00035   virtual const IA64InstrInfo      *getInstrInfo() const { return &InstrInfo; }
00036   virtual const TargetFrameInfo    *getFrameInfo() const { return &FrameInfo; }
00037   virtual       IA64TargetLowering *getTargetLowering() const { 
00038     return const_cast<IA64TargetLowering*>(&TLInfo);
00039   }
00040   virtual const MRegisterInfo    *getRegisterInfo() const {
00041     return &InstrInfo.getRegisterInfo();
00042   }
00043   virtual const TargetData       *getTargetData() const { return &DataLayout; }
00044 
00045   virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
00046                                    CodeGenFileType FileType, bool Fast);
00047 
00048   static unsigned getModuleMatchQuality(const Module &M);
00049   static unsigned compileTimeMatchQuality(void);
00050 
00051 };
00052 } // End llvm namespace
00053 
00054 #endif
00055 
00056