This is an archive of the discontinued LLVM Phabricator instance.

[libomptarget] Add register usage info to kernel metadata
ClosedPublic

Authored by dhruvachak on Mar 17 2021, 5:31 PM.

Details

Summary

Add register usage information to the runtime metadata so that it can be used during kernel launch (that change will be in a different commit). Add this information to the kernel trace.

Diff Detail

Event Timeline

dhruvachak created this revision.Mar 17 2021, 5:31 PM
dhruvachak requested review of this revision.Mar 17 2021, 5:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 5:31 PM
JonChesterfield accepted this revision.EditedMar 18 2021, 3:45 AM

Looks good to me, thanks.

We should probably use uint64_t everywhere, instead of sometimes truncating to uint32_t, but that pattern and the 0,0,0,0, one are pre-existing.

Let's go with this and report errors on implausible (e.g. > 4 billion) register counts as a separate patch, along with sanity checking requested LDS etc.

This revision is now accepted and ready to land.Mar 18 2021, 3:45 AM

Looks good to me, thanks.

We should probably use uint64_t everywhere, instead of sometimes truncating to uint32_t, but that pattern and the 0,0,0,0, one are pre-existing.

Let's go with this and report errors on implausible (e.g. > 4 billion) register counts as a separate patch, along with sanity checking requested LDS etc.

Thanks, Jon. I don't have commit access. Can you please land this change?

Sure. The process for requesting access has changed since I did it, can't remember what it is now.

This revision was landed with ongoing or failed builds.Mar 18 2021, 10:01 AM
This revision was automatically updated to reflect the committed changes.

Ah, apologies. My 'land it' script has clobbered the author field. Will need to look up how to not do that in future