Lines Matching refs:Stack
86 unsigned getBranchDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
88 unsigned getDelegateDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
91 getRethrowDepth(const SmallVectorImpl<EndMarkerInfo> &Stack,
1567 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) { in getBranchDepth() argument
1569 for (auto X : reverse(Stack)) { in getBranchDepth()
1574 assert(Depth < Stack.size() && "Branch destination should be in scope"); in getBranchDepth()
1579 const SmallVectorImpl<EndMarkerInfo> &Stack, const MachineBasicBlock *MBB) { in getDelegateDepth() argument
1581 return Stack.size(); in getDelegateDepth()
1587 return getBranchDepth(Stack, MBB); in getDelegateDepth()
1604 for (auto X : reverse(Stack)) { in getDelegateDepth()
1609 assert(Depth < Stack.size() && "Delegate destination should be in scope"); in getDelegateDepth()
1614 const SmallVectorImpl<EndMarkerInfo> &Stack, in getRethrowDepth() argument
1638 for (auto X : reverse(Stack)) { in getRethrowDepth()
1647 assert(Depth < Stack.size() && "Rethrow destination should be in scope"); in getRethrowDepth()
1653 SmallVector<EndMarkerInfo, 8> Stack; in rewriteDepthImmediates() local
1660 assert(ScopeTops[Stack.back().first->getNumber()]->getNumber() <= in rewriteDepthImmediates()
1663 Stack.pop_back(); in rewriteDepthImmediates()
1667 assert(Stack.back().first == &MBB && "Loop top should be balanced"); in rewriteDepthImmediates()
1668 Stack.pop_back(); in rewriteDepthImmediates()
1672 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1678 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1685 Stack.push_back(std::make_pair(EndToBegin[&MI]->getParent(), &MI)); in rewriteDepthImmediates()
1694 MI.getOperand(0).setImm(getRethrowDepth(Stack, EHPadStack)); in rewriteDepthImmediates()
1707 getDelegateDepth(Stack, MO.getMBB())); in rewriteDepthImmediates()
1710 getBranchDepth(Stack, MO.getMBB())); in rewriteDepthImmediates()
1717 Stack.push_back(std::make_pair(&MBB, &MI)); in rewriteDepthImmediates()
1722 assert(Stack.empty() && "Control flow should be balanced"); in rewriteDepthImmediates()