This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Mark amdgpu_gfx functions as module entry function
ClosedPublic

Authored by sebastian-ne on Dec 9 2020, 9:30 AM.

Details

Summary
  • Allows lds allocations
  • Writes resource usage into COMPUTE_PGM_RSRC1 registers in PAL metadata

Diff Detail

Event Timeline

sebastian-ne created this revision.Dec 9 2020, 9:30 AM
sebastian-ne requested review of this revision.Dec 9 2020, 9:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 9 2020, 9:30 AM
arsenm added inline comments.Dec 9 2020, 11:12 AM
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
939–940

One or the other error methods

llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
51

Naming is a bit weird for the comment

sebastian-ne marked 2 inline comments as done.

Makes sense, thanks

arsenm added inline comments.Dec 10 2020, 3:03 PM
llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
51

"the driver" is also unclear

Change comments to differentiate between calls from hardware and calls from other functions.
I hope this is more clear than “driver”.

arsenm accepted this revision.Dec 12 2020, 6:51 AM
This revision is now accepted and ready to land.Dec 12 2020, 6:51 AM
This revision was landed with ongoing or failed builds.Dec 14 2020, 1:44 AM
This revision was automatically updated to reflect the committed changes.