[clang] [llvm] [AMDGPU][SIInsertWaitcnt] Implement Waitcnt Expansion for Profiling (PR #169345)
Pankaj Dwivedi via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 04:38:46 PST 2026
================
@@ -443,6 +443,8 @@ void AMDGPUTargetCodeGenInfo::setTargetAttributes(
setFunctionDeclAttributes(FD, F, M);
if (!getABIInfo().getCodeGenOpts().EmitIEEENaNCompliantInsts)
F->addFnAttr("amdgpu-ieee", "false");
+ if (getABIInfo().getCodeGenOpts().AMDGPUExpandWaitcntProfiling)
+ F->addFnAttr("amdgpu-expand-waitcnt-profiling");
----------------
PankajDwivedi-25 wrote:
Sure, let me do it in a follow-up patch.
https://github.com/llvm/llvm-project/pull/169345
More information about the cfe-commits
mailing list