xref: /wasmtime-44.0.1/winch/codegen/src/lib.rs (revision 67ce1ef2)
1 //! Code generation library for Winch.
2 
3 // Unless this library is compiled with `all-arch`, the rust compiler
4 // is going to emit dead code warnings.
5 #![cfg_attr(
6     not(feature = "all-arch"),
7     allow(
8         dead_code,
9         reason = "this is fine as long as we run CI at least once with the `all-arch` feature enabled"
10     )
11 )]
12 
13 mod abi;
14 pub use codegen::{BuiltinFunctions, FuncEnv};
15 mod codegen;
16 mod frame;
17 pub mod isa;
18 pub use isa::*;
19 mod constant_pool;
20 mod masm;
21 mod regalloc;
22 mod regset;
23 mod stack;
24 mod visitor;
25 
26 pub use wasmtime_environ::error::{Context, Error, Result, bail, ensure, format_err};
27