diff options
author | Vincent Lejeune <vljn@ovi.com> | 2013-04-23 17:34:12 +0000 |
---|---|---|
committer | Vincent Lejeune <vljn@ovi.com> | 2013-04-23 17:34:12 +0000 |
commit | 2a74639bc7713146b1182328892807c421c84265 (patch) | |
tree | 4c328c909b9228b632f293919dcec9c5e0db3101 /lib/Target/R600/AMDGPUAsmPrinter.cpp | |
parent | 7a28d8afa77ac3afce265f2b61fb321e4e0d84d7 (diff) | |
download | llvm-2a74639bc7713146b1182328892807c421c84265.tar.gz llvm-2a74639bc7713146b1182328892807c421c84265.tar.bz2 llvm-2a74639bc7713146b1182328892807c421c84265.tar.xz |
R600: Use .AMDGPU.config section to emit stacksize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180124 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/R600/AMDGPUAsmPrinter.cpp')
-rw-r--r-- | lib/Target/R600/AMDGPUAsmPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUAsmPrinter.cpp b/lib/Target/R600/AMDGPUAsmPrinter.cpp index d8a380de83..dc0461a641 100644 --- a/lib/Target/R600/AMDGPUAsmPrinter.cpp +++ b/lib/Target/R600/AMDGPUAsmPrinter.cpp @@ -22,6 +22,7 @@ #include "SIDefines.h" #include "SIMachineFunctionInfo.h" #include "SIRegisterInfo.h" +#include "R600MachineFunctionInfo.h" #include "R600RegisterInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCSectionELF.h" @@ -75,6 +76,7 @@ void AMDGPUAsmPrinter::EmitProgramInfoR600(MachineFunction &MF) { unsigned MaxGPR = 0; const R600RegisterInfo * RI = static_cast<const R600RegisterInfo*>(TM.getRegisterInfo()); + R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); for (MachineFunction::iterator BB = MF.begin(), BB_E = MF.end(); BB != BB_E; ++BB) { @@ -97,6 +99,7 @@ void AMDGPUAsmPrinter::EmitProgramInfoR600(MachineFunction &MF) { } } OutStreamer.EmitIntValue(MaxGPR + 1, 4); + OutStreamer.EmitIntValue(MFI->StackSize, 4); } void AMDGPUAsmPrinter::EmitProgramInfoSI(MachineFunction &MF) { |