This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by TIFitis on Jan 26 2023, 7:00 AM.

Details

Summary

This enables conversion of OpenMP Target Data, Enter Data and Exit Data from FIR Dialect to LLVM IR Dialect.

Diff Detail

Event Timeline

TIFitis created this revision.Jan 26 2023, 7:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
TIFitis requested review of this revision.Jan 26 2023, 7:00 AM
mlir/test/Conversion/OpenMPToLLVM/convert-to-llvmir.mlir
157–161

%a, %b etc should be references, I guess. Can you switch to using the !llvm.ptr type for this?

TIFitis updated this revision to Diff 492690.Jan 27 2023, 3:32 AM

Addressed reviewer comments.

clementval added inline comments.Jan 27 2023, 3:38 AM
mlir/test/Conversion/OpenMPToLLVM/convert-to-llvmir.mlir
153

You should not have the regex otherwise you redefine the variable instead of checking it with the captured one. Same below.

TIFitis updated this revision to Diff 492695.Jan 27 2023, 3:44 AM
TIFitis marked an inline comment as done.

Removed regex from //CHECKs.

This revision is now accepted and ready to land.Jan 27 2023, 1:40 PM