[all-commits] [llvm/llvm-project] b9fb06: [clang-offload-bundler] Add option -allow-missing-...
Yaxun (Sam) Liu via All-commits
all-commits at lists.llvm.org
Wed Dec 16 11:57:27 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b9fb063e63c7959e8bc9b424bd34b266ca826826
https://github.com/llvm/llvm-project/commit/b9fb063e63c7959e8bc9b424bd34b266ca826826
Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
Date: 2020-12-16 (Wed, 16 Dec 2020)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/clang-offload-bundler.c
M clang/test/Driver/hip-toolchain-rdc-separate.hip
M clang/test/Driver/openmp-offload.c
M clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Log Message:
-----------
[clang-offload-bundler] Add option -allow-missing-bundles
There are out-of-tree tools using clang-offload-bundler to extract
bundles from bundled files. When a bundle is not in the bundled
file, clang-offload-bundler is expected to emit an error message
and return non-zero value. However currently clang-offload-bundler
silently generates empty file for the missing bundles.
Since OpenMP/HIP toolchains expect the current behavior, an option
-allow-missing-bundles is added to let clang-offload-bundler
create empty file when a bundle is missing when unbundling.
The unbundling job action is updated to use this option by
default.
clang-offload-bundler itself will emit error when a bundle
is missing when unbundling by default.
Changes are also made to check duplicate targets in -targets
option and emit error.
Differential Revision: https://reviews.llvm.org/D93068
More information about the All-commits
mailing list