llvm-project
58c296be - AMDGPU: Include callees in backend_stack_size PAL metadata (#234522)

Commit
1 day ago
AMDGPU: Include callees in backend_stack_size PAL metadata (#234522) The stack size reported in the PAL metadata of a chain function should include the stack sizes of any callees, since the consumers don't have access to the call graph (this is especially important for whole wave functions, because we don't even emit any PAL metadata for them). The consumers are generally expected to allocate scratch based on the maximum `.backend_stack_size` emitted for the functions in a pipeline. They will also have to deal with recursion and indirect calls. The `.stack_frame_size_in_bytes` metadata remains unchanged, i.e. it represents just the stack size of the current function (without its callees). Assisted-by: AI
Author
Parents
Loading