1 //===-- IA64TargetMachine.h - Define TargetMachine for IA64 ---*- C++ -*---===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file declares the IA64 specific subclass of TargetMachine.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TARGET_IA64TARGETMACHINE_H
15 #define LLVM_TARGET_IA64TARGETMACHINE_H
17 #include "llvm/Target/TargetMachine.h"
18 #include "llvm/Target/TargetData.h"
19 #include "llvm/Target/TargetFrameInfo.h"
20 #include "IA64InstrInfo.h"
21 #include "IA64ISelLowering.h"
25 class IA64TargetMachine : public LLVMTargetMachine {
26 const TargetData DataLayout; // Calculates type size & alignment
27 IA64InstrInfo InstrInfo;
28 TargetFrameInfo FrameInfo;
29 //IA64JITInfo JITInfo;
30 IA64TargetLowering TLInfo;
33 virtual const TargetAsmInfo *createTargetAsmInfo() const;
36 IA64TargetMachine(const Module &M, const std::string &FS);
38 virtual const IA64InstrInfo *getInstrInfo() const { return &InstrInfo; }
39 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
40 virtual IA64TargetLowering *getTargetLowering() const {
41 return const_cast<IA64TargetLowering*>(&TLInfo);
43 virtual const TargetRegisterInfo *getRegisterInfo() const {
44 return &InstrInfo.getRegisterInfo();
46 virtual const TargetData *getTargetData() const { return &DataLayout; }
48 static unsigned getModuleMatchQuality(const Module &M);
50 // Pass Pipeline Configuration
51 virtual bool addInstSelector(FunctionPassManager &PM, bool Fast);
52 virtual bool addPreEmitPass(FunctionPassManager &PM, bool Fast);
53 virtual bool addAssemblyEmitter(FunctionPassManager &PM, bool Fast,
56 } // End llvm namespace