[openmp] Support building for armv7 Windows with mingw tools
authorMartin Storsjö <martin@martin.st>
Thu, 10 Nov 2022 13:02:05 +0000 (15:02 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 25 Nov 2022 19:46:31 +0000 (21:46 +0200)
commit97958c9bb83cec44b6ce13e732b53de0171a5d43
tree0ab2ee1942020440c761d6429c44e7dffa4d4148
parentd6ab42dec492ccd3f1b515796d9d2fb020c520bd
[openmp] Support building for armv7 Windows with mingw tools

This does things in the same way as
D137168 / a356782426f5bf54a00570e1f925345e5fda7b2e and
D101173 / 4fb0aaf03381473ec8af727edb4b5d59b64b0d60 did for aarch64.

This adds a C implementation of __kmp_invoke_microtask in the same
way as the fallback C implementation in z_Linux_util.cpp.

Both the existing C fallback used on arm linux, and this one added here,
fail test/misc_bugs/many-microtask-args.c similarly (which could be
considered as an XFAIL).

Differential Revision: https://reviews.llvm.org/D138689
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_atomic.cpp
openmp/runtime/src/kmp_os.h
openmp/runtime/src/kmp_platform.h
openmp/runtime/src/z_Windows_NT-586_util.cpp
openmp/runtime/src/z_Windows_NT_util.cpp