blob: 9eb4c6513cce923f37dbdb10594f3fe717d904af [file] [log] [blame]
Artem Tamazov6edc1352016-05-26 17:00:33 +00001//===-- AMDGPUAsmUtils.cpp - AsmParser/InstPrinter common -----------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9#include "AMDGPUAsmUtils.h"
10
11namespace llvm {
12namespace AMDGPU {
13namespace SendMsg {
14
15// This must be in sync with llvm::AMDGPU::SendMsg::Id enum members, see SIDefines.h.
16const char* const IdSymbolic[] = {
17 nullptr,
18 "MSG_INTERRUPT",
19 "MSG_GS",
20 "MSG_GS_DONE",
21 nullptr,
22 nullptr,
23 nullptr,
24 nullptr,
25 nullptr,
26 nullptr,
27 nullptr,
28 nullptr,
29 nullptr,
30 nullptr,
31 nullptr,
32 "MSG_SYSMSG"
33};
34
35// These two must be in sync with llvm::AMDGPU::SendMsg::Op enum members, see SIDefines.h.
36const char* const OpSysSymbolic[] = {
37 nullptr,
38 "SYSMSG_OP_ECC_ERR_INTERRUPT",
39 "SYSMSG_OP_REG_RD",
40 "SYSMSG_OP_HOST_TRAP_ACK",
41 "SYSMSG_OP_TTRACE_PC"
42};
43
44const char* const OpGsSymbolic[] = {
45 "GS_OP_NOP",
46 "GS_OP_CUT",
47 "GS_OP_EMIT",
48 "GS_OP_EMIT_CUT"
49};
50
51} // namespace SendMsg
52
53namespace Hwreg {
54
55// This must be in sync with llvm::AMDGPU::Hwreg::ID_SYMBOLIC_FIRST_/LAST_, see SIDefines.h.
56const char* const IdSymbolic[] = {
57 nullptr,
58 "HW_REG_MODE",
59 "HW_REG_STATUS",
60 "HW_REG_TRAPSTS",
61 "HW_REG_HW_ID",
62 "HW_REG_GPR_ALLOC",
63 "HW_REG_LDS_ALLOC",
Stanislav Mekhanoshin62875fc2018-01-15 18:49:15 +000064 "HW_REG_IB_STS",
65 nullptr,
66 nullptr,
67 nullptr,
68 nullptr,
69 nullptr,
70 nullptr,
71 nullptr,
72 "HW_REG_SH_MEM_BASES"
Artem Tamazov6edc1352016-05-26 17:00:33 +000073};
74
75} // namespace Hwreg
Dmitry Preobrazhensky793c5922017-05-31 16:26:47 +000076
77namespace Swizzle {
78
79// This must be in sync with llvm::AMDGPU::Swizzle::Id enum members, see SIDefines.h.
80const char* const IdSymbolic[] = {
81 "QUAD_PERM",
82 "BITMASK_PERM",
83 "SWAP",
84 "REVERSE",
85 "BROADCAST",
86};
87
88} // namespace Swizzle
Artem Tamazov6edc1352016-05-26 17:00:33 +000089} // namespace AMDGPU
90} // namespace llvm