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