[PATCH] D13965: AMDGPU: Print number user SGPRs
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 16:59:51 PDT 2015
arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.
This doesn't quite match how SC prints it, which doesn't put it in a comment.
http://reviews.llvm.org/D13965
Files:
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Index: lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
===================================================================
--- lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -165,6 +165,12 @@
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(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13965.38066.patch
Type: text/x-patch
Size: 776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/a8bc00b7/attachment.bin>
More information about the llvm-commits
mailing list