]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r364732:
authorDimitry Andric <dim@FreeBSD.org>
Mon, 7 Sep 2020 19:35:30 +0000 (19:35 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Mon, 7 Sep 2020 19:35:30 +0000 (19:35 +0000)
commit310794519c3d355cb71491a0e33b09281d96167a
tree8fa74ecb77c494af195e655c00f2d0824c59d152
parent2b56a704510fcc2003a60a722bb8f54da0dcfa04
MFC r364732:

Merge commit cde8f4c16 from llvm git (by me):

  Move special va_list handling to kmp_os.h

  Instead of copying and pasting the same #ifdef expressions in
  multiple places, define a type and a pair of macros in kmp_os.h, to
  handle whether va_list is pointer-like or not:

  * kmp_va_list is the type to use for __kmp_fork_call()
  * kmp_va_deref() dereferences a va_list, if necessary
  * kmp_va_addr_of() takes the address of a va_list, if necessary

  Also add FreeBSD to the list of OSes that has a non pointer-like
  va_list. This can now be easily extended to other OSes too.

  Reviewed By: AndreyChurbanov

  Differential Revision: https://reviews.llvm.org/D86397

This should enable building of LLVM's OpenMP on AArch64. Addition to
share/mk will follow in a subsequent commit.

PR: 248864

MFC r364733:

After r364732, we can now enable MK_OPENMP for aarch64 by default.

PR: 248864
contrib/llvm-project/openmp/runtime/src/kmp.h
contrib/llvm-project/openmp/runtime/src/kmp_csupport.cpp
contrib/llvm-project/openmp/runtime/src/kmp_gsupport.cpp
contrib/llvm-project/openmp/runtime/src/kmp_os.h
contrib/llvm-project/openmp/runtime/src/kmp_runtime.cpp
share/mk/src.opts.mk