2012-12-11 21:25:42 +00:00
|
|
|
//===-- AMDGPUTargetMachine.h - AMDGPU TargetMachine Interface --*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
/// \brief The AMDGPU TargetMachine interface definition for hw codgen targets.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#ifndef LLVM_LIB_TARGET_R600_AMDGPUTARGETMACHINE_H
|
|
|
|
#define LLVM_LIB_TARGET_R600_AMDGPUTARGETMACHINE_H
|
2012-12-11 21:25:42 +00:00
|
|
|
|
2013-02-06 17:32:29 +00:00
|
|
|
#include "AMDGPUFrameLowering.h"
|
2012-12-11 21:25:42 +00:00
|
|
|
#include "AMDGPUInstrInfo.h"
|
2014-06-23 18:00:31 +00:00
|
|
|
#include "AMDGPUIntrinsicInfo.h"
|
2012-12-11 21:25:42 +00:00
|
|
|
#include "AMDGPUSubtarget.h"
|
|
|
|
#include "R600ISelLowering.h"
|
2013-01-02 11:36:10 +00:00
|
|
|
#include "llvm/IR/DataLayout.h"
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class AMDGPUTargetMachine : public LLVMTargetMachine {
|
2014-11-13 09:26:31 +00:00
|
|
|
TargetLoweringObjectFile *TLOF;
|
2012-12-11 21:25:42 +00:00
|
|
|
AMDGPUSubtarget Subtarget;
|
2014-08-04 17:37:43 +00:00
|
|
|
AMDGPUIntrinsicInfo IntrinsicInfo;
|
2012-12-11 21:25:42 +00:00
|
|
|
|
|
|
|
public:
|
2013-05-23 03:28:39 +00:00
|
|
|
AMDGPUTargetMachine(const Target &T, StringRef TT, StringRef FS,
|
|
|
|
StringRef CPU, TargetOptions Options, Reloc::Model RM,
|
|
|
|
CodeModel::Model CM, CodeGenOpt::Level OL);
|
|
|
|
~AMDGPUTargetMachine();
|
2014-04-29 07:57:24 +00:00
|
|
|
const AMDGPUSubtarget *getSubtargetImpl() const override {
|
|
|
|
return &Subtarget;
|
|
|
|
}
|
2014-09-03 11:41:21 +00:00
|
|
|
const AMDGPUIntrinsicInfo *getIntrinsicInfo() const override {
|
|
|
|
return &IntrinsicInfo;
|
|
|
|
}
|
2014-04-29 07:57:24 +00:00
|
|
|
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
2013-07-27 00:01:07 +00:00
|
|
|
|
|
|
|
/// \brief Register R600 analysis passes with a pass manager.
|
2014-04-29 07:57:24 +00:00
|
|
|
void addAnalysisPasses(PassManagerBase &PM) override;
|
2014-11-13 09:26:31 +00:00
|
|
|
TargetLoweringObjectFile *getObjFileLowering() const override {
|
|
|
|
return TLOF;
|
|
|
|
}
|
2012-12-11 21:25:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // End namespace llvm
|
|
|
|
|
2014-08-13 16:26:38 +00:00
|
|
|
#endif
|