Path: blob/21.2-virgl/src/gallium/frontends/clover/llvm/invocation.hpp
4573 views
//1// Copyright 2016 Francisco Jerez2//3// Permission is hereby granted, free of charge, to any person obtaining a4// copy of this software and associated documentation files (the "Software"),5// to deal in the Software without restriction, including without limitation6// the rights to use, copy, modify, merge, publish, distribute, sublicense,7// and/or sell copies of the Software, and to permit persons to whom the8// Software is furnished to do so, subject to the following conditions:9//10// The above copyright notice and this permission notice shall be included in11// all copies or substantial portions of the Software.12//13// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL16// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR17// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,18// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR19// OTHER DEALINGS IN THE SOFTWARE.20//2122#ifndef CLOVER_LLVM_INVOCATION_HPP23#define CLOVER_LLVM_INVOCATION_HPP2425#include "core/error.hpp"26#include "core/module.hpp"27#include "core/program.hpp"28#include "pipe/p_defines.h"2930namespace clover {31namespace llvm {32module compile_program(const std::string &source,33const header_map &headers,34const device &device,35const std::string &opts,36std::string &r_log);3738module link_program(const std::vector<module> &modules,39const device &device,40const std::string &opts,41std::string &r_log);4243#ifdef HAVE_CLOVER_SPIRV44module compile_to_spirv(const std::string &source,45const header_map &headers,46const device &dev,47const std::string &opts,48std::string &r_log);49#endif50}51}5253#endif545556