This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][OpenMP] Add conversion support from FIR to LLVM Dialect for OMP Target
ClosedPublic

Authored by TIFitis on Apr 3 2023, 5:30 AM.

Details

Summary

This enables conversion of OpenMP Target op with region from FIR Dialect to LLVM IR Dialect.

Depends on D147247

Diff Detail

Event Timeline

TIFitis created this revision.Apr 3 2023, 5:30 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
TIFitis requested review of this revision.Apr 3 2023, 5:30 AM
TIFitis edited the summary of this revision. (Show Details)Apr 3 2023, 5:32 AM
TIFitis updated this revision to Diff 510764.Apr 4 2023, 6:00 AM

Added previous patch dependency.

kiranchandramohan requested changes to this revision.Apr 4 2023, 1:13 PM

The test is failing.

mlir/lib/Conversion/OpenMPToLLVM/OpenMPToLLVM.cpp
155–156

Looking back at this, not sure why we needed this pattern. Doesn't RegionLessOpConversion cover this case?

216

I think this is not required.

This revision now requires changes to proceed.Apr 4 2023, 1:13 PM
TIFitis updated this revision to Diff 511030.Apr 5 2023, 2:44 AM

Addressed reviewer comments.
Fixed op conversion for target data ops.

The test is failing.

The test was failing because of the missing dependency on target map clause support. On rerun it is passing.

Sorry, you are right about the conversion. I've updated the target op along with the target data ops to use the existing region conversion patters.

ping for reviews. Thanks :)

This revision is now accepted and ready to land.Apr 11 2023, 6:17 AM