(&self)
| 247 | } |
| 248 | |
| 249 | pub fn dominance_frontier(&self) -> Array<BasicBlock<C>> { |
| 250 | unsafe { |
| 251 | let mut count = 0; |
| 252 | // TODO: We don't allow the user to calculate post dominators |
| 253 | let blocks = BNGetBasicBlockDominanceFrontier(self.handle, &mut count, false); |
| 254 | Array::new(blocks, count, self.context.clone()) |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | // TODO iterated dominance frontier |
| 259 | } |