addFieldToRecordDecl and createGlobalStruct methods had file static scope. They
are required by AMDGCN OpenMP CodeGen (D86097), thus put them in a utility class.
Details
Details
- Reviewers
JonChesterfield ABataev jdoerfert
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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.