brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · fb42694 Raw
31 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains functions needed for parsing LLVM IR metadata relevant10// to the SPIR-V target.11//12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H15#define LLVM_LIB_TARGET_SPIRV_SPIRVMETADATA_H16 17#include "llvm/IR/Metadata.h"18#include "llvm/IR/Module.h"19 20namespace llvm {21 22//===----------------------------------------------------------------------===//23// OpenCL Metadata24//25 26MDString *getOCLKernelArgAccessQual(const Function &F, unsigned ArgIdx);27MDString *getOCLKernelArgTypeQual(const Function &F, unsigned ArgIdx);28 29} // namespace llvm30#endif // LLVM_LIB_TARGET_SPIRV_METADATA_H31