2012-12-12 05:25:42 +08:00
|
|
|
//===-- AMDGPUMCTargetDesc.h - AMDGPU Target Descriptions -----*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
/// \file
|
|
|
|
/// \brief Provides AMDGPU specific target descriptions.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
|
2016-03-11 16:00:27 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2015-03-10 04:23:14 +08:00
|
|
|
#include "llvm/Support/DataTypes.h"
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
class MCAsmBackend;
|
|
|
|
class MCCodeEmitter;
|
|
|
|
class MCContext;
|
|
|
|
class MCInstrInfo;
|
2013-04-16 01:51:21 +08:00
|
|
|
class MCObjectWriter;
|
2012-12-12 05:25:42 +08:00
|
|
|
class MCRegisterInfo;
|
|
|
|
class MCSubtargetInfo;
|
2016-07-26 01:18:28 +08:00
|
|
|
class MCTargetOptions;
|
2016-08-12 03:18:50 +08:00
|
|
|
class StringRef;
|
2012-12-12 05:25:42 +08:00
|
|
|
class Target;
|
2015-09-16 00:17:27 +08:00
|
|
|
class Triple;
|
2015-04-15 06:14:34 +08:00
|
|
|
class raw_pwrite_stream;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
extern Target TheAMDGPUTarget;
|
2015-01-07 02:00:21 +08:00
|
|
|
extern Target TheGCNTarget;
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
MCCodeEmitter *createR600MCCodeEmitter(const MCInstrInfo &MCII,
|
2013-05-17 23:23:12 +08:00
|
|
|
const MCRegisterInfo &MRI,
|
2015-03-11 06:03:14 +08:00
|
|
|
MCContext &Ctx);
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
MCCodeEmitter *createSIMCCodeEmitter(const MCInstrInfo &MCII,
|
|
|
|
const MCRegisterInfo &MRI,
|
|
|
|
MCContext &Ctx);
|
|
|
|
|
2013-09-09 10:37:14 +08:00
|
|
|
MCAsmBackend *createAMDGPUAsmBackend(const Target &T, const MCRegisterInfo &MRI,
|
2016-07-26 01:18:28 +08:00
|
|
|
const Triple &TT, StringRef CPU,
|
|
|
|
const MCTargetOptions &Options);
|
2013-04-16 01:51:21 +08:00
|
|
|
|
2016-06-14 23:16:35 +08:00
|
|
|
MCObjectWriter *createAMDGPUELFObjectWriter(bool Is64Bit,
|
2016-06-15 04:29:59 +08:00
|
|
|
bool HasRelocationAddend,
|
2015-06-23 05:03:54 +08:00
|
|
|
raw_pwrite_stream &OS);
|
2015-06-23 17:49:53 +08:00
|
|
|
} // End llvm namespace
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
#define GET_REGINFO_ENUM
|
|
|
|
#include "AMDGPUGenRegisterInfo.inc"
|
|
|
|
|
|
|
|
#define GET_INSTRINFO_ENUM
|
|
|
|
#include "AMDGPUGenInstrInfo.inc"
|
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "AMDGPUGenSubtargetInfo.inc"
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#endif
|