[llvm] [AMDGPU] Defer emitting AMDGPUAsmPrinter local Resource Usage comments until the end (PR #198233)
Janek van Oirschot via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 2 21:59:02 PDT 2026
================
@@ -941,129 +1065,11 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
emitDVgprSymbol(MF);
if (isVerbose()) {
- MCSectionELF *CommentSection =
- Context.getELFSection(".AMDGPU.csdata", ELF::SHT_PROGBITS, 0);
- OutStreamer->switchSection(CommentSection);
+ DeferredComments.push_back({&MF.getFunction(), CurrentProgramInfo,
+ CurrentProgramInfo.getFunctionCodeSize(MF)});
----------------
JanekvO wrote:
What's the proper computed value? (AFAICT, the `local_end - function_name` computation doesn't resolve at asm time)
https://github.com/llvm/llvm-project/pull/198233
More information about the llvm-commits
mailing list