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

Method add_value

src/debug_utils/checker.rs:98–101  ·  view source on GitHub ↗

Adds the given value to the set of values for an `AllocationUnit`.

(&mut self, unit: AllocationUnit, value: Value)

Source from the content-addressed store, hash-verified

96
97 /// Adds the given value to the set of values for an `AllocationUnit`.
98 fn add_value(&mut self, unit: AllocationUnit, value: Value) {
99 let values = self.unit_values.entry(unit).or_default();
100 values.push(value);
101 }
102
103 /// Sets the `AllocationUnit` to contain only the given value.
104 fn set_value(&mut self, unit: AllocationUnit, value: Value) {

Callers 1

check_blockMethod · 0.80

Calls 3

or_defaultMethod · 0.80
entryMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected