xref: /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCTargetDesc.h (revision 62ff619dcc3540659a319be71c9a489f1659e14a)
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 <memory>
19 
20 namespace llvm {
21 class Target;
22 class MCAsmBackend;
23 class MCCodeEmitter;
24 class MCContext;
25 class MCInstrInfo;
26 class MCObjectTargetWriter;
27 class MCRegisterInfo;
28 class MCSubtargetInfo;
29 class MCTargetOptions;
30 
31 enum AMDGPUDwarfFlavour : unsigned { Wave64 = 0, Wave32 = 1 };
32 
33 MCRegisterInfo *createGCNMCRegisterInfo(AMDGPUDwarfFlavour DwarfFlavour);
34 
35 MCCodeEmitter *createSIMCCodeEmitter(const MCInstrInfo &MCII,
36                                      const MCRegisterInfo &MRI,
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, uint8_t ABIVersion);
47 } // End llvm namespace
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_SCHED_ENUM
55 #include "AMDGPUGenInstrInfo.inc"
56 
57 #define GET_SUBTARGETINFO_ENUM
58 #include "AMDGPUGenSubtargetInfo.inc"
59 
60 #endif
61