blob: 883efe2c1bab1ee54e16aa2026e19d736d25dbee [file] [log] [blame]
Misha Brukmanbc9ccf62005-02-04 20:25:52 +00001//===-- AlphaTargetMachine.h - Define TargetMachine for Alpha ---*- C++ -*-===//
Misha Brukman4633f1c2005-04-21 23:13:11 +00002//
Andrew Lenharth304d0f32005-01-22 23:41:55 +00003// The LLVM Compiler Infrastructure
4//
5// This file was developed by the LLVM research group and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
Misha Brukman4633f1c2005-04-21 23:13:11 +00007//
Andrew Lenharth304d0f32005-01-22 23:41:55 +00008//===----------------------------------------------------------------------===//
Misha Brukman4633f1c2005-04-21 23:13:11 +00009//
Andrew Lenharth304d0f32005-01-22 23:41:55 +000010// This file declares the Alpha-specific subclass of TargetMachine.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef ALPHA_TARGETMACHINE_H
15#define ALPHA_TARGETMACHINE_H
16
17#include "llvm/Target/TargetMachine.h"
18#include "llvm/Target/TargetFrameInfo.h"
19#include "llvm/PassManager.h"
20#include "AlphaInstrInfo.h"
Andrew Lenharth304d0f32005-01-22 23:41:55 +000021
22namespace llvm {
23
24class GlobalValue;
25class IntrinsicLowering;
26
27class AlphaTargetMachine : public TargetMachine {
28 AlphaInstrInfo InstrInfo;
29 TargetFrameInfo FrameInfo;
Andrew Lenharth304d0f32005-01-22 23:41:55 +000030
31public:
32 AlphaTargetMachine(const Module &M, IntrinsicLowering *IL);
Misha Brukman4633f1c2005-04-21 23:13:11 +000033
34 virtual const AlphaInstrInfo *getInstrInfo() const { return &InstrInfo; }
Andrew Lenharth304d0f32005-01-22 23:41:55 +000035 virtual const TargetFrameInfo *getFrameInfo() const { return &FrameInfo; }
36 virtual const MRegisterInfo *getRegisterInfo() const {
37 return &InstrInfo.getRegisterInfo();
38 }
Misha Brukman4633f1c2005-04-21 23:13:11 +000039
Andrew Lenharth304d0f32005-01-22 23:41:55 +000040 virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
Andrew Lenharth2f401632005-02-01 20:35:11 +000041
42 static unsigned getModuleMatchQuality(const Module &M);
Andrew Lenharth304d0f32005-01-22 23:41:55 +000043};
44
45} // end namespace llvm
46
47#endif