You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CIR][NFC] Add getBreakTarget method to cir::BreakOp (#1878)
`cir::BreakOp::getBreakTarget` gets the innermost `cir::LoopOpInterface`
or `cir::SwitchOp` containing this `break`.
For example:
```
A: for (...) {
B: for(...) {
break; // target = B
C: switch (...) {
default: break; // target = C
}
break; // target = A
}
```
NOTE: This is a part of a broader effort I am working on to make
querying CIR control flow facts more easily. If folks have any design
notes or ideas, please share them.
---------
Co-authored-by: Tommy McMichen <[email protected]>
0 commit comments