Lines Matching refs:instr
107 const auto visit_fn = [this](Instruction* instr, BasicBlock** dest_bb) {
109 if (instr->opcode() == spv::Op::OpStore) {
110 uint32_t lhs_id = instr->GetSingleWordOperand(0);
111 uint32_t rhs_id = instr->GetSingleWordOperand(1);
174 const auto visit_fn = [this, &phi_instr](Instruction* instr,
177 if (instr->opcode() == spv::Op::OpLoad) {
178 uint32_t rhs_id = instr->GetSingleWordOperand(2);
182 values_[instr->result_id()] = val;
185 } else if (instr->opcode() == spv::Op::OpPhi) {
186 phi_instr = instr;
188 for (uint32_t i = 2; i < instr->NumOperands(); i += 2) {
189 uint32_t phi_arg_id = instr->GetSingleWordOperand(i);
194 values_[instr->result_id()] = it->second;