1 | //===-- AMDGPUMCTargetDesc.h - AMDGPU Target Descriptions -----*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | // |
9 | /// \file |
10 | /// Provides AMDGPU specific target descriptions. |
11 | // |
12 | //===----------------------------------------------------------------------===// |
13 | // |
14 | |
15 | #ifndef LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H |
16 | #define LLVM_LIB_TARGET_AMDGPU_MCTARGETDESC_AMDGPUMCTARGETDESC_H |
17 | |
18 | #include <cstdint> |
19 | #include <memory> |
20 | |
21 | namespace llvm { |
22 | class Target; |
23 | class MCAsmBackend; |
24 | class MCCodeEmitter; |
25 | class MCContext; |
26 | class MCInstrInfo; |
27 | class MCObjectTargetWriter; |
28 | class MCRegisterInfo; |
29 | class MCSubtargetInfo; |
30 | class MCTargetOptions; |
31 | |
32 | enum AMDGPUDwarfFlavour : unsigned { Wave64 = 0, Wave32 = 1 }; |
33 | |
34 | MCRegisterInfo *createGCNMCRegisterInfo(AMDGPUDwarfFlavour DwarfFlavour); |
35 | |
36 | MCCodeEmitter *createAMDGPUMCCodeEmitter(const MCInstrInfo &MCII, |
37 | MCContext &Ctx); |
38 | |
39 | MCAsmBackend *createAMDGPUAsmBackend(const Target &T, |
40 | const MCSubtargetInfo &STI, |
41 | const MCRegisterInfo &MRI, |
42 | const MCTargetOptions &Options); |
43 | |
44 | std::unique_ptr<MCObjectTargetWriter> |
45 | createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI, |
46 | bool HasRelocationAddend); |
47 | } // namespace llvm |
48 | |
49 | #define GET_REGINFO_ENUM |
50 | #include "AMDGPUGenRegisterInfo.inc" |
51 | |
52 | #define GET_INSTRINFO_ENUM |
53 | #define GET_INSTRINFO_OPERAND_ENUM |
54 | #define GET_INSTRINFO_MC_HELPER_DECLS |
55 | #include "AMDGPUGenInstrInfo.inc" |
56 | |
57 | #define GET_SUBTARGETINFO_ENUM |
58 | #include "AMDGPUGenSubtargetInfo.inc" |
59 | |
60 | #endif |
61 | |