llvm-project
f279c47c - AMDGPU gfx12: Add _dvgpr$ symbols for dynamic VGPRs (#148251)

Commit
138 days ago
AMDGPU gfx12: Add _dvgpr$ symbols for dynamic VGPRs (#148251) For each function with the AMDGPU_CS_Chain calling convention, with dynamic VGPRs enabled, add a _dvgpr$ symbol, with the value of the function symbol, plus an offset encoding one less than the number of VGPR blocks used by the function (16 VGPRs per block, no more than 128) in bits 5..3 of the symbol value. This is used by a front-end to have functions that are chained rather than called, and a dispatcher that dynamically resizes the VGPR count before dispatching to a function.
Author
Parents
Loading