Lines Matching refs:Stack
440 GetDepth(const SmallVectorImpl<const MachineBasicBlock *> &Stack, in GetDepth() argument
443 for (auto X : reverse(Stack)) { in GetDepth()
448 assert(Depth < Stack.size() && "Branch destination should be in scope"); in GetDepth()
476 SmallVector<const MachineBasicBlock *, 8> Stack; in PlaceMarkers() local
481 assert(ScopeTops[Stack.back()->getNumber()] == &MBB && in PlaceMarkers()
483 Stack.pop_back(); in PlaceMarkers()
486 assert(Stack.back() == &MBB && "Loop top should be balanced"); in PlaceMarkers()
487 Stack.pop_back(); in PlaceMarkers()
488 Stack.pop_back(); in PlaceMarkers()
491 Stack.push_back(&MBB); in PlaceMarkers()
494 Stack.push_back(&MBB); in PlaceMarkers()
495 Stack.push_back(LoopTops[&MI]); in PlaceMarkers()
505 MO = MachineOperand::CreateImm(GetDepth(Stack, MO.getMBB())); in PlaceMarkers()
513 assert(Stack.empty() && "Control flow should be balanced"); in PlaceMarkers()