This doesn't quite match how SC prints it, which doesn't put it in a
comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252144
91177308-0d34-0410-b5e6-
96231b3b80d8
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(