-
- Downloads
[clang-offload-bundler] add -input/-output options
Currently, clang-offload-bundler has -inputs and -outputs options that accept values with comma as the delimiter. This causes issues with file paths containing commas, which are valid file paths on Linux. This add two new options -input and -output, which accept one single file, and allow multiple instances. This allows arbitrary file paths. The old -inputs and -outputs options will be kept for backward compatibility, but are not allowed to be used with -input and -output options for simplicity. In the future, -inputs and -outputs options will be phasing out. RFC: https://discourse.llvm.org/t/rfc-adding-input-and-output-options-to-clang-offload-bundler/60049 Patch by: Siu Chi Chan Reviewed by: Yaxun Liu Differential Revision: https://reviews.llvm.org/D120662
Showing
- clang/lib/Driver/ToolChains/Clang.cpp 16 additions, 17 deletionsclang/lib/Driver/ToolChains/Clang.cpp
- clang/lib/Driver/ToolChains/CommonArgs.cpp 2 additions, 2 deletionsclang/lib/Driver/ToolChains/CommonArgs.cpp
- clang/lib/Driver/ToolChains/HIPUtility.cpp 8 additions, 4 deletionsclang/lib/Driver/ToolChains/HIPUtility.cpp
- clang/test/Driver/clang-offload-bundler-asserts-on.c 4 additions, 4 deletionsclang/test/Driver/clang-offload-bundler-asserts-on.c
- clang/test/Driver/clang-offload-bundler.c 119 additions, 99 deletionsclang/test/Driver/clang-offload-bundler.c
- clang/test/Driver/fat-archive-unbundle-ext.c 2 additions, 2 deletionsclang/test/Driver/fat-archive-unbundle-ext.c
- clang/test/Driver/fat_archive_amdgpu.cpp 1 addition, 1 deletionclang/test/Driver/fat_archive_amdgpu.cpp
- clang/test/Driver/fat_archive_nvptx.cpp 1 addition, 1 deletionclang/test/Driver/fat_archive_nvptx.cpp
- clang/test/Driver/hip-device-compile.hip 4 additions, 4 deletionsclang/test/Driver/hip-device-compile.hip
- clang/test/Driver/hip-link-bundle-archive.hip 2 additions, 2 deletionsclang/test/Driver/hip-link-bundle-archive.hip
- clang/test/Driver/hip-link-save-temps.hip 2 additions, 2 deletionsclang/test/Driver/hip-link-save-temps.hip
- clang/test/Driver/hip-output-file-name.hip 5 additions, 5 deletionsclang/test/Driver/hip-output-file-name.hip
- clang/test/Driver/hip-rdc-device-only.hip 4 additions, 4 deletionsclang/test/Driver/hip-rdc-device-only.hip
- clang/test/Driver/hip-save-temps.hip 2 additions, 2 deletionsclang/test/Driver/hip-save-temps.hip
- clang/test/Driver/hip-toolchain-device-only.hip 1 addition, 1 deletionclang/test/Driver/hip-toolchain-device-only.hip
- clang/test/Driver/hip-toolchain-no-rdc.hip 2 additions, 2 deletionsclang/test/Driver/hip-toolchain-no-rdc.hip
- clang/test/Driver/hip-toolchain-rdc-separate.hip 7 additions, 7 deletionsclang/test/Driver/hip-toolchain-rdc-separate.hip
- clang/test/Driver/hip-toolchain-rdc-static-lib.hip 1 addition, 1 deletionclang/test/Driver/hip-toolchain-rdc-static-lib.hip
- clang/test/Driver/hip-toolchain-rdc.hip 1 addition, 1 deletionclang/test/Driver/hip-toolchain-rdc.hip
- clang/test/Driver/hip-unbundle-preproc.hip 5 additions, 5 deletionsclang/test/Driver/hip-unbundle-preproc.hip
Loading
Please register or sign in to comment