| 652 | } |
| 653 | |
| 654 | bool FunctionIsEntryPoint(opt::IRContext* context, uint32_t function_id) { |
| 655 | for (auto& entry_point : context->module()->entry_points()) { |
| 656 | if (entry_point.GetSingleWordInOperand(1) == function_id) { |
| 657 | return true; |
| 658 | } |
| 659 | } |
| 660 | return false; |
| 661 | } |
| 662 | |
| 663 | bool IdIsAvailableAtUse(opt::IRContext* context, |
| 664 | opt::Instruction* use_instruction, |
no test coverage detected