1*0fca6ea1SDimitry Andric //===--- SPIRVMetadata.h ---- IR Metadata Parsing Funcs ---------*- C++ -*-===// 2*0fca6ea1SDimitry Andric // 3*0fca6ea1SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*0fca6ea1SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*0fca6ea1SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*0fca6ea1SDimitry Andric // 7*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===// 8*0fca6ea1SDimitry Andric // 9*0fca6ea1SDimitry Andric // This file contains functions needed for parsing LLVM IR metadata relevant 10*0fca6ea1SDimitry Andric // to the SPIR-V target. 11*0fca6ea1SDimitry Andric // 12*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===// 13*0fca6ea1SDimitry Andric 14*0fca6ea1SDimitry Andric #ifndef LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H 15*0fca6ea1SDimitry Andric #define LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H 16*0fca6ea1SDimitry Andric 17*0fca6ea1SDimitry Andric #include "llvm/IR/Metadata.h" 18*0fca6ea1SDimitry Andric #include "llvm/IR/Module.h" 19*0fca6ea1SDimitry Andric 20*0fca6ea1SDimitry Andric namespace llvm { 21*0fca6ea1SDimitry Andric 22*0fca6ea1SDimitry Andric //===----------------------------------------------------------------------===// 23*0fca6ea1SDimitry Andric // OpenCL Metadata 24*0fca6ea1SDimitry Andric // 25*0fca6ea1SDimitry Andric 26*0fca6ea1SDimitry Andric MDString *getOCLKernelArgAccessQual(const Function &F, unsigned ArgIdx); 27*0fca6ea1SDimitry Andric MDString *getOCLKernelArgTypeQual(const Function &F, unsigned ArgIdx); 28*0fca6ea1SDimitry Andric 29*0fca6ea1SDimitry Andric } // namespace llvm 30*0fca6ea1SDimitry Andric #endif // LLVM_LIB_TARGET_SPIRV_METADATA_H 31