Skip to content

Commit ca648ee

Browse files
pratikasharigcbot
authored andcommitted
Fix computation of CFA, return address location, callee save GRF (#6)
location in .debug_frame section used for stack calls.
1 parent c786ad3 commit ca648ee

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)