mod.rs 562 Bytes
Newer Older
1
pub mod inst_sel;
2
pub mod reg_alloc;
3 4

#[cfg(target_arch = "x86_64")]
5
#[path = "arch/x86_64/mod.rs"]
6 7 8
mod x86_64;

#[cfg(target_arch = "arm")]
9
#[path = "arch/arm/mod.rs"]
qinsoon's avatar
qinsoon committed
10 11 12
mod arm;

#[cfg(target_arch = "x86_64")]
qinsoon's avatar
qinsoon committed
13 14 15 16 17 18 19 20 21 22 23
pub use compiler::backend::x86_64::get_name_for_value;

#[cfg(target_arch = "x86_64")]
pub use compiler::backend::x86_64::GPR_COUNT;
#[cfg(target_arch = "x86_64")]
pub use compiler::backend::x86_64::FPR_COUNT;

#[cfg(target_arch = "arm")]
pub use compiler::backend::arm::GPR_COUNT;
#[cfg(target_arch = "arm")]
pub use compiler::backend::arm::FPR_COUNT;