Lines Matching refs:Stack
86 unsigned getBranchDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
88 unsigned getDelegateDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
91 getRethrowDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
1566 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) { in getBranchDepth() argument
1568 for (auto X : reverse(Stack)) { in getBranchDepth()
1573 assert(Depth < Stack.size() && "Branch destination should be in scope"); in getBranchDepth()
1578 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) { in getDelegateDepth() argument
1580 return Stack.size(); in getDelegateDepth()
1586 return getBranchDepth(Stack, MBB); in getDelegateDepth()
1603 for (auto X : reverse(Stack)) { in getDelegateDepth()
1608 assert(Depth < Stack.size() && "Delegate destination should be in scope"); in getDelegateDepth()
1613 const SmallVectorImpl<EndMarkerInfo> &Stack, in getRethrowDepth() argument
1637 for (auto X : reverse(Stack)) { in getRethrowDepth()
1646 assert(Depth < Stack.size() && "Rethrow destination should be in scope"); in getRethrowDepth()
1652 SmallVector<EndMarkerInfo, 8> Stack; in rewriteDepthImmediates() local
1659 assert(ScopeTops[Stack.back().first->getNumber()]->getNumber() <= in rewriteDepthImmediates()
1662 Stack.pop_back(); in rewriteDepthImmediates()
1666 assert(Stack.back().first == &MBB && "Loop top should be balanced"); in rewriteDepthImmediates()
1667 Stack.pop_back(); in rewriteDepthImmediates()
1671 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1677 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1684 Stack.push_back(std::make_pair(EndToBegin[&MI]->getParent(), &MI)); in rewriteDepthImmediates()
1693 MI.getOperand(0).setImm(getRethrowDepth(Stack, EHPadStack)); in rewriteDepthImmediates()
1706 getDelegateDepth(Stack, MO.getMBB())); in rewriteDepthImmediates()
1709 getBranchDepth(Stack, MO.getMBB())); in rewriteDepthImmediates()
1716 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1721 assert(Stack.empty() && "Control flow should be balanced"); in rewriteDepthImmediates()