[OpenMP]Add support for workshare loop modifier in lowering
authorMats Petersson <mats.petersson@arm.com>
Fri, 30 Apr 2021 13:13:55 +0000 (14:13 +0100)
committerMats Petersson <mats.petersson@arm.com>
Thu, 27 May 2021 14:33:05 +0000 (15:33 +0100)
commit9091ecdae0290d8c425d48a2c86bbdd4876d6507
treeaada2318682cf3cfcc98b431b59e7c9e51beb5e5
parent96ef4f4a24918642f2133522c8c686bd5cf8dc63
[OpenMP]Add support for workshare loop modifier in lowering

When lowering the dynamic, guided, auto and runtime types of scheduling,
there is an optional monotonic or non-monotonic modifier. This patch
adds support in the OMP IR Builder to pass this down to the runtime
functions.

Also implements tests for the variants.

Differential Revision: https://reviews.llvm.org/D102008
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp