Lines Matching defs:gate
30 for (auto gate : loopInfo->loopBodys) {
31 acc_.ShortPrint(gate);
35 for (auto gate : loopInfo->loopExits) {
36 acc_.ShortPrint(gate);
46 auto gate = *it;
47 if (gate == Circuit::NullGate()) {
50 auto loopInfo = chunk_->New<LoopInfo>(chunk_, gate);
120 void LoopAnalysis::UpdateLoopInfo(LoopInfo* loopInfo, GateRef gate, size_t dep)
122 auto op = acc_.GetOpCode(gate);
128 loopInfo->loopBacks.emplace_back(gate);
135 loopInfo->loopExits.emplace_back(gate);
150 if (acc_.HasFrameState(gate)) {
151 auto frameState = acc_.GetFrameState(gate);
158 loopInfo->loopBodys.emplace_back(gate);
201 for (auto gate : gateList) {
202 auto op = acc_.GetOpCode(gate);
205 acc_.UpdateAllUses(gate, acc_.GetIn(gate, 0));
206 acc_.DeleteGate(gate);
211 acc_.UpdateAllUses(gate, acc_.GetIn(gate, 1));
212 acc_.DeleteGate(gate);