LLVM  13.0.0git
AMDKernelCodeTUtils.h
Go to the documentation of this file.
1 //===- AMDGPUKernelCodeTUtils.h - helpers for amd_kernel_code_t -*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 /// \file AMDKernelCodeTUtils.h
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
14 #define LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
15 
16 struct amd_kernel_code_t;
17 
18 namespace llvm {
19 
20 class MCAsmParser;
21 class raw_ostream;
22 class StringRef;
23 
24 void printAmdKernelCodeField(const amd_kernel_code_t &C, int FldIndex,
25  raw_ostream &OS);
26 
27 void dumpAmdKernelCode(const amd_kernel_code_t *C, raw_ostream &OS,
28  const char *tab);
29 
30 bool parseAmdKernelCodeField(StringRef ID, MCAsmParser &Parser,
31  amd_kernel_code_t &C, raw_ostream &Err);
32 
33 } // end namespace llvm
34 
35 #endif // LLVM_LIB_TARGET_AMDGPU_UTILS_AMDKERNELCODETUTILS_H
llvm
Definition: AllocatorList.h:23
llvm::dumpAmdKernelCode
void dumpAmdKernelCode(const amd_kernel_code_t *C, raw_ostream &OS, const char *tab)
Definition: AMDKernelCodeTUtils.cpp:104
C
(vector float) vec_cmpeq(*A, *B) C
Definition: README_ALTIVEC.txt:86
amd_kernel_code_t
AMD Kernel Code Object (amd_kernel_code_t).
Definition: AMDKernelCodeT.h:526
llvm::printAmdKernelCodeField
void printAmdKernelCodeField(const amd_kernel_code_t &C, int FldIndex, raw_ostream &OS)
Definition: AMDKernelCodeTUtils.cpp:96
llvm::parseAmdKernelCodeField
bool parseAmdKernelCodeField(StringRef ID, MCAsmParser &Parser, amd_kernel_code_t &C, raw_ostream &Err)
Definition: AMDKernelCodeTUtils.cpp:166
llvm::Intrinsic::ID
unsigned ID
Definition: TargetTransformInfo.h:38