MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / AddLoopMerge

Method AddLoopMerge

source/opt/inline_pass.cpp:78–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void 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
88void InlinePass::AddStore(uint32_t ptr_id, uint32_t val_id,
89 std::unique_ptr<BasicBlock>* block_ptr,

Callers

nothing calls this directly

Calls 1

AddInstructionMethod · 0.45

Tested by

no test coverage detected