mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[master-next] Update to work with recent dominator tree changes.
This patch started with a suggestion from Adrian Prantl to adapt to LLVM r307953. The code has changed more since then so I modified it to get it to build and I also fixed up StackPromotion to deal with related changes. (I did not search back very far but it looks like the StackPromotion change may have been a latent bug that did not matter much until recent changes started using the function parameter.)
This commit is contained in:
@@ -22,6 +22,14 @@ using namespace swift;
|
||||
template class llvm::DominatorTreeBase<SILBasicBlock, false>;
|
||||
template class llvm::DominatorTreeBase<SILBasicBlock, true>;
|
||||
template class llvm::DomTreeNodeBase<SILBasicBlock>;
|
||||
using SILDomTree = llvm::DomTreeBase<SILBasicBlock>;
|
||||
using SILPostDomTree = llvm::PostDomTreeBase<SILBasicBlock>;
|
||||
template void
|
||||
llvm::DomTreeBuilder::Calculate<SILDomTree, swift::SILFunction>(
|
||||
SILDomTree &DT, swift::SILFunction &F);
|
||||
template void
|
||||
llvm::DomTreeBuilder::Calculate<SILPostDomTree, swift::SILFunction>(
|
||||
SILPostDomTree &DT, swift::SILFunction &F);
|
||||
|
||||
/// Compute the immediate-dominators map.
|
||||
DominanceInfo::DominanceInfo(SILFunction *F)
|
||||
|
||||
Reference in New Issue
Block a user