This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang to OMPIRBuilder
ClosedPublic

Authored by jsjodin on Dec 8 2022, 8:10 AM.

Details

Summary

This patch moves some of the logic on how to emit target region functions and
adds emitTargetRegionFunction to the OpenMPIRBuilder. Also the
OpenMPOffloadMandatory flag is added to the config.

Diff Detail

Event Timeline

jsjodin created this revision.Dec 8 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 8:10 AM
jsjodin requested review of this revision.Dec 8 2022, 8:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2022, 8:10 AM

LG

llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
1506–1507

minor comment mishap

jdoerfert accepted this revision.Dec 8 2022, 11:14 AM
This revision is now accepted and ready to land.Dec 8 2022, 11:14 AM
jsjodin updated this revision to Diff 481662.Dec 9 2022, 8:19 AM

Fix comment and test.

Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2022, 7:31 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript