llvm.org GIT mirror llvm / 0ed0ced
R600: Add stack size to .AMDGPUcsdata section reviewed-by: Vincent Lejeune <vljn at ovi.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199837 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 6 years ago
1 changed file(s) with 10 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8888 SectionKind::getReadOnly());
8989 OutStreamer.SwitchSection(CommentSection);
9090
91 OutStreamer.EmitRawText(
92 Twine("; Kernel info:\n") +
93 "; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
94 "; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\n");
91 if (STM.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
92 OutStreamer.EmitRawText(
93 Twine("; Kernel info:\n") +
94 "; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
95 "; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\n");
96 } else {
97 R600MachineFunctionInfo *MFI = MF.getInfo();
98 OutStreamer.EmitRawText(
99 Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize)));
100 }
95101 }
96102
97103 if (STM.dumpCode()) {