mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
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
This commit is contained in:
parent
88a9f0476c
commit
0ed0ced91c
@ -89,10 +89,16 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
|
||||
SectionKind::getReadOnly());
|
||||
OutStreamer.SwitchSection(CommentSection);
|
||||
|
||||
OutStreamer.EmitRawText(
|
||||
Twine("; Kernel info:\n") +
|
||||
"; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
|
||||
"; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\n");
|
||||
if (STM.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
|
||||
OutStreamer.EmitRawText(
|
||||
Twine("; Kernel info:\n") +
|
||||
"; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
|
||||
"; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\n");
|
||||
} else {
|
||||
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
|
||||
OutStreamer.EmitRawText(
|
||||
Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize)));
|
||||
}
|
||||
}
|
||||
|
||||
if (STM.dumpCode()) {
|
||||
|
Loading…
Reference in New Issue
Block a user