[PATCH] D96248: [OpenMP][AMDGPU] Add support for linking libomptarget bitcode

Shilei Tian via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 9 09:20:25 PST 2021


tianshilei1992 requested changes to this revision.
tianshilei1992 added a comment.
This revision now requires changes to proceed.

In D96248#2551503 <https://reviews.llvm.org/D96248#2551503>, @JonChesterfield wrote:

> @tianshilei1992 @jdoerfert can we agree on 'libomptarget-device-bc-path' being the better one to recommend in the error message, despite that being a minor change to the current behaviour? It'll slightly surprise people parsing error messages, such as our test, but shouldn't cause any confusion.

After a second thought, I don't think it is feasible. Consider the following senecio:

  clang -fopenmp -fopenmp-targets=nvptx64,amdgcn source.cpp

We cannot use one option for the two different targets, and the alias might not work as well, especially in terms of the driver.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96248/new/

https://reviews.llvm.org/D96248



More information about the cfe-commits mailing list