This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFC] Encapsulate some CGOpenMPRuntime static methods in a utility class
AbandonedPublic

Authored by saiislam on Nov 26 2020, 3:24 AM.

Details

Summary

addFieldToRecordDecl and createGlobalStruct methods had file static scope. They
are required by AMDGCN OpenMP CodeGen (D86097), thus put them in a utility class.

Diff Detail

Event Timeline

saiislam created this revision.Nov 26 2020, 3:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2020, 3:24 AM
saiislam requested review of this revision.Nov 26 2020, 3:24 AM
JonChesterfield requested changes to this revision.Nov 26 2020, 8:25 AM

This moves some private free functions into a CodeGenUtil class in the header so that the amdgpu plugin can call them in order to construct the kern_desc object. Said kern_desc object has the review comment "This kern_desc object should be deleted, not upstreamed." in the patch from which you extracted this change.

Instead of this, the kern_desc part of D86097 should have been removed.

This revision now requires changes to proceed.Nov 26 2020, 8:25 AM
saiislam abandoned this revision.Sep 21 2021, 7:25 AM