MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / UpdateLexicalScope

Method UpdateLexicalScope

source/opt/instruction.cpp:526–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524}
525
526void Instruction::UpdateLexicalScope(uint32_t scope) {
527 dbg_scope_.SetLexicalScope(scope);
528 for (auto& i : dbg_line_insts_) {
529 i.dbg_scope_.SetLexicalScope(scope);
530 }
531 if (!IsLineInst() &&
532 context()->AreAnalysesValid(IRContext::kAnalysisDebugInfo)) {
533 context()->get_debug_info_mgr()->AnalyzeDebugInst(this);
534 }
535}
536
537void Instruction::UpdateDebugInlinedAt(uint32_t new_inlined_at) {
538 dbg_scope_.SetInlinedAt(new_inlined_at);

Callers 2

ProcessMethod · 0.80

Calls 5

IsLineInstFunction · 0.85
SetLexicalScopeMethod · 0.80
AreAnalysesValidMethod · 0.80
AnalyzeDebugInstMethod · 0.80
get_debug_info_mgrMethod · 0.80

Tested by

no test coverage detected