Returns the list of induction variables within the loop.
| 849 | |
| 850 | // Returns the list of induction variables within the loop. |
| 851 | void Loop::GetInductionVariables( |
| 852 | std::vector<Instruction*>& induction_variables) const { |
| 853 | for (Instruction& inst : *loop_header_) { |
| 854 | if (inst.opcode() == spv::Op::OpPhi) { |
| 855 | induction_variables.push_back(&inst); |
| 856 | } |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | Instruction* Loop::FindConditionVariable( |
| 861 | const BasicBlock* condition_block) const { |
no test coverage detected