Lines Matching defs:Stack

86   unsigned getBranchDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
88 unsigned getDelegateDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
90 unsigned getRethrowDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
1566 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) {
1568 for (auto X : reverse(Stack)) {
1573 assert(Depth < Stack.size() && "Branch destination should be in scope");
1578 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) {
1580 return Stack.size();
1586 return getBranchDepth(Stack, MBB);
1589 // corresponding try's end_try BB because Stack contains each marker's end BB.
1603 for (auto X : reverse(Stack)) {
1608 assert(Depth < Stack.size() && "Delegate destination should be in scope");
1613 const SmallVectorImpl<EndMarkerInfo> &Stack,
1616 for (auto X : reverse(Stack)) {
1625 assert(Depth < Stack.size() && "Rethrow destination should be in scope");
1631 SmallVector<EndMarkerInfo, 8> Stack;
1637 assert(ScopeTops[Stack.back().first->getNumber()]->getNumber() <=
1640 Stack.pop_back();
1644 assert(Stack.back().first == &MBB && "Loop top should be balanced");
1645 Stack.pop_back();
1650 Stack.push_back(std::make_pair(&MBB, &MI));
1654 Stack.push_back(std::make_pair(EndToBegin[&MI]->getParent(), &MI));
1667 getDelegateDepth(Stack, MO.getMBB()));
1670 getRethrowDepth(Stack, MO.getMBB()));
1673 getBranchDepth(Stack, MO.getMBB()));
1680 Stack.push_back(std::make_pair(&MBB, &MI));
1685 assert(Stack.empty() && "Control flow should be balanced");