Skip to content

Commit 68999a6

Browse files
aparshin-inteligcbot
authored andcommitted
[Autobackout][FuncReg]Revert of change: 5a860db
extend VC shader dumps to include more DebugInfo-related information visa mapping and decoded gen debug info are dumped
1 parent ebbd73e commit 68999a6

File tree

2 files changed

+53
-218
lines changed

2 files changed

+53
-218
lines changed

IGC/DebugInfo/VISADebugDecoder.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ SPDX-License-Identifier: MIT
88

99
#include "VISADebugDecoder.hpp"
1010

11-
#include <llvm/ADT/Twine.h>
12-
1311
template <typename T>
1412
static void PrintItems(llvm::raw_ostream& OS, const T& Items,
1513
const char* Separator = " ") {
@@ -111,7 +109,7 @@ void IGC::DbgDecoder::LiveIntervalGenISA::dump() const
111109
void IGC::DbgDecoder::SubroutineInfo::print(llvm::raw_ostream& OS) const
112110
{
113111
OS << "Name=" << name << " [" << startVISAIndex << ";" << endVISAIndex <<
114-
"], retvals: ";
112+
"), retvals: ";
115113
PrintItems(OS, retval, ", ");
116114
}
117115

@@ -202,8 +200,7 @@ void IGC::DbgDecoder::DbgInfoFormat::print(llvm::raw_ostream& OS) const
202200
std::for_each(CISAIndexMap.begin(), CISAIndexMap.end(), [&OS](const auto& V) {
203201
auto VisaIndex = V.first;
204202
auto GenOff = V.second;
205-
OS << " GI: 0x" << llvm::Twine::utohexstr(GenOff) << " -> VI: "
206-
<< VisaIndex << "\n";
203+
OS << " GI: " << GenOff << " -> VI: " << VisaIndex << "\n";
207204
});
208205
OS << "</VISADebugInfo>";
209206
}

0 commit comments

Comments
 (0)