| 76 | } |
| 77 | |
| 78 | void InlinePass::AddLoopMerge(uint32_t merge_id, uint32_t continue_id, |
| 79 | std::unique_ptr<BasicBlock>* block_ptr) { |
| 80 | std::unique_ptr<Instruction> newLoopMerge(new Instruction( |
| 81 | context(), spv::Op::OpLoopMerge, 0, 0, |
| 82 | {{spv_operand_type_t::SPV_OPERAND_TYPE_ID, {merge_id}}, |
| 83 | {spv_operand_type_t::SPV_OPERAND_TYPE_ID, {continue_id}}, |
| 84 | {spv_operand_type_t::SPV_OPERAND_TYPE_LOOP_CONTROL, {0}}})); |
| 85 | (*block_ptr)->AddInstruction(std::move(newLoopMerge)); |
| 86 | } |
| 87 | |
| 88 | void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id, |
| 89 | std::unique_ptr<BasicBlock>* block_ptr, |
nothing calls this directly
no test coverage detected