Home
last modified time | relevance | path

Searched refs:predSwitch (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/
H A DControlFlowOps.cpp800 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator()); in simplifySwitchFromSwitchOnSameCondition() local
801 if (!predSwitch || op.getFlag() != predSwitch.getFlag() || in simplifySwitchFromSwitchOnSameCondition()
802 predSwitch.getDefaultDestination() == currentBlock) in simplifySwitchFromSwitchOnSameCondition()
806 SuccessorRange predDests = predSwitch.getCaseDestinations(); in simplifySwitchFromSwitchOnSameCondition()
809 Optional<DenseIntElementsAttr> predCaseValues = predSwitch.getCaseValues(); in simplifySwitchFromSwitchOnSameCondition()
851 auto predSwitch = dyn_cast<SwitchOp>(predecessor->getTerminator()); in simplifySwitchFromDefaultSwitchOnSameCondition() local
852 if (!predSwitch || op.getFlag() != predSwitch.getFlag() || in simplifySwitchFromDefaultSwitchOnSameCondition()
853 predSwitch.getDefaultDestination() != currentBlock) in simplifySwitchFromDefaultSwitchOnSameCondition()
858 auto predDests = predSwitch.getCaseDestinations(); in simplifySwitchFromDefaultSwitchOnSameCondition()
859 auto predCaseValues = predSwitch.getCaseValues(); in simplifySwitchFromDefaultSwitchOnSameCondition()