[PATCH] D127052: [amdgpu][nfc] Allocate kernel-specific LDS struct deterministically
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 10 08:09:47 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp:90
+ std::string KernelLDSName = "llvm.amdgcn.kernel.";
+ KernelLDSName += F.getName();
+ KernelLDSName += ".lds";
----------------
JonChesterfield wrote:
> arsenm wrote:
> > Need to be careful about multiple anonymous functions
> How so? By the time they're functions in IR they have unique names as far as I know. If they don't, the current lowering is already broken for them as it assumes a struct can be uniquely associated with a function by deriving the variable name from the function name
They don't have to have a name at all. If you have kernels "@0" and "@1" they'll get the same thing here
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127052/new/
https://reviews.llvm.org/D127052
More information about the llvm-commits
mailing list