1 //===--- HIPUtility.h - Common HIP Tool Chain Utilities ---------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
10 #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
12 #include "clang/Driver/Tool.h"
19 // Construct command for creating HIP fatbin.
20 void constructHIPFatbinCommand(Compilation
&C
, const JobAction
&JA
,
21 StringRef OutputFileName
,
22 const InputInfoList
&Inputs
,
23 const llvm::opt::ArgList
&TCArgs
, const Tool
&T
);
25 // Construct command for creating Object from HIP fatbin.
26 void constructGenerateObjFileFromHIPFatBinary(
27 Compilation
&C
, const InputInfo
&Output
, const InputInfoList
&Inputs
,
28 const llvm::opt::ArgList
&Args
, const JobAction
&JA
, const Tool
&T
);
35 #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H