Skip to content

Commit 9a749ed

Browse files
igcbotpratikashar
andauthored
Fix computation of CFA, return address location, callee save GRF (#6)
location in .debug_frame section used for stack calls. Co-authored-by: Pratik J Ashar <[email protected]>
1 parent 1afdc06 commit 9a749ed

File tree

5 files changed

+251
-84
lines changed

5 files changed

+251
-84
lines changed

IGC/Compiler/DebugInfo/ScalarVISAModule.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ class ScalarVisaModule final : public IGC::VISAModule {
4343
return m_pShader->getGRFSize();
4444
}
4545

46+
unsigned getNumGRFs() const override {
47+
return m_pShader->ProgramOutput()->m_numGRFTotal;
48+
}
49+
4650
unsigned getPointerSize() const override;
4751

4852
llvm::ArrayRef<char> getGenDebug() const override {

0 commit comments

Comments
 (0)