[PATCH] D151996: [AMDGPU] Start documenting calling conventions. NFC

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 20 09:24:24 PDT 2023


arsenm added a comment.

In D151996#4435341 <https://reviews.llvm.org/D151996#4435341>, @JonChesterfield wrote:

> @arsenm does compute have this available? I've periodically wanted to be able to write a function which assumes a parameter is passed in SGPRs and hope for a compile time error calling it if that doesn't work out.

No, I just consider this a bug. The handling for inreg was artificially limited to amdgpu_gfx. You would also get a waterfall loop, not an error.

Semi-related, I think we should start interpreting i1 argument values as SGPR masks (i1 inreg would be extended to sreg32)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151996/new/

https://reviews.llvm.org/D151996



More information about the llvm-commits mailing list