diff options
author | Jan Sjodin <jan_sjodin@yahoo.com> | 2023-07-10 10:55:47 -0400 |
---|---|---|
committer | Jan Sjodin <jan_sjodin@yahoo.com> | 2023-07-13 09:14:42 -0400 |
commit | 45a9604417dbcb73d1b2fb3d7f8824a97d4b00c1 (patch) | |
tree | 17261c4b611675f78e366ecab59d2985b2578be4 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 8d598531b3f5435e51fed47e9de989d209bac426 (diff) | |
download | llvm-45a9604417dbcb73d1b2fb3d7f8824a97d4b00c1.zip llvm-45a9604417dbcb73d1b2fb3d7f8824a97d4b00c1.tar.gz llvm-45a9604417dbcb73d1b2fb3d7f8824a97d4b00c1.tar.bz2 |
[Flang][OpenMP][MLIR] Add early outlining pass for omp.target operations to flang
This patch implements an early outlining transform of omp.target operations in
flang. The pass is needed because optimizations may cross target op region
boundaries, but with the outlining the resulting functions only contain a
single omp.target op plus a func.return, so there should not be any opportunity
to optimize across region boundaries.
The patch also adds an interface to be able to store and retrieve the parent
function name of the original target operation. This is needed to be able to
create correct kernel function names when lowering to LLVM-IR.
Reviewed By: kiranchandramohan, domada
Differential Revision: https://reviews.llvm.org/D154879
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions