[all-commits] [llvm/llvm-project] 02d04d: [OPENMP50]Do not mark the function as used if refe...

Alexey Bataev via All-commits all-commits at lists.llvm.org
Tue Dec 10 13:34:21 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 02d04d569edd39a17f27995565b7b65ac06afb35
      https://github.com/llvm/llvm-project/commit/02d04d569edd39a17f27995565b7b65ac06afb35
  Author: Alexey Bataev <a.bataev at hotmail.com>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    M clang/lib/Parse/ParseOpenMP.cpp
    M clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
    M clang/test/OpenMP/declare_variant_mixed_codegen.cpp

  Log Message:
  -----------
  [OPENMP50]Do not mark the function as used if referenced only in declare
variant directive.

If the function is used only in declare variant directive as a variant
function, it should not be marked as used to prevent emission of the
target-specific functions. Build the reference in the unevaluated
context.




More information about the All-commits mailing list