blob: 03b11ae80500efc5698bf22d717acc5e42f26583 [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",
64 "HW_REG_IB_STS"
65};
66
67} // namespace Hwreg
Dmitry Preobrazhensky793c5922017-05-31 16:26:47 +000068
69namespace Swizzle {
70
71// This must be in sync with llvm::AMDGPU::Swizzle::Id enum members, see SIDefines.h.
72const char* const IdSymbolic[] = {
73 "QUAD_PERM",
74 "BITMASK_PERM",
75 "SWAP",
76 "REVERSE",
77 "BROADCAST",
78};
79
80} // namespace Swizzle
Artem Tamazov6edc1352016-05-26 17:00:33 +000081} // namespace AMDGPU
82} // namespace llvm