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

Method ClearDebugScopeAndInlinedAtUses

source/opt/debug_info_manager.cpp:697–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697void DebugInfoManager::ClearDebugScopeAndInlinedAtUses(Instruction* inst) {
698 auto scope_id_to_users_itr = scope_id_to_users_.find(inst->result_id());
699 if (scope_id_to_users_itr != scope_id_to_users_.end()) {
700 scope_id_to_users_.erase(scope_id_to_users_itr);
701 }
702 auto inlinedat_id_to_users_itr =
703 inlinedat_id_to_users_.find(inst->result_id());
704 if (inlinedat_id_to_users_itr != inlinedat_id_to_users_.end()) {
705 inlinedat_id_to_users_.erase(inlinedat_id_to_users_itr);
706 }
707}
708
709void DebugInfoManager::AnalyzeDebugInst(Instruction* inst) {
710 if (inst->GetDebugScope().GetLexicalScope() != kNoDebugScope) {

Callers 1

KillInstMethod · 0.80

Calls 3

result_idMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected