llvm-project/clang/tools
Joseph Huber ce091eb3b9 [HIP] Add support for handling HIP in the linker wrapper
This patch adds the necessary changes required to bundle and wrap HIP
files. The bundling is done using `clang-offload-bundler` currently to
mimic `fatbinary` and the wrapping is done using very similar runtime
calls to CUDA. This still does not support managed / surface / texture
variables, that would require some additional information in the entry.

One difference in the codegeneration with AMD is that I don't check if
the handle is null before destructing it, I'm not sure if that's
required.

With this we should be able to support HIP with the new driver.

Depends on D128850

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D128914
2022-07-11 15:49:23 -04:00
..
amdgpu-arch [amdgpu-arch] Guard hsa.h with __has_include 2021-05-10 07:33:30 +00:00
apinotes-test [Support] Don't include VirtualFileSystem.h in CommandLine.h 2021-04-21 10:19:01 -04:00
arcmt-test [NFC] Reordering parameters in getFile and getFileOrSTDIN 2021-03-25 09:47:49 -04:00
c-arcmt-test
c-index-test [libclang] add supporting for indexing/visiting C++ concepts 2022-05-24 10:02:53 -07:00
clang-check [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer 2022-01-14 10:05:47 +01:00
clang-diff clang-{tools,unittests}: Stop using SourceManager::getBuffer, NFC 2020-10-15 00:35:16 -04:00
clang-extdef-mapping [clang-extdef-mapping] Directly process .ast files 2022-07-05 13:45:52 +02:00
clang-format [clang-format] Fix an assertion failure on -lines=0:n 2022-07-08 23:41:16 -07:00
clang-format-vs
clang-fuzzer [gn build] (manually) port a2f2dfde48 (clang-fuzzer-dictionary) 2022-05-09 18:28:58 -04:00
clang-import-test Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options 2022-06-05 00:31:44 -07:00
clang-linker-wrapper [HIP] Add support for handling HIP in the linker wrapper 2022-07-11 15:49:23 -04:00
clang-nvlink-wrapper [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
clang-offload-bundler Don't use Optional::hasValue (NFC) 2022-06-20 20:17:57 -07:00
clang-offload-packager [OffloadPackager] Use appropriate kind for LTO bitcode 2022-07-04 17:34:14 -04:00
clang-offload-wrapper [clang-offload-wrapper] Disabled ELF offload notes embedding by default. 2021-08-18 08:18:03 -07:00
clang-refactor Use ManagedStatic and lazy initialization of cl::opt in libSupport to make it free of global initializer 2021-07-16 07:38:16 +00:00
clang-rename Remove unneeded cl::ZeroOrMore for cl::opt/cl::list options 2022-06-05 01:07:51 -07:00
clang-repl Revert "[clang-repl] Support destructors of global objects." 2022-06-26 22:10:28 +09:00
clang-scan-deps [Tooling/DependencyScanning] Rename refactorings towards transitioning dependency scanning to use pre-lexed preprocessor directive tokens 2022-05-26 12:49:51 -07:00
clang-shlib [CMake] Don't use -Bsymbolic-functions for MinGW targets 2021-06-30 22:54:26 +03:00
diag-build [clang] Use portable "#!/usr/bin/env bash" shebang for tools and utils. 2021-09-23 21:16:43 +05:30
diagtool [clang][tablegen] adds human documentation to `WarningOption` 2022-06-10 17:23:00 +00:00
driver [clang] Don't use Optional::hasValue (NFC) 2022-06-25 22:26:24 -07:00
include-mapping [clangd] NFC: Move stdlib headers handling to Clang 2022-02-09 11:05:39 +01:00
libclang [OpenMP] Initial parsing and semantic support for 'parallel masked taskloop simd' construct 2022-07-01 08:57:15 -07:00
scan-build [clang] Update Clang version from 14 to 15 in scan-build.1. 2022-06-24 11:09:34 +02:00
scan-build-py [scan-build-py] Fix exception on shutdown with sarif-html output format 2022-06-10 23:21:09 +02:00
scan-view [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs 2022-01-21 23:58:08 +00:00
CMakeLists.txt [Clang] Introduce clang-offload-packager tool to bundle device files 2022-05-11 09:39:13 -04:00