1 //===-- AMDGPUAsmUtils.cpp - AsmParser/InstPrinter common -----------------===//
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
7 //===----------------------------------------------------------------------===//
8 #include "AMDGPUAsmUtils.h"
14 // This must be in sync with llvm::AMDGPU::SendMsg::Id enum members, see SIDefines.h.
15 const char* const IdSymbolic
[] = {
34 // These two must be in sync with llvm::AMDGPU::SendMsg::Op enum members, see SIDefines.h.
35 const char* const OpSysSymbolic
[] = {
37 "SYSMSG_OP_ECC_ERR_INTERRUPT",
39 "SYSMSG_OP_HOST_TRAP_ACK",
43 const char* const OpGsSymbolic
[] = {
50 } // namespace SendMsg
54 // This must be in sync with llvm::AMDGPU::Hwreg::ID_SYMBOLIC_FIRST_/LAST_, see SIDefines.h.
55 const char* const IdSymbolic
[] = {
71 "HW_REG_SH_MEM_BASES",
79 nullptr, // HW_ID1, no predictable values
80 nullptr, // HW_ID2, no predictable values
88 // This must be in sync with llvm::AMDGPU::Swizzle::Id enum members, see SIDefines.h.
89 const char* const IdSymbolic
[] = {
97 } // namespace Swizzle
99 namespace VGPRIndexMode
{
101 // This must be in sync with llvm::AMDGPU::VGPRIndexMode::Id enum members, see SIDefines.h.
102 const char* const IdSymbolic
[] = {
109 } // namespace VGPRIndexMode
111 } // namespace AMDGPU