MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / set_register_allocation

Method set_register_allocation

src/compilation_pipeline.rs:609–611  ·  view source on GitHub ↗

Enable or disable physical register allocation in the RV64 backend: hot scalar values are kept in callee-saved registers (s2-s11) instead of stack slots. On by default; turn it off to get the pure stack-slot lowering (e.g. for codegen-shape comparisons).

(&mut self, enabled: bool)

Source from the content-addressed store, hash-verified

607 &mut self,
608 primary_name: &str,
609 primary_src: &str,
610 ) -> Result<Vec<(String, AssembledOutput)>, CompilationError> {
611 let mut order: Vec<(String, String, Option<PathBuf>)> = Vec::new();
612 let mut visited: std::collections::HashSet<String> = std::collections::HashSet::new();
613 let mut stack: Vec<String> = Vec::new();
614 let mut stack_keys: Vec<String> = Vec::new();

Calls

no outgoing calls