[PATCH] D79410: [MLIR] [OpenMP] Add basic OpenMP parallel operation

David Truby via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 05:21:00 PDT 2020


DavidTruby created this revision.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini, guansong, kristof.beyls, yaxunl, mgorny.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
DavidTruby added reviewers: rriddle, mehdi_amini, kiranchandramohan.

This includes a basic implementation for the OpenMP parallel
operation with only a very simple pretty-printer and custom parser.
The if, num_threads, private, shared, first_private, last_private,
proc_bind and default clauses are included in this implementation.

Currently the reduction clause is omitted as it is more complex and
requires analysis to see if we can share implementation with the loop
dialect.

Co-authored-by: Kiran Chandramohan <kiran.chandramohan at arm.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79410

Files:
  mlir/include/mlir/Dialect/OpenMP/CMakeLists.txt
  mlir/include/mlir/Dialect/OpenMP/OpenMPDialect.h
  mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
  mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
  mlir/test/Dialect/OpenMP/ops.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79410.262073.patch
Type: text/x-patch
Size: 7240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/a35b2390/attachment.bin>


More information about the llvm-commits mailing list