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

Method contains

src/entity/set.rs:83–90  ·  view source on GitHub ↗
(&self, entity: T)

Source from the content-addressed store, hash-verified

81 #[inline]
82 #[track_caller]
83 pub fn contains(&self, entity: T) -> bool {
84 let (idx, bit) = Self::index(entity);
85 if let Some(&word) = self.storage.get(idx) {
86 word & (1 << bit) != 0
87 } else {
88 false
89 }
90 }
91
92 /// Inserts an element into the set.
93 #[inline]

Callers 15

get_scratch_regMethod · 0.45
add_rematMethod · 0.45
add_moveMethod · 0.45
resolveMethod · 0.45
has_fixed_hintMethod · 0.45
propagate_to_predsMethod · 0.45
finalize_stack_layoutMethod · 0.45
build_segmentsMethod · 0.45
propagate_to_succsMethod · 0.45
preprocess_blockMethod · 0.45
indirect_remat_inputsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected