LLVM  15.0.0git
AMDGPUMCTargetDesc.h
Go to the documentation of this file.
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  MCContext &Ctx);
37 
38 MCAsmBackend *createAMDGPUAsmBackend(const Target &T,
39  const MCSubtargetInfo &STI,
40  const MCRegisterInfo &MRI,
41  const MCTargetOptions &Options);
42 
43 std::unique_ptr<MCObjectTargetWriter>
44 createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI,
45  bool HasRelocationAddend, uint8_t ABIVersion);
46 } // End llvm namespace
47 
48 #define GET_REGINFO_ENUM
49 #include "AMDGPUGenRegisterInfo.inc"
50 
51 #define GET_INSTRINFO_ENUM
52 #define GET_INSTRINFO_OPERAND_ENUM
53 #include "AMDGPUGenInstrInfo.inc"
54 
55 #define GET_SUBTARGETINFO_ENUM
56 #include "AMDGPUGenSubtargetInfo.inc"
57 
58 #endif
llvm::createSIMCCodeEmitter
MCCodeEmitter * createSIMCCodeEmitter(const MCInstrInfo &MCII, MCContext &Ctx)
Definition: SIMCCodeEmitter.cpp:89
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:17
llvm::Wave32
@ Wave32
Definition: AMDGPUMCTargetDesc.h:31
llvm::Wave64
@ Wave64
Definition: AMDGPUMCTargetDesc.h:31
llvm::AMDGPU::Exp::Target
Target
Definition: SIDefines.h:858
T
#define T
Definition: Mips16ISelLowering.cpp:341
Options
const char LLVMTargetMachineRef LLVMPassBuilderOptionsRef Options
Definition: PassBuilderBindings.cpp:48
llvm::AMDGPUDwarfFlavour
AMDGPUDwarfFlavour
Definition: AMDGPUMCTargetDesc.h:31
MRI
unsigned const MachineRegisterInfo * MRI
Definition: AArch64AdvSIMDScalarPass.cpp:105
llvm::createGCNMCRegisterInfo
MCRegisterInfo * createGCNMCRegisterInfo(AMDGPUDwarfFlavour DwarfFlavour)
Definition: AMDGPUMCTargetDesc.cpp:70
llvm::createAMDGPUELFObjectWriter
std::unique_ptr< MCObjectTargetWriter > createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI, bool HasRelocationAddend, uint8_t ABIVersion)
Definition: AMDGPUELFObjectWriter.cpp:98
llvm::createAMDGPUAsmBackend
MCAsmBackend * createAMDGPUAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Definition: AMDGPUAsmBackend.cpp:261