• Home
  • Raw
  • Download

Lines Matching refs:BranchOp

74     builder.create<BranchOp>(op->getLoc(), newDest, returnOp.getOperands());  in handleTerminator()
574 BranchOp successorBranch = dyn_cast<BranchOp>(successor->getTerminator()); in collapseBranch()
613 struct SimplifyBrToBlockWithSinglePred : public OpRewritePattern<BranchOp> {
614 using OpRewritePattern<BranchOp>::OpRewritePattern;
616 LogicalResult matchAndRewrite(BranchOp op, in matchAndRewrite()
637 struct SimplifyPassThroughBr : public OpRewritePattern<BranchOp> {
638 using OpRewritePattern<BranchOp>::OpRewritePattern;
640 LogicalResult matchAndRewrite(BranchOp op, in matchAndRewrite()
653 rewriter.replaceOpWithNewOp<BranchOp>(op, dest, destOperands); in matchAndRewrite()
659 Block *BranchOp::getDest() { return getSuccessor(); } in getDest()
661 void BranchOp::setDest(Block *block) { return setSuccessor(block); } in setDest()
663 void BranchOp::eraseOperand(unsigned index) { (*this)->eraseOperand(index); } in eraseOperand()
665 void BranchOp::getCanonicalizationPatterns(OwningRewritePatternList &results, in getCanonicalizationPatterns()
672 BranchOp::getMutableSuccessorOperands(unsigned index) { in getMutableSuccessorOperands()
677 Block *BranchOp::getSuccessorForOperands(ArrayRef<Attribute>) { return dest(); } in getSuccessorForOperands()
935 rewriter.replaceOpWithNewOp<BranchOp>(condbr, condbr.getTrueDest(), in matchAndRewrite()
940 rewriter.replaceOpWithNewOp<BranchOp>(condbr, condbr.getFalseDest(), in matchAndRewrite()
1005 rewriter.replaceOpWithNewOp<BranchOp>(condbr, trueDest, trueOperands); in matchAndRewrite()
1026 rewriter.replaceOpWithNewOp<BranchOp>(condbr, trueDest, mergedOperands); in matchAndRewrite()
1067 rewriter.replaceOpWithNewOp<BranchOp>(condbr, condbr.trueDest(), in matchAndRewrite()
1070 rewriter.replaceOpWithNewOp<BranchOp>(condbr, condbr.falseDest(), in matchAndRewrite()