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 "llvm/ADT/StringRef.h" 13 14 namespace llvm { 15 namespace AMDGPU { 16 17 namespace SendMsg { // Symbolic names for the sendmsg(...) syntax. 18 19 extern const char* const IdSymbolic[]; 20 extern const char* const OpSysSymbolic[]; 21 extern const char* const OpGsSymbolic[]; 22 23 } // namespace SendMsg 24 25 namespace Hwreg { // Symbolic names for the hwreg(...) syntax. 26 27 extern const char* const IdSymbolic[]; 28 29 } // namespace Hwreg 30 31 namespace MTBUFFormat { 32 33 extern StringLiteral const DfmtSymbolic[]; 34 extern StringLiteral const NfmtSymbolicGFX10[]; 35 extern StringLiteral const NfmtSymbolicSICI[]; 36 extern StringLiteral const NfmtSymbolicVI[]; 37 extern StringLiteral const UfmtSymbolic[]; 38 extern unsigned const DfmtNfmt2UFmt[]; 39 40 } // namespace MTBUFFormat 41 42 namespace Swizzle { // Symbolic names for the swizzle(...) syntax. 43 44 extern const char* const IdSymbolic[]; 45 46 } // namespace Swizzle 47 48 namespace VGPRIndexMode { // Symbolic names for the gpr_idx(...) syntax. 49 50 extern const char* const IdSymbolic[]; 51 52 } // namespace VGPRIndexMode 53 54 } // namespace AMDGPU 55 } // namespace llvm 56 57 #endif 58