This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget][nfc] Replace out arguments with struct return
ClosedPublic

Authored by JonChesterfield on Jun 30 2021, 2:20 PM.

Details

Summary

A step towards making this function adequately self contained that it
can be tested easily. No functional change intended here, left variable
names unchanged.

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Jun 30 2021, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2021, 2:20 PM
  • hoist access to device id
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
1891

replaces passing device_id with passing the one integer it was used to look up. Rolling into this change as still NFC and it spares me a merge conflict fixup

ronlieb accepted this revision.Jun 30 2021, 2:37 PM

lgtm

This revision is now accepted and ready to land.Jun 30 2021, 2:37 PM
JonChesterfield edited the summary of this revision. (Show Details)Jun 30 2021, 2:39 PM
This revision was landed with ongoing or failed builds.Jun 30 2021, 2:40 PM
This revision was automatically updated to reflect the committed changes.

Anything that is accessible directly from getLaunchVals (such as DeviceInfo.*), can we not pass them and access them directly? e.g. DeviceInfo.EnvTeamLimit, etc. That would minimize the number of arguments to getLaunchVals.