[llvm] r252144 - AMDGPU: Print number user SGPRs
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 21:27:08 PST 2015
Author: arsenm
Date: Wed Nov 4 23:27:07 2015
New Revision: 252144
URL: http://llvm.org/viewvc/llvm-project?rev=252144&view=rev
Log:
AMDGPU: Print number user SGPRs
This doesn't quite match how SC prints it, which doesn't put it in a
comment.
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp?rev=252144&r1=252143&r2=252144&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp Wed Nov 4 23:27:07 2015
@@ -165,6 +165,12 @@ bool AMDGPUAsmPrinter::runOnMachineFunct
false);
OutStreamer->emitRawComment(" ScratchSize: " + Twine(KernelInfo.ScratchSize),
false);
+
+ const SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
+
+ OutStreamer->emitRawComment(" COMPUTE_PGM_RSRC2:USER_SGPR: " +
+ Twine(MFI->NumUserSGPRs),
+ false);
} else {
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
OutStreamer->emitRawComment(
More information about the llvm-commits
mailing list