[PATCH] D147313: [MLIR][OMPIRBuilder] Lower OpenMP MLIR target attributes to LLVM IR
Dominik Adamski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 04:05:58 PDT 2023
domada created this revision.
domada added reviewers: kiranchandramohan, kiranktp, dpalermo, skatrak, agozillon, TIFitis, NimishMishra, jdoerfert, jsjodin.
Herald added subscribers: sunshaoce, Moerafaat, zero9178, bzcheeseman, awarzynski, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini, thopre, guansong, hiraditya, yaxunl.
Herald added a reviewer: ftynse.
Herald added a project: All.
domada requested review of this revision.
Herald added a reviewer: nicolasvasilache.
Herald added subscribers: llvm-commits, jplehr, sstefan1, stephenneuendorffer, nicolasvasilache.
Herald added projects: MLIR, LLVM.
OpenMP MLIR attributes are converted to LLVM IR at the end of OpenMP MLIR lowering.
OpenMP Task operation requires additional wrapper which is generated by the callback function as the part of finalization process. Finalization process is done after lowering of OpenMP MLIR target attributes. In consequence wrapper function inherits target attributes from its parent .
Added tests for checking the correctness of the lowering.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D147313
Files:
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/include/llvm/Transforms/Utils/CodeExtractor.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
mlir/test/Target/LLVMIR/openmp-llvm.mlir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147313.509959.patch
Type: text/x-patch
Size: 15280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230331/d30324be/attachment.bin>
More information about the llvm-commits
mailing list