LLVM  14.0.0git
AMDGPUAsmUtils.h
Go to the documentation of this file.
1 //===-- AMDGPUAsmUtils.h - AsmParser/InstPrinter common ---------*- 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 #ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
10 #define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDGPUASMUTILS_H
11 
12 #include "SIDefines.h"
13 
14 namespace llvm {
15 
16 class StringLiteral;
17 
18 namespace AMDGPU {
19 
20 namespace SendMsg { // Symbolic names for the sendmsg(...) syntax.
21 
22 extern const char *const IdSymbolic[ID_GAPS_LAST_];
23 extern const char *const OpSysSymbolic[OP_SYS_LAST_];
24 extern const char *const OpGsSymbolic[OP_GS_LAST_];
25 
26 } // namespace SendMsg
27 
28 namespace Hwreg { // Symbolic names for the hwreg(...) syntax.
29 
30 extern const char* const IdSymbolic[];
31 
32 } // namespace Hwreg
33 
34 namespace MTBUFFormat {
35 
36 extern StringLiteral const DfmtSymbolic[];
37 extern StringLiteral const NfmtSymbolicGFX10[];
38 extern StringLiteral const NfmtSymbolicSICI[];
39 extern StringLiteral const NfmtSymbolicVI[];
40 extern StringLiteral const UfmtSymbolic[];
41 extern unsigned const DfmtNfmt2UFmt[];
42 
43 } // namespace MTBUFFormat
44 
45 namespace Swizzle { // Symbolic names for the swizzle(...) syntax.
46 
47 extern const char* const IdSymbolic[];
48 
49 } // namespace Swizzle
50 
51 namespace VGPRIndexMode { // Symbolic names for the gpr_idx(...) syntax.
52 
53 extern const char* const IdSymbolic[];
54 
55 } // namespace VGPRIndexMode
56 
57 } // namespace AMDGPU
58 } // namespace llvm
59 
60 #endif
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::AMDGPU::SendMsg::IdSymbolic
const char *const IdSymbolic[ID_GAPS_LAST_]
Definition: AMDGPUAsmUtils.cpp:18
llvm::AMDGPU::SendMsg::OpGsSymbolic
const char *const OpGsSymbolic[OP_GS_LAST_]
Definition: AMDGPUAsmUtils.cpp:46
llvm::AMDGPU::SendMsg::OpSysSymbolic
const char *const OpSysSymbolic[OP_SYS_LAST_]
Definition: AMDGPUAsmUtils.cpp:38
llvm::AMDGPU::SendMsg::OP_GS_LAST_
@ OP_GS_LAST_
Definition: SIDefines.h:336
llvm::AMDGPU::VGPRIndexMode::IdSymbolic
const char *const IdSymbolic[]
Definition: AMDGPUAsmUtils.cpp:353
llvm::AMDGPU::SendMsg::ID_GAPS_LAST_
@ ID_GAPS_LAST_
Definition: SIDefines.h:317
Swizzle
static std::vector< std::pair< int, unsigned > > Swizzle(std::vector< std::pair< int, unsigned >> Src, R600InstrInfo::BankSwizzle Swz)
Definition: R600InstrInfo.cpp:352
llvm::AMDGPU::MTBUFFormat::NfmtSymbolicVI
const StringLiteral NfmtSymbolicVI[]
Definition: AMDGPUAsmUtils.cpp:136
llvm::AMDGPU::SendMsg::OP_SYS_LAST_
@ OP_SYS_LAST_
Definition: SIDefines.h:343
llvm::AMDGPU::MTBUFFormat::DfmtSymbolic
const StringLiteral DfmtSymbolic[]
Definition: AMDGPUAsmUtils.cpp:95
llvm::AMDGPU::MTBUFFormat::UfmtSymbolic
const StringLiteral UfmtSymbolic[]
Definition: AMDGPUAsmUtils.cpp:147
llvm::AMDGPU::Swizzle::IdSymbolic
const char *const IdSymbolic[]
Definition: AMDGPUAsmUtils.cpp:340
llvm::AMDGPU::MTBUFFormat::NfmtSymbolicGFX10
const StringLiteral NfmtSymbolicGFX10[]
Definition: AMDGPUAsmUtils.cpp:114
llvm::AMDGPU::MTBUFFormat::DfmtNfmt2UFmt
const unsigned DfmtNfmt2UFmt[]
Definition: AMDGPUAsmUtils.cpp:241
llvm::AMDGPU::Hwreg::IdSymbolic
const char *const IdSymbolic[]
Definition: AMDGPUAsmUtils.cpp:58
SIDefines.h
llvm::AMDGPU::MTBUFFormat::NfmtSymbolicSICI
const StringLiteral NfmtSymbolicSICI[]
Definition: AMDGPUAsmUtils.cpp:125
StringLiteral
Definition: ItaniumDemangle.h:2208