Sketch HIR
This commit is contained in:
parent
d993307d4c
commit
dca2b1ddaf
Notes:
git
2025-04-18 13:49:59 +00:00
@ -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() {
|
fn main() {
|
||||||
println!("zjit");
|
println!("zjit");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user