mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +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());
|
SectionKind::getReadOnly());
|
||||||
OutStreamer.SwitchSection(CommentSection);
|
OutStreamer.SwitchSection(CommentSection);
|
||||||
|
|
||||||
OutStreamer.EmitRawText(
|
if (STM.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
|
||||||
Twine("; Kernel info:\n") +
|
OutStreamer.EmitRawText(
|
||||||
"; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
|
Twine("; Kernel info:\n") +
|
||||||
"; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\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()) {
|
if (STM.dumpCode()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user