Skip to content
Snippets Groups Projects
Commit 161e2b42 authored by Matt Arsenault's avatar Matt Arsenault
Browse files

AMDGPU: Make MFI fields private

llvm-svn: 300596
parent 922940b6
No related branches found
No related tags found
No related merge requests found
...@@ -512,10 +512,10 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo, ...@@ -512,10 +512,10 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG; AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG;
} }
if (MFI->NumUserSGPRs > STM.getMaxNumUserSGPRs()) { if (MFI->getNumUserSGPRs() > STM.getMaxNumUserSGPRs()) {
LLVMContext &Ctx = MF.getFunction()->getContext(); LLVMContext &Ctx = MF.getFunction()->getContext();
DiagnosticInfoResourceLimit Diag(*MF.getFunction(), "user SGPRs", DiagnosticInfoResourceLimit Diag(*MF.getFunction(), "user SGPRs",
MFI->NumUserSGPRs, DS_Error); MFI->getNumUserSGPRs(), DS_Error);
Ctx.diagnose(Diag); Ctx.diagnose(Diag);
} }
...@@ -572,7 +572,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo, ...@@ -572,7 +572,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
} }
unsigned LDSSpillSize = unsigned LDSSpillSize =
MFI->LDSWaveSpillSize * MFI->getMaxFlatWorkGroupSize(); MFI->getLDSWaveSpillSize() * MFI->getMaxFlatWorkGroupSize();
ProgInfo.LDSSize = MFI->getLDSSize() + LDSSpillSize; ProgInfo.LDSSize = MFI->getLDSSize() + LDSSpillSize;
ProgInfo.LDSBlocks = ProgInfo.LDSBlocks =
......
...@@ -133,14 +133,12 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction { ...@@ -133,14 +133,12 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
AMDGPUBufferPseudoSourceValue BufferPSV; AMDGPUBufferPseudoSourceValue BufferPSV;
AMDGPUImagePseudoSourceValue ImagePSV; AMDGPUImagePseudoSourceValue ImagePSV;
public: private:
// FIXME: Make private
unsigned LDSWaveSpillSize; unsigned LDSWaveSpillSize;
unsigned ScratchOffsetReg; unsigned ScratchOffsetReg;
unsigned NumUserSGPRs; unsigned NumUserSGPRs;
unsigned NumSystemSGPRs; unsigned NumSystemSGPRs;
private:
bool HasSpilledSGPRs; bool HasSpilledSGPRs;
bool HasSpilledVGPRs; bool HasSpilledVGPRs;
bool HasNonSpillStackObjects; bool HasNonSpillStackObjects;
...@@ -535,6 +533,10 @@ public: ...@@ -535,6 +533,10 @@ public:
llvm_unreachable("unexpected dimension"); llvm_unreachable("unexpected dimension");
} }
unsigned getLDSWaveSpillSize() const {
return LDSWaveSpillSize;
}
const AMDGPUBufferPseudoSourceValue *getBufferPSV() const { const AMDGPUBufferPseudoSourceValue *getBufferPSV() const {
return &BufferPSV; return &BufferPSV;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment