//===--- HIPSPV.h - HIP ToolChain Implementations ---------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPSPV_H #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPSPV_H #include "SPIRV.h" #include "clang/Driver/Tool.h" #include "clang/Driver/ToolChain.h" namespace clang { namespace driver { namespace tools { namespace HIPSPV { // Runs llvm-link/opt/llc/lld, which links multiple LLVM bitcode, together with // device library, then compiles it to SPIR-V in a shared object. class LLVM_LIBRARY_VISIBILITY Linker final : public Tool { … }; } // namespace HIPSPV } // namespace tools namespace toolchains { class LLVM_LIBRARY_VISIBILITY HIPSPVToolChain final : public ToolChain { … }; } // end namespace toolchains } // end namespace driver } // end namespace clang #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPSPV_H