1 | //===--- SPIRVMetadata.h ---- IR Metadata Parsing Funcs ---------*- 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 | // This file contains functions needed for parsing LLVM IR metadata relevant |
10 | // to the SPIR-V target. |
11 | // |
12 | //===----------------------------------------------------------------------===// |
13 | |
14 | #ifndef LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H |
15 | #define LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H |
16 | |
17 | #include "llvm/IR/Metadata.h" |
18 | #include "llvm/IR/Module.h" |
19 | |
20 | namespace llvm { |
21 | |
22 | //===----------------------------------------------------------------------===// |
23 | // OpenCL Metadata |
24 | // |
25 | |
26 | MDString *getOCLKernelArgAccessQual(const Function &F, unsigned ArgIdx); |
27 | MDString *getOCLKernelArgTypeQual(const Function &F, unsigned ArgIdx); |
28 | |
29 | } // namespace llvm |
30 | #endif // LLVM_LIB_TARGET_SPIRV_METADATA_H |
31 | |