1327952Sdim//===- AMDGPUKernelCodeTUtils.h - helpers for amd_kernel_code_t -*- C++ -*-===// 2303231Sdim// 3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4353358Sdim// See https://llvm.org/LICENSE.txt for license information. 5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6303231Sdim// 7303231Sdim//===----------------------------------------------------------------------===// 8327952Sdim// 9303231Sdim/// \file AMDKernelCodeTUtils.h 10327952Sdim// 11303231Sdim//===----------------------------------------------------------------------===// 12303231Sdim 13327952Sdim#ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H 14327952Sdim#define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H 15303231Sdim 16303231Sdim#include "AMDKernelCodeT.h" 17303231Sdim 18303231Sdimnamespace llvm { 19303231Sdim 20303231Sdimclass MCAsmParser; 21303231Sdimclass raw_ostream; 22303231Sdimclass StringRef; 23303231Sdim 24327952Sdimvoid printAmdKernelCodeField(const amd_kernel_code_t &C, int FldIndex, 25327952Sdim raw_ostream &OS); 26303231Sdim 27327952Sdimvoid dumpAmdKernelCode(const amd_kernel_code_t *C, raw_ostream &OS, 28327952Sdim const char *tab); 29303231Sdim 30327952Sdimbool parseAmdKernelCodeField(StringRef ID, MCAsmParser &Parser, 31327952Sdim amd_kernel_code_t &C, raw_ostream &Err); 32303231Sdim 33327952Sdim} // end namespace llvm 34303231Sdim 35327952Sdim#endif // LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H 36