[PATCH] D84347: [MLIR,OpenMP] Lowering of parallel operation: proc_bind clause 2/n

Kiran Chandramohan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 10:44:45 PDT 2020


kiranchandramohan created this revision.
kiranchandramohan added projects: MLIR, OpenMP.
Herald added subscribers: llvm-commits, aaron.ballman, msifontes, sstefan1, jurahul, Kayjukh, grosul1, Joonsoo, stephenneuendorffer, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar, rriddle, mehdi_amini, guansong, hiraditya, yaxunl, mgorny.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: ftynse.
Herald added a project: LLVM.

This simple patch adds the translation of the proc_bind clause in a parallel operation. The string representation of the proc_bind operand is retrieved from the operation and converted to the enum value expected by the OpenMP IRBuilder.

A new function is added to get the enum value of a proc_bind clause's string representation in a new file (llvm/lib/Frontend/OpenMP/OMPConstants.cpp).


https://reviews.llvm.org/D84347

Files:
  llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
  llvm/lib/Frontend/OpenMP/CMakeLists.txt
  llvm/lib/Frontend/OpenMP/OMPConstants.cpp
  mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
  mlir/test/Target/openmp-llvm.mlir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84347.279880.patch
Type: text/x-patch
Size: 4803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200722/42aa7c92/attachment.bin>


More information about the llvm-commits mailing list