feat: ready for JIT
This commit is contained in:
11
src/ir.rs
11
src/ir.rs
@@ -5,8 +5,6 @@ use rnix::ast::{self, Expr};
|
||||
|
||||
use crate::compile::*;
|
||||
use crate::error::*;
|
||||
#[cfg(feature = "jit")]
|
||||
use crate::jit::*;
|
||||
use crate::ty::internal as i;
|
||||
|
||||
pub fn downgrade(expr: Expr) -> Result<Downgraded> {
|
||||
@@ -62,15 +60,6 @@ macro_rules! ir {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "jit")]
|
||||
impl CodeGen for Ir {
|
||||
fn codegen(self, ctx: &JITContext<'_>) {
|
||||
match self {
|
||||
$(Ir::$ty(ir) => ir.codegen(ctx),)*
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$(
|
||||
$(
|
||||
#[$($x)*]
|
||||
|
||||
Reference in New Issue
Block a user