1 //===- AMDGPUKernelCodeTUtils.h - helpers for amd_kernel_code_t -*- C++ -*-===//
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 //
10 /// \file AMDKernelCodeTUtils.h
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
15 #define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
16 
17 #include "AMDKernelCodeT.h"
18 
19 namespace llvm {
20 
21 class MCAsmParser;
22 class raw_ostream;
23 class StringRef;
24 
25 void printAmdKernelCodeField(const amd_kernel_code_t &C, int FldIndex,
26                              raw_ostream &OS);
27 
28 void dumpAmdKernelCode(const amd_kernel_code_t *C, raw_ostream &OS,
29                        const char *tab);
30 
31 bool parseAmdKernelCodeField(StringRef ID, MCAsmParser &Parser,
32                              amd_kernel_code_t &C, raw_ostream &Err);
33 
34 } // end namespace llvm
35 
36 #endif // LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
37