Sketch HIR

This commit is contained in:
Max Bernstein 2025-02-06 10:27:58 -05:00 committed by Takashi Kokubun
parent d993307d4c
commit dca2b1ddaf
Notes: git 2025-04-18 13:49:59 +00:00

View File

@ -1,3 +1,24 @@
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct InsnId(usize);
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
pub struct BlockId(usize);
enum Insn {
Param { idx: usize },
}
#[derive(Debug)]
struct Block {
params: Vec<InsnId>,
insns: Vec<InsnId>,
}
#[derive(Debug)]
struct Function {
name: String,
entry_block: BlockId,
}
fn main() {
println!("zjit");
}