| 88 | return from < id_map_.size() ? id_map_[from] : 0; |
| 89 | } |
| 90 | const opt::Instruction* MappedInst(const opt::Instruction* from_inst) const { |
| 91 | assert(from_inst != nullptr); |
| 92 | assert(!from_inst->HasResultId()); |
| 93 | |
| 94 | auto mapped = inst_map_.find(from_inst); |
| 95 | if (mapped == inst_map_.end()) { |
| 96 | return nullptr; |
| 97 | } |
| 98 | return mapped->second; |
| 99 | } |
| 100 | |
| 101 | bool IsMapped(uint32_t from) const { |
| 102 | assert(from != 0); |
no test coverage detected