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.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCTARGETDESC_H
|
|
|
|
#define LLVM_LIB_TARGET_R600_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
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
class Target;
|
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.
This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API
change. Thanks go to Pavel Labath for fixing LLDB for me.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247692
2015-09-15 22:08:28 +08:00
|
|
|
class TargetTuple;
|
2015-04-15 06:14:34 +08:00
|
|
|
class raw_pwrite_stream;
|
2013-04-16 01:51:21 +08:00
|
|
|
class raw_ostream;
|
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,
|
Re-commit r247683: Replace Triple with a new TargetTuple in MCTargetDesc/* and related. NFC.
Summary:
This is the first patch in the series to migrate Triple's (which are ambiguous)
to TargetTuple's (which aren't).
For the moment, TargetTuple simply passes all requests to the Triple object it
holds. Once it has replaced Triple, it will start to implement the interface in
a more suitable way.
This change makes some changes to the public C++ API. In particular,
InitMCSubtargetInfo(), createMCRelocationInfo(), and createMCSymbolizer()
now take TargetTuples instead of Triples. The other public C++ API's have
been left as-is for the moment to reduce patch size.
This commit also contains a trivial patch to clang to account for the C++ API
change. Thanks go to Pavel Labath for fixing LLDB for me.
Reviewers: rengolin
Subscribers: jyknight, dschuff, arsenm, rampitec, danalbert, srhines, javed.absar, dsanders, echristo, emaste, jholewinski, tberghammer, ted, jfb, llvm-commits, rengolin
Differential Revision: http://reviews.llvm.org/D10969
llvm-svn: 247692
2015-09-15 22:08:28 +08:00
|
|
|
const TargetTuple &TT, StringRef CPU);
|
2013-04-16 01:51:21 +08:00
|
|
|
|
2015-06-23 05:03:54 +08:00
|
|
|
MCObjectWriter *createAMDGPUELFObjectWriter(bool Is64Bit,
|
|
|
|
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
|