Returns the immediate dominator of the given basic block. Returns `None` for entry points, unreachable blocks, and blocks whose only immediate dominator is the virtual root of a multi-entry CFG.
(&self, block: Block)
| 111 | /// Returns `None` for entry points, unreachable blocks, and blocks whose |
| 112 | /// only immediate dominator is the virtual root of a multi-entry CFG. |
| 113 | pub fn immediate_dominator(&self, block: Block) -> Option<Block> { |
| 114 | self.nodes[block].parent.into() |
| 115 | } |
| 116 | |
| 117 | /// Determines whether `a` dominates `b`. |
| 118 | /// |
no outgoing calls
no test coverage detected