This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][libomptarget] Remove unused global variables
ClosedPublic

Authored by pdhaliwal on May 17 2021, 12:58 AM.

Details

Summary

This initial patch removes some unused variables from global namespace.
There will more incoming patches for moving global variables to classes
or static members.

Diff Detail

Event Timeline

pdhaliwal created this revision.May 17 2021, 12:58 AM
pdhaliwal requested review of this revision.May 17 2021, 12:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 17 2021, 12:58 AM
pdhaliwal updated this revision to Diff 345783.May 17 2021, 1:15 AM

Fix commit message.

pdhaliwal edited the summary of this revision. (Show Details)May 17 2021, 1:15 AM
JonChesterfield accepted this revision.May 17 2021, 2:42 AM
JonChesterfield edited the summary of this revision. (Show Details)

Nice!

openmp/libomptarget/plugins/amdgpu/impl/internal.h
121

Nice. Does this mean there's an #include time.h or ctime that can be dropped?

This revision is now accepted and ready to land.May 17 2021, 2:43 AM
pdhaliwal updated this revision to Diff 345803.May 17 2021, 2:49 AM

Removed two more variables, atl_cpu_kernarg_region & atl_gpu_kernarg_region

pdhaliwal requested review of this revision.May 17 2021, 2:52 AM

I had removed two more variables. @JonChesterfield could you take a look again?

openmp/libomptarget/plugins/amdgpu/impl/internal.h
121

I don't see those header files included in the deps. It seems that those might be getting included from hsa

JonChesterfield accepted this revision.May 17 2021, 3:48 AM

Looks like they've been made function local as opposed to removed, but that's still good. Thanks

This revision is now accepted and ready to land.May 17 2021, 3:48 AM
This revision was landed with ongoing or failed builds.May 17 2021, 10:41 PM
This revision was automatically updated to reflect the committed changes.