Return true if id is mapped to any instruction, false otherwise.
| 227 | |
| 228 | // Return true if id is mapped to any instruction, false otherwise. |
| 229 | bool IsDefined(uint32_t id) { |
| 230 | return id < inst_map_.size() && inst_map_[id] != nullptr; |
| 231 | } |
| 232 | |
| 233 | void MapIdsToInstruction( |
| 234 | opt::IteratorRange<opt::Module::const_inst_iterator> section); |