diff --git a/compiler/src/passes/assign/assign.rs b/compiler/src/passes/assign/assign.rs index bf36927..264efd8 100644 --- a/compiler/src/passes/assign/assign.rs +++ b/compiler/src/passes/assign/assign.rs @@ -9,7 +9,7 @@ impl<'p> X86Selected<'p> { pub fn assign(self) -> X86Assigned<'p> { let program = self.include_liveness(); let interference = program.compute_interference(); - let (color_map, stack_space) = interference.solve(); + let (color_map, stack_space) = interference.color(); let blocks = program .blocks diff --git a/compiler/src/passes/assign/color_interference.rs b/compiler/src/passes/assign/color_interference.rs index 03ed537..4ec7197 100644 --- a/compiler/src/passes/assign/color_interference.rs +++ b/compiler/src/passes/assign/color_interference.rs @@ -6,7 +6,7 @@ use std::collections::{HashMap, HashSet}; impl<'p> InterferenceGraph<'p> { #[must_use] - pub fn solve(self) -> (HashMap, Arg>, usize) { + pub fn color(self) -> (HashMap, Arg>, usize) { let graph = self.0; let mut queue = Vec::new(); let mut node_map = HashMap::::new();