| 572 | } |
| 573 | |
| 574 | bool Instruction::AddDebugLine(const Instruction* inst) { |
| 575 | dbg_line_insts_.push_back(*inst); |
| 576 | dbg_line_insts_.back().unique_id_ = context()->TakeNextUniqueId(); |
| 577 | if (inst->IsDebugLineInst()) { |
| 578 | uint32_t new_id = context()->TakeNextId(); |
| 579 | if (new_id == 0) { |
| 580 | return false; |
| 581 | } |
| 582 | dbg_line_insts_.back().SetResultId(new_id); |
| 583 | } |
| 584 | if (context()->AreAnalysesValid(IRContext::kAnalysisDefUse)) |
| 585 | context()->get_def_use_mgr()->AnalyzeInstDefUse(&dbg_line_insts_.back()); |
| 586 | return true; |
| 587 | } |
| 588 | |
| 589 | bool Instruction::IsDebugLineInst() const { |
| 590 | NonSemanticShaderDebugInfoInstructions ext_opt = GetShaderDebugOpcode(); |
no test coverage detected