[PATCH] D109175: [openmp] Add clang cc1 option -fopenmp-skip-deferred-diags

Wei Wang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 2 13:24:49 PDT 2021


weiwang added a comment.

In D109175#2980744 <https://reviews.llvm.org/D109175#2980744>, @jdoerfert wrote:

> Why do we need this flag, is the absence of -fopenmp-targets not sufficient?

Just double checked, this is the full omp related options currently in use:

  "-fopenmp"
  "-fopenmp-version=31"
  "-fopenmp-version=31"
  "-fopenmp-cuda-parallel-target-regions"

We saw a huge number of `DECLS_TO_CHECK_FOR_DEFERRED_DIAGS` records. I don't know if this has anything to do with omp version being 31, since prior 5.0, everything is available on host and `getEmissionStatus` would return `FunctionEmissionStatus::Unknown` in this case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D109175



More information about the cfe-commits mailing list