LLVM  6.0.0svn
AMDKernelCodeTUtils.h
Go to the documentation of this file.
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
uint64_t CallInst * C
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
bool parseAmdKernelCodeField(StringRef ID, MCAsmParser &Parser, amd_kernel_code_t &C, raw_ostream &Err)
AMD Kernel Code Object (amd_kernel_code_t).
void printAmdKernelCodeField(const amd_kernel_code_t &C, int FldIndex, raw_ostream &OS)
void dumpAmdKernelCode(const amd_kernel_code_t *C, raw_ostream &OS, const char *tab)