Lines Matching refs:IfOp
574 void IfOp::build(OpBuilder &builder, OperationState &result, Value cond, in build()
579 void IfOp::build(OpBuilder &builder, OperationState &result, in build()
583 IfOp::ensureTerminator(*nested.getInsertionBlock()->getParent(), nested, in build()
592 void IfOp::build(OpBuilder &builder, OperationState &result, in build()
614 void IfOp::build(OpBuilder &builder, OperationState &result, Value cond, in build()
620 static LogicalResult verify(IfOp op) { in verify()
645 IfOp::ensureTerminator(*thenRegion, parser.getBuilder(), result.location); in parseIfOp()
651 IfOp::ensureTerminator(*elseRegion, parser.getBuilder(), result.location); in parseIfOp()
660 static void print(OpAsmPrinter &p, IfOp op) { in print()
663 p << IfOp::getOperationName() << " " << op.condition(); in print()
690 void IfOp::getSuccessorRegions(Optional<unsigned> index, in getSuccessorRegions()
721 struct RemoveUnusedResults : public OpRewritePattern<IfOp> {
722 using OpRewritePattern<IfOp>::OpRewritePattern;
739 LogicalResult matchAndRewrite(IfOp op, in matchAndRewrite()
757 auto newOp = rewriter.create<IfOp>(op.getLoc(), newTypes, op.condition(), in matchAndRewrite()
774 struct RemoveStaticCondition : public OpRewritePattern<IfOp> {
775 using OpRewritePattern<IfOp>::OpRewritePattern;
777 LogicalResult matchAndRewrite(IfOp op, in matchAndRewrite()
795 void IfOp::getCanonicalizationPatterns(OwningRewritePatternList &results, in getCanonicalizationPatterns()