[PATCH] D125060: [amdgpu] Implement lds kernel id intrinsic
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 5 11:26:58 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp:106
+ConstantInt *AMDGPUMachineFunction::getLDSKernelIdMetadata(const Function &F) {
+ auto MD = F.getMetadata("llvm.amdgcn.lds_kernel_id");
+ if (MD && MD->getNumOperands() == 1) {
----------------
arsenm wrote:
> Why '.' and '_'?
What is this metadata for? Where does it come from?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125060/new/
https://reviews.llvm.org/D125060
More information about the llvm-commits
mailing list