Lines Matching refs:GuardBlocks

68 static void setupBranchForGuard(ArrayRef<BasicBlock *> GuardBlocks,  in setupBranchForGuard()  argument
72 assert(GuardBlocks.size() == Outgoing.size() - 1); in setupBranchForGuard()
74 for (int E = GuardBlocks.size() - 1; I != E; ++I) { in setupBranchForGuard()
76 BranchInst::Create(Out, GuardBlocks[I + 1], GuardPredicates[Out], in setupBranchForGuard()
77 GuardBlocks[I]); in setupBranchForGuard()
81 GuardBlocks[I]); in setupBranchForGuard()
88 ArrayRef<BasicBlock *> GuardBlocks, in calcPredicateUsingInteger() argument
90 LLVMContext &Context = GuardBlocks.front()->getContext(); in calcPredicateUsingInteger()
91 BasicBlock *FirstGuardBlock = GuardBlocks.front(); in calcPredicateUsingInteger()
124 Out->getName() + ".predicate", GuardBlocks[I]); in calcPredicateUsingInteger()
133 SmallVectorImpl<BasicBlock *> &GuardBlocks, BBPredicates &GuardPredicates, in calcPredicateUsingBooleans() argument
135 LLVMContext &Context = GuardBlocks.front()->getContext(); in calcPredicateUsingBooleans()
138 BasicBlock *FirstGuardBlock = GuardBlocks.front(); in calcPredicateUsingBooleans()
204 SmallVectorImpl<BasicBlock *> &GuardBlocks, in convertToGuardPredicates() argument
211 GuardBlocks.push_back( in convertToGuardPredicates()
220 calcPredicateUsingBooleans(Branches, Outgoing, GuardBlocks, GuardPredicates, in convertToGuardPredicates()
223 calcPredicateUsingInteger(Branches, Outgoing, GuardBlocks, GuardPredicates); in convertToGuardPredicates()
225 setupBranchForGuard(GuardBlocks, Outgoing, GuardPredicates); in convertToGuardPredicates()
276 DomTreeUpdater *DTU, SmallVectorImpl<BasicBlock *> &GuardBlocks, in finalize() argument
307 convertToGuardPredicates(Branches, Outgoing.getArrayRef(), GuardBlocks, in finalize()
309 BasicBlock *FirstGuardBlock = GuardBlocks.front(); in finalize()
312 for (int I = 0, E = GuardBlocks.size(); I != E; ++I) in finalize()
313 reconnectPhis(Outgoing[I], GuardBlocks[I], Branches, FirstGuardBlock); in finalize()
315 reconnectPhis(Outgoing.back(), GuardBlocks.back(), Branches, FirstGuardBlock); in finalize()
318 int NumGuards = GuardBlocks.size(); in finalize()
324 Updates.push_back({DominatorTree::Insert, GuardBlocks[I], Outgoing[I]}); in finalize()
326 {DominatorTree::Insert, GuardBlocks[I], GuardBlocks[I + 1]}); in finalize()
330 Updates.push_back({DominatorTree::Insert, GuardBlocks[NumGuards - 1], in finalize()
332 Updates.push_back({DominatorTree::Insert, GuardBlocks[NumGuards - 1], in finalize()