25 lines · c
1//===-- SPIRVAPI.h - SPIR-V Backend API interface ---------------*- 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#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H10#define LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H11 12#include <string>13#include <vector>14 15namespace llvm {16class Module;17 18extern "C" bool19SPIRVTranslateModule(Module *M, std::string &SpirvObj, std::string &ErrMsg,20 const std::vector<std::string> &AllowExtNames,21 const std::vector<std::string> &Opts);22} // namespace llvm23 24#endif // LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H25