Lines Matching defs:lhs
134 friend Block& operator>>(Block& lhs, Block& successor);
137 /// Assigns the successors for the Block on the lhs
138 Block& operator>>(Block& lhs, std::vector<Block> successors) {
139 if (lhs.type_ == spv::Op::OpBranchConditional) {
141 } else if (lhs.type_ == spv::Op::OpSwitch) {
144 lhs.successors_ = successors;
145 return lhs;
148 /// Assigns the successor for the Block on the lhs
149 Block& operator>>(Block& lhs, Block& successor) {
150 assert(lhs.type_ == spv::Op::OpBranch);
151 lhs.successors_.push_back(successor);
152 return lhs;