Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 1 | //===-- AMDGPUMCTargetDesc.h - AMDGPU Target Descriptions -----*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | /// \file |
| 11 | /// \brief Provides AMDGPU specific target descriptions. |
| 12 | // |
| 13 | //===----------------------------------------------------------------------===// |
| 14 | // |
| 15 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 16 | #ifndef LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCTARGETDESC_H |
| 17 | #define LLVM_LIB_TARGET_R600_MCTARGETDESC_AMDGPUMCTARGETDESC_H |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 18 | |
Reid Kleckner | 294fa7a | 2015-03-09 20:23:14 +0000 | [diff] [blame] | 19 | #include "llvm/Support/DataTypes.h" |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 20 | #include "llvm/ADT/StringRef.h" |
| 21 | |
| 22 | namespace llvm { |
| 23 | class MCAsmBackend; |
| 24 | class MCCodeEmitter; |
| 25 | class MCContext; |
| 26 | class MCInstrInfo; |
Tom Stellard | 9991659 | 2013-04-15 17:51:21 +0000 | [diff] [blame] | 27 | class MCObjectWriter; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 28 | class MCRegisterInfo; |
| 29 | class MCSubtargetInfo; |
| 30 | class Target; |
Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 31 | class Triple; |
Rafael Espindola | 5560a4c | 2015-04-14 22:14:34 +0000 | [diff] [blame] | 32 | class raw_pwrite_stream; |
Tom Stellard | 9991659 | 2013-04-15 17:51:21 +0000 | [diff] [blame] | 33 | class raw_ostream; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 34 | |
| 35 | extern Target TheAMDGPUTarget; |
Tom Stellard | 49f8bfd | 2015-01-06 18:00:21 +0000 | [diff] [blame] | 36 | extern Target TheGCNTarget; |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 37 | |
| 38 | MCCodeEmitter *createR600MCCodeEmitter(const MCInstrInfo &MCII, |
Tom Stellard | edade94 | 2013-05-17 15:23:12 +0000 | [diff] [blame] | 39 | const MCRegisterInfo &MRI, |
Eric Christopher | 0169e42 | 2015-03-10 22:03:14 +0000 | [diff] [blame] | 40 | MCContext &Ctx); |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 41 | |
| 42 | MCCodeEmitter *createSIMCCodeEmitter(const MCInstrInfo &MCII, |
| 43 | const MCRegisterInfo &MRI, |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 44 | MCContext &Ctx); |
| 45 | |
Bill Wendling | 58e2d3d | 2013-09-09 02:37:14 +0000 | [diff] [blame] | 46 | MCAsmBackend *createAMDGPUAsmBackend(const Target &T, const MCRegisterInfo &MRI, |
Daniel Sanders | 50f1723 | 2015-09-15 16:17:27 +0000 | [diff] [blame] | 47 | const Triple &TT, StringRef CPU); |
Tom Stellard | 9991659 | 2013-04-15 17:51:21 +0000 | [diff] [blame] | 48 | |
Tom Stellard | f0296ce | 2015-06-22 21:03:54 +0000 | [diff] [blame] | 49 | MCObjectWriter *createAMDGPUELFObjectWriter(bool Is64Bit, |
| 50 | raw_pwrite_stream &OS); |
Alexander Kornienko | f00654e | 2015-06-23 09:49:53 +0000 | [diff] [blame] | 51 | } // End llvm namespace |
Tom Stellard | 75aadc2 | 2012-12-11 21:25:42 +0000 | [diff] [blame] | 52 | |
| 53 | #define GET_REGINFO_ENUM |
| 54 | #include "AMDGPUGenRegisterInfo.inc" |
| 55 | |
| 56 | #define GET_INSTRINFO_ENUM |
| 57 | #include "AMDGPUGenInstrInfo.inc" |
| 58 | |
| 59 | #define GET_SUBTARGETINFO_ENUM |
| 60 | #include "AMDGPUGenSubtargetInfo.inc" |
| 61 | |
Benjamin Kramer | a7c40ef | 2014-08-13 16:26:38 +0000 | [diff] [blame] | 62 | #endif |