HIPUtility.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. #ifndef LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
  9. #define LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H
  10. #include "clang/Driver/Tool.h"
  11. namespace clang {
  12. namespace driver {
  13. namespace tools {
  14. namespace HIP {
  15. // Construct command for creating HIP fatbin.
  16. void constructHIPFatbinCommand(Compilation &C, const JobAction &JA,
  17. StringRef OutputFileName,
  18. const InputInfoList &Inputs,
  19. const llvm::opt::ArgList &TCArgs, const Tool &T);
  20. // Construct command for creating Object from HIP fatbin.
  21. void constructGenerateObjFileFromHIPFatBinary(
  22. Compilation &C, const InputInfo &Output, const InputInfoList &Inputs,
  23. const llvm::opt::ArgList &Args, const JobAction &JA, const Tool &T);
  24. } // namespace HIP
  25. } // namespace tools
  26. } // namespace driver
  27. } // namespace clang
  28. #endif // LLVM_CLANG_LIB_DRIVER_TOOLCHAINS_HIPUTILITY_H