Skip to content

Commit

Permalink
Merge branch 'sched'
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniMay committed Aug 13, 2024
2 parents f85d7bb + 4f12162 commit 82b0830
Show file tree
Hide file tree
Showing 4 changed files with 1,009 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/backend/regs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ impl<I: MInst + Hash> RegDefUse<I> {
reg_def_use
}

pub fn def_insts(&self, reg: Reg) -> Option<&FxHashSet<I>> { self.defs.get(&reg) }

pub fn compute_on_function(mctx: &MContext<I>, func: &MFunc<I>, config: &LowerConfig) -> Self {
let mut reg_def_use = RegDefUse {
defs: FxHashMap::default(),
Expand Down
2 changes: 2 additions & 0 deletions src/backend/riscv64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ pub mod lower;
pub mod regs;

mod peephole;
mod schedule;

pub use peephole::{run_peephole, run_peephole_after_regalloc};
pub use schedule::schedule;
Loading

0 comments on commit 82b0830

Please sign in to comment.