Lines Matching refs:SwitchOp
455 void SwitchOp::build(OpBuilder &builder, OperationState &result, Value value, in build()
464 void SwitchOp::build(OpBuilder &builder, OperationState &result, Value value, in build()
478 void SwitchOp::build(OpBuilder &builder, OperationState &result, Value value, in build()
547 OpAsmPrinter &p, SwitchOp op, Type flagType, Block *defaultDestination, in printSwitchOpCases()
569 LogicalResult SwitchOp::verify() { in verify()
592 SuccessorOperands SwitchOp::getSuccessorOperands(unsigned index) { in getSuccessorOperands()
598 Block *SwitchOp::getSuccessorForOperands(ArrayRef<Attribute> operands) { in getSuccessorForOperands()
618 static LogicalResult simplifySwitchWithOnlyDefault(SwitchOp op, in simplifySwitchWithOnlyDefault()
639 dropSwitchCasesThatMatchDefault(SwitchOp op, PatternRewriter &rewriter) { in dropSwitchCasesThatMatchDefault()
661 rewriter.replaceOpWithNewOp<SwitchOp>( in dropSwitchCasesThatMatchDefault()
674 static void foldSwitch(SwitchOp op, PatternRewriter &rewriter, in foldSwitch()
695 static LogicalResult simplifyConstSwitchValue(SwitchOp op, in simplifyConstSwitchValue()
716 static LogicalResult simplifyPassThroughSwitch(SwitchOp op, in simplifyPassThroughSwitch()
747 rewriter.replaceOpWithNewOp<SwitchOp>(op, op.getFlag(), defaultDest, in simplifyPassThroughSwitch()
789 simplifySwitchFromSwitchOnSameCondition(SwitchOp op, in simplifySwitchFromSwitchOnSameCondition()
800 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator()); in simplifySwitchFromSwitchOnSameCondition()
840 simplifySwitchFromDefaultSwitchOnSameCondition(SwitchOp op, in simplifySwitchFromDefaultSwitchOnSameCondition()
851 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator()); in simplifySwitchFromDefaultSwitchOnSameCondition()
884 rewriter.replaceOpWithNewOp<SwitchOp>( in simplifySwitchFromDefaultSwitchOnSameCondition()
890 void SwitchOp::getCanonicalizationPatterns(RewritePatternSet &results, in getCanonicalizationPatterns()