[PATCH] D69930: [OpenMP] Introduce the OpenMPOpt transformation pass

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 21:36:10 PST 2019


jdoerfert created this revision.
jdoerfert added reviewers: kiranchandramohan, ABataev, RaviNarayanaswamy, gtbercea, grokos, sdmitriev, JonChesterfield, hfinkel, fghanim.
Herald added subscribers: dexonsmith, steven_wu, guansong, bollu, hiraditya, mgorny, mehdi_amini.
Herald added a project: LLVM.
jdoerfert added a parent revision: D69785: [OpenMP] Introduce the OpenMP-IR-Builder.
jdoerfert updated this revision to Diff 228177.
jdoerfert added a comment.

Remove leftover change


The OpenMPOpt pass is a CG-SCC pass in which OpenMP specific
optimizations can reside.

The OpenMPOpt pass uses the OpenMPKinds.def file to identify runtime
calls and their uses. This allows targeted transformations and eases
their implementation.

This initial patch deduplicates __kmpc_global_thread_num calls. We can
also identify arguments that are equivalent to such a call result and
use it instead. Later we can determine "gtid" arguments based on the use
in kernel functions etc.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69930

Files:
  llvm/include/llvm/Transforms/IPO/OpenMPOpt.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Transforms/IPO/CMakeLists.txt
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Other/new-pm-defaults.ll
  llvm/test/Other/new-pm-thinlto-defaults.ll
  llvm/test/Transforms/OpenMP/gtid.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69930.228177.patch
Type: text/x-patch
Size: 19839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191107/b53d0153/attachment.bin>


More information about the llvm-commits mailing list