• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 MCAsmParser;
21 class raw_ostream;
22 class StringRef;
23 
24 void printAmdKernelCodeField(const amd_kernel_code_t &C,
25   int FldIndex,
26   raw_ostream &OS);
27 
28 void dumpAmdKernelCode(const amd_kernel_code_t *C,
29   raw_ostream &OS,
30   const char *tab);
31 
32 bool parseAmdKernelCodeField(StringRef ID,
33   MCAsmParser &Parser,
34   amd_kernel_code_t &C,
35   raw_ostream &Err);
36 
37 }
38 
39 #endif // AMDKERNELCODETUTILS_H
40