[PATCH] D101435: [OpenMP][MLIR]Add support for guided, auto and runtime scheduling

Mats Petersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 5 05:58:48 PDT 2021


Leporacanthicus added inline comments.


================
Comment at: mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp:279-280
+
+    afterIP = ompBuilder->createDynamicWorkshareLoop(
+        ompLoc, loopInfo, allocaIP, schedType, !loop.nowait(), chunk);
   }
----------------
Leporacanthicus wrote:
> ftynse wrote:
> > Could we have a test that at list hits this code path? Does not need to be detailed, just the check that the calls to runtime functions are actually emitted, similarly to what we have for static loops.
> The test code that I modified does this - I added the test when adding support for Dynamic scheduling, and this only updated the test to take the scheduling type as a parameter - because that's the only difference from this side - the OpenMP runtime will do different things [I think!]
I have added some MLIR to LLVM-IR tests that check that the correct runtime calls are made, as well as the above unit-test.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101435



More information about the llvm-commits mailing list