Lines Matching refs:CBR
60 static void UpdateSSA(DominatorTree &DT, CallBrInst *CBR, CallInst *Intrinsic,
112 if (auto *CBR = dyn_cast<CallBrInst>(BB.getTerminator())) in FindCallBrs() local
113 if (!CBR->getType()->isVoidTy() && !CBR->use_empty()) in FindCallBrs()
114 CBRs.push_back(CBR); in FindCallBrs()
131 for (CallBrInst *CBR : CBRs) in SplitCriticalEdges()
132 for (unsigned i = 1, e = CBR->getNumSuccessors(); i != e; ++i) in SplitCriticalEdges()
133 if (CBR->getSuccessor(i) == CBR->getSuccessor(0) || in SplitCriticalEdges()
134 isCriticalEdge(CBR, i, /*AllowIdenticalEdges*/ true)) in SplitCriticalEdges()
135 if (SplitKnownCriticalEdge(CBR, i, Options)) in SplitCriticalEdges()
144 for (CallBrInst *CBR : CBRs) { in InsertIntrinsicCalls()
145 if (!CBR->getNumIndirectDests()) in InsertIntrinsicCalls()
149 SSAUpdate.Initialize(CBR->getType(), CBR->getName()); in InsertIntrinsicCalls()
150 SSAUpdate.AddAvailableValue(CBR->getParent(), CBR); in InsertIntrinsicCalls()
151 SSAUpdate.AddAvailableValue(CBR->getDefaultDest(), CBR); in InsertIntrinsicCalls()
153 for (BasicBlock *IndDest : CBR->getIndirectDests()) { in InsertIntrinsicCalls()
158 CBR->getType(), Intrinsic::callbr_landingpad, {CBR}); in InsertIntrinsicCalls()
160 UpdateSSA(DT, CBR, Intrinsic, SSAUpdate); in InsertIntrinsicCalls()
185 void UpdateSSA(DominatorTree &DT, CallBrInst *CBR, CallInst *Intrinsic, in UpdateSSA() argument
189 BasicBlock *DefaultDest = CBR->getDefaultDest(); in UpdateSSA()
192 SmallVector<Use *, 4> Uses(make_pointer_range(CBR->uses())); in UpdateSSA()