Searched refs:RetBlock (Results 1 – 4 of 4) sorted by relevance
59 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local85 if (!RetBlock) { in mergeEmptyReturnBlocks()86 RetBlock = &BB; in mergeEmptyReturnBlocks()98 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()99 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()105 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()107 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()108 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()111 &RetBlock->front()); in mergeEmptyReturnBlocks()115 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()[all …]
81 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local107 if (!RetBlock) { in mergeEmptyReturnBlocks()108 RetBlock = &BB; in mergeEmptyReturnBlocks()119 if (RetBlock == CBI->getSuccessor(i)) { in mergeEmptyReturnBlocks()135 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()136 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()142 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()144 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()145 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()148 &RetBlock->front()); in mergeEmptyReturnBlocks()[all …]
76 BasicBlock *RetBlock = nullptr; in mergeEmptyReturnBlocks() local102 if (!RetBlock) { in mergeEmptyReturnBlocks()103 RetBlock = &BB; in mergeEmptyReturnBlocks()115 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { in mergeEmptyReturnBlocks()116 BB.replaceAllUsesWith(RetBlock); in mergeEmptyReturnBlocks()122 PHINode *RetBlockPHI = dyn_cast<PHINode>(RetBlock->begin()); in mergeEmptyReturnBlocks()124 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); in mergeEmptyReturnBlocks()125 pred_iterator PB = pred_begin(RetBlock), PE = pred_end(RetBlock); in mergeEmptyReturnBlocks()128 &RetBlock->front()); in mergeEmptyReturnBlocks()132 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()[all …]
2481 llvm::BasicBlock *RetBlock = createBasicBlock("resolver_return", Resolver); in EmitMultiVersionResolver() local2482 CGBuilderTy RetBuilder(*this, RetBlock); in EmitMultiVersionResolver()2486 Builder.CreateCondBr(Condition, RetBlock, CurBlock); in EmitMultiVersionResolver()