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
|
2018-05-01 23:54:18 +08:00
|
|
|
/// Provides AMDGPU specific target descriptions.
|
2012-12-12 05:25:42 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
|
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
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
#include <memory>
|
|
|
|
|
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
|
|
|
|
2016-10-10 07:00:34 +08:00
|
|
|
Target &getTheAMDGPUTarget();
|
|
|
|
Target &getTheGCNTarget();
|
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);
|
|
|
|
|
2018-01-03 16:53:05 +08:00
|
|
|
MCAsmBackend *createAMDGPUAsmBackend(const Target &T,
|
|
|
|
const MCSubtargetInfo &STI,
|
|
|
|
const MCRegisterInfo &MRI,
|
2016-07-26 01:18:28 +08:00
|
|
|
const MCTargetOptions &Options);
|
2013-04-16 01:51:21 +08:00
|
|
|
|
2017-10-11 00:28:07 +08:00
|
|
|
std::unique_ptr<MCObjectWriter>
|
|
|
|
createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI,
|
|
|
|
bool HasRelocationAddend, 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"
|
2017-04-11 01:58:06 +08:00
|
|
|
#undef GET_REGINFO_ENUM
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
#define GET_INSTRINFO_ENUM
|
2017-04-11 01:58:06 +08:00
|
|
|
#define GET_INSTRINFO_OPERAND_ENUM
|
2017-12-13 15:26:17 +08:00
|
|
|
#define GET_INSTRINFO_SCHED_ENUM
|
2012-12-12 05:25:42 +08:00
|
|
|
#include "AMDGPUGenInstrInfo.inc"
|
2017-12-13 15:26:17 +08:00
|
|
|
#undef GET_INSTRINFO_SCHED_ENUM
|
2017-04-11 01:58:06 +08:00
|
|
|
#undef GET_INSTRINFO_OPERAND_ENUM
|
|
|
|
#undef GET_INSTRINFO_ENUM
|
|
|
|
|
2012-12-12 05:25:42 +08:00
|
|
|
|
|
|
|
#define GET_SUBTARGETINFO_ENUM
|
|
|
|
#include "AMDGPUGenSubtargetInfo.inc"
|
2017-04-11 01:58:06 +08:00
|
|
|
#undef GET_SUBTARGETINFO_ENUM
|
2012-12-12 05:25:42 +08:00
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#endif
|