Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/contrib/llvm-project/llvm/lib/Target/SPIRV/SPIRVAPI.h
213799 views
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-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#ifndef LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H
10
#define LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H
11
12
#include <string>
13
#include <vector>
14
15
namespace llvm {
16
class Module;
17
18
extern "C" bool
19
SPIRVTranslateModule(Module *M, std::string &SpirvObj, std::string &ErrMsg,
20
const std::vector<std::string> &AllowExtNames,
21
const std::vector<std::string> &Opts);
22
} // namespace llvm
23
24
#endif // LLVM_LIB_TARGET_SPIRV_SPIRVAPI_H
25
26