clang  15.0.0git
HIPUtility.h
Go to the documentation of this file.
1 //===--- HIPUtility.h - Common HIP Tool Chain Utilities ---------*- 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_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
11 
12 #include "clang/Driver/Tool.h"
13 
14 namespace clang {
15 namespace driver {
16 namespace tools {
17 namespace HIP {
18 
19 // Construct command for creating HIP fatbin.
21  StringRef OutputFileName,
22  const InputInfoList &Inputs,
23  const llvm::opt::ArgList &TCArgs, const Tool &T);
24 
25 // Construct command for creating Object from HIP fatbin.
27  Compilation &C, const InputInfo &Output, const InputInfoList &Inputs,
28  const llvm::opt::ArgList &Args, const JobAction &JA, const Tool &T);
29 
30 } // namespace HIP
31 } // namespace tools
32 } // namespace driver
33 } // namespace clang
34 
35 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
clang::driver::tools::HIP::constructHIPFatbinCommand
void constructHIPFatbinCommand(Compilation &C, const JobAction &JA, StringRef OutputFileName, const InputInfoList &Inputs, const llvm::opt::ArgList &TCArgs, const Tool &T)
llvm::SmallVector
Definition: LLVM.h:38
clang::driver::InputInfo
InputInfo - Wrapper for information about an input source.
Definition: InputInfo.h:22
clang::driver::Tool
Tool - Information on a specific compilation tool.
Definition: Tool.h:32
clang::driver::tools::HIP::constructGenerateObjFileFromHIPFatBinary
void constructGenerateObjFileFromHIPFatBinary(Compilation &C, const InputInfo &Output, const InputInfoList &Inputs, const llvm::opt::ArgList &Args, const JobAction &JA, const Tool &T)
Tool.h
clang::driver::Compilation
Compilation - A set of tasks to perform for a single driver invocation.
Definition: Compilation.h:45
clang
Definition: CalledOnceCheck.h:17
clang::Language::HIP
@ HIP
clang::driver::JobAction
Definition: Action.h:395