[all-commits] [llvm/llvm-project] 3f00e1: [mlir][OpenMP]Support for modifiers in workshare l...

Mats Petersson via All-commits all-commits at lists.llvm.org
Fri Oct 22 06:20:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f00e10bddd7bb2bdd14b5cbecd000e6288588bf
      https://github.com/llvm/llvm-project/commit/3f00e10bddd7bb2bdd14b5cbecd000e6288588bf
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2021-10-22 (Fri, 22 Oct 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
    M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
    M mlir/test/Dialect/OpenMP/ops.mlir
    M mlir/test/Target/LLVMIR/openmp-llvm.mlir

  Log Message:
  -----------
  [mlir][OpenMP]Support for modifiers in workshare loops

Pass the modifiers from the Flang parser to FIR/MLIR workshare
loop operation.

Not yet supporting the SIMD modifier, which is a bit more work
than just adding it to the list of modifiers, so will go in a
separate patch.

This adds a new field to the WsLoopOp.

Also add test for dynamic WSLoop, checking that dynamic schedule calls
the init and next functions as expected.

Reviewed By: ftynse

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




More information about the All-commits mailing list