Persistent data structures and compilation pipeline.
| 38 | |
| 39 | /// Persistent data structures and compilation pipeline. |
| 40 | pub struct Context { |
| 41 | /// The function we're compiling. |
| 42 | pub func: Function, |
| 43 | |
| 44 | /// The control flow graph of `func`. |
| 45 | pub cfg: ControlFlowGraph, |
| 46 | |
| 47 | /// Dominator tree for `func`. |
| 48 | pub domtree: DominatorTree, |
| 49 | |
| 50 | /// Loop analysis of `func`. |
| 51 | pub loop_analysis: LoopAnalysis, |
| 52 | |
| 53 | /// Result of MachBackend compilation, if computed. |
| 54 | pub(crate) compiled_code: Option<CompiledCode>, |
| 55 | |
| 56 | /// Flag: do we want a disassembly with the CompiledCode? |
| 57 | pub want_disasm: bool, |
| 58 | } |
| 59 | |
| 60 | impl Context { |
| 61 | /// Allocate a new compilation context. |
no outgoing calls
no test coverage detected