blob: 35d0446bd8b84020e14843e6dc7c1de4282aaf59 [file] [log] [blame]
//===--- SPIRV.h - SPIR-V Tool Implementations ------------------*- C++ -*-===//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#include "clang/Driver/Tool.h"
#include "clang/Driver/ToolChain.h"
namespace clang {
namespace driver {
namespace tools {
namespace SPIRV {
void addTranslatorArgs(const llvm::opt::ArgList &InArgs,
llvm::opt::ArgStringList &OutArgs);
void constructTranslateCommand(Compilation &C, const Tool &T,
const JobAction &JA, const InputInfo &Output,
const InputInfo &Input,
const llvm::opt::ArgStringList &Args);
class LLVM_LIBRARY_VISIBILITY Translator : public Tool {
Translator(const ToolChain &TC)
: Tool("SPIR-V::Translator", "llvm-spirv", TC) {}
bool hasIntegratedCPP() const override { return false; }
bool hasIntegratedAssembler() const override { return true; }
void ConstructJob(Compilation &C, const JobAction &JA,
const InputInfo &Output, const InputInfoList &Inputs,
const llvm::opt::ArgList &TCArgs,
const char *LinkingOutput) const override;
} // namespace SPIRV
} // namespace tools
} // namespace driver
} // namespace clang