MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / Use

Class Use

src/internal/uses.rs:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18/// [`Allocation`]: super::output::Allocation
19#[derive(Debug, Clone, Copy)]
20pub struct Use {
21 /// The position of the use in the function.
22 pub pos: Inst,
23
24 /// How the value is used in the instruction.
25 pub kind: UseKind,
26}
27
28/// Cost of a spill/reload of a register from memory.
29pub const SPILL_RELOAD_COST: f32 = 1.0;

Callers 5

regclass_useMethod · 0.85
fixed_useMethod · 0.85
kindMethod · 0.85
parse_operandFunction · 0.85
gen_useMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected