mirror of
https://github.com/Noratrieb/uwucc.git
synced 2026-01-16 01:25:07 +01:00
do some registers
This commit is contained in:
parent
a363b7c6d1
commit
e28469fcc0
9 changed files with 227 additions and 97 deletions
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
mod custom;
|
||||
pub mod info;
|
||||
mod pretty;
|
||||
pub mod pretty;
|
||||
mod validate;
|
||||
mod visit;
|
||||
|
||||
|
|
@ -299,3 +299,21 @@ impl Branch {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Location {
|
||||
pub fn start() -> Self {
|
||||
Self {
|
||||
bb: BbIdx(0),
|
||||
stmt: Some(0),
|
||||
}
|
||||
}
|
||||
pub fn terminator(bb: BbIdx) -> Self {
|
||||
Self { bb, stmt: None }
|
||||
}
|
||||
pub fn stmt(bb: BbIdx, stmt: usize) -> Self {
|
||||
Self {
|
||||
bb,
|
||||
stmt: Some(stmt),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue