[PATCH] D151153: [AMDGPU] Add attribute to AMDGPU ctor / dtor to indicate single threadedness

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 08:10:39 PDT 2023


arsenm added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp:41
   InitOrFiniKernel->setCallingConv(CallingConv::AMDGPU_KERNEL);
+  InitOrFiniKernel->addFnAttr("amdgpu-flat-work-group-size", "1,1");
   if (IsCtor)
----------------
We should probably teach UniformityAnalysis about this special case for the work item IDs 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D151153



More information about the llvm-commits mailing list