MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / Context

Class Context

cranelift/codegen/src/context.rs:40–58  ·  view source on GitHub ↗

Persistent data structures and compilation pipeline.

Source from the content-addressed store, hash-verified

38
39/// Persistent data structures and compilation pipeline.
40pub 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
60impl Context {
61 /// Allocate a new compilation context.

Callers 5

map_exception_tableMethod · 0.70
finalizeMethod · 0.50
exception_handlersMethod · 0.50
newMethod · 0.50
itemsMethod · 0.50

Implementers 6

opts.rscranelift/codegen/src/opts.rs
isle.rscranelift/codegen/src/isa/s390x/lower/
isle.rscranelift/codegen/src/isa/x64/lower/is
isle.rscranelift/codegen/src/isa/riscv64/lowe
isle.rscranelift/codegen/src/isa/aarch64/lowe
isle.rscranelift/codegen/src/isa/pulley_share

Calls

no outgoing calls

Tested by

no test coverage detected