File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -439,4 +439,10 @@ namespace IGC
439
439
}
440
440
}
441
441
442
+ // Debug line info helper function
443
+ inline void updateDebugLoc (llvm::Instruction* pOrigin, llvm::Instruction* pNew)
444
+ {
445
+ IGC_ASSERT (pOrigin && pNew && " Expect valid instructions" );
446
+ pNew->setDebugLoc (pOrigin->getDebugLoc ());
447
+ }
442
448
} // namespace IGC
Original file line number Diff line number Diff line change @@ -235,13 +235,6 @@ bool SubGroupFuncsResolution::runOnFunction(Function& F)
235
235
return m_changed;
236
236
}
237
237
238
- // Debug line info helper function
239
- static void updateDebugLoc (Instruction* pOrigin, Instruction* pNew)
240
- {
241
- IGC_ASSERT (pOrigin && pNew && " Expect valid instructions" );
242
- pNew->setDebugLoc (pOrigin->getDebugLoc ());
243
- }
244
-
245
238
// Helps to obtain temporary index corresponding to the kernel argument.
246
239
// This index will be used during codegen to resolve BTIs for Images (SRVs and UAVs).
247
240
void SubGroupFuncsResolution::BTIHelper (llvm::CallInst& CI)
Original file line number Diff line number Diff line change @@ -93,12 +93,6 @@ bool WIFuncResolution::runOnFunction(Function& F)
93
93
return m_changed;
94
94
}
95
95
96
- // Debug line info helper function
97
- static void updateDebugLoc (Instruction* pOrigin, Instruction* pNew) {
98
- IGC_ASSERT (pOrigin && pNew && " Expect valid instructions" );
99
- pNew->setDebugLoc (pOrigin->getDebugLoc ());
100
- }
101
-
102
96
void WIFuncResolution::visitCallInst (CallInst& CI)
103
97
{
104
98
if (!CI.getCalledFunction ())
You can’t perform that action at this time.
0 commit comments