Skip to content

Commit b1012f7

Browse files
aparshin-inteligcbot
authored andcommitted
VC can now dump asm for indirectly-called functions
1 parent 3202106 commit b1012f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

IGC/VectorCompiler/lib/GenXCodeGen/GenXCisaBuilder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,8 +1128,12 @@ bool GenXKernelBuilder::run() {
11281128
if (F->hasFnAttribute(genx::FunctionMD::CMStackCall) ||
11291129
F->hasFnAttribute(genx::FunctionMD::ReferencedIndirectly)) {
11301130
VISAFunction *stackFunc = nullptr;
1131+
11311132
FuncName = F->getName();
11321133
CisaBuilder->AddFunction(stackFunc, FuncName.c_str());
1134+
std::string AsmName = buildAsmName().append("_").append(FuncName);
1135+
CISA_CALL(stackFunc->AddKernelAttribute("OutputAsmPath",
1136+
AsmName.size(), AsmName.c_str()));
11331137
IGC_ASSERT(stackFunc);
11341138
Func2Kern[F] = stackFunc;
11351139
Kernel = stackFunc;

0 commit comments

Comments
 (0)