1 //===-- AMDGPUTargetMachine.h - AMDGPU TargetMachine Interface --*- 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 //===----------------------------------------------------------------------===//
11 /// \brief The AMDGPU TargetMachine interface definition for hw codgen targets.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_LIB_TARGET_R600_AMDGPUTARGETMACHINE_H
16 #define LLVM_LIB_TARGET_R600_AMDGPUTARGETMACHINE_H
18 #include "AMDGPUFrameLowering.h"
19 #include "AMDGPUInstrInfo.h"
20 #include "AMDGPUIntrinsicInfo.h"
21 #include "AMDGPUSubtarget.h"
22 #include "R600ISelLowering.h"
23 #include "llvm/IR/DataLayout.h"
27 class AMDGPUTargetMachine : public LLVMTargetMachine {
28 AMDGPUSubtarget Subtarget;
29 AMDGPUIntrinsicInfo IntrinsicInfo;
32 AMDGPUTargetMachine(const Target &T, StringRef TT, StringRef FS,
33 StringRef CPU, TargetOptions Options, Reloc::Model RM,
34 CodeModel::Model CM, CodeGenOpt::Level OL);
35 ~AMDGPUTargetMachine();
36 const AMDGPUSubtarget *getSubtargetImpl() const override {
39 const AMDGPUIntrinsicInfo *getIntrinsicInfo() const override {
40 return &IntrinsicInfo;
42 TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
44 /// \brief Register R600 analysis passes with a pass manager.
45 void addAnalysisPasses(PassManagerBase &PM) override;
48 } // End namespace llvm