| 70 | } |
| 71 | |
| 72 | uint32_t Module::GetGlobalValue(spv::Op opcode) const { |
| 73 | for (auto& inst : types_values_) { |
| 74 | if (inst.opcode() == opcode) return inst.result_id(); |
| 75 | } |
| 76 | return 0; |
| 77 | } |
| 78 | |
| 79 | void Module::AddGlobalValue(spv::Op opcode, uint32_t result_id, |
| 80 | uint32_t type_id) { |
no test coverage detected