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

Method ClearDbgLineInsts

source/opt/instruction.cpp:548–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void Instruction::ClearDbgLineInsts() {
549 if (context()->AreAnalysesValid(IRContext::kAnalysisDefUse)) {
550 auto def_use_mgr = context()->get_def_use_mgr();
551 for (auto& l_inst : dbg_line_insts_) def_use_mgr->ClearInst(&l_inst);
552 }
553 clear_dbg_line_insts();
554}
555
556bool Instruction::UpdateDebugInfoFrom(const Instruction* from,
557 const Instruction* line) {

Callers 1

MergeWithSuccessorFunction · 0.80

Calls 3

AreAnalysesValidMethod · 0.80
ClearInstMethod · 0.80
get_def_use_mgrMethod · 0.45

Tested by

no test coverage detected