MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / uses_memory

Method uses_memory

cranelift/assembler-x64/meta/src/dsl/format.rs:148–157  ·  view source on GitHub ↗

Return the location of the operand that uses memory, if any; return `None` otherwise.

(&self)

Source from the content-addressed store, hash-verified

146 /// Return the location of the operand that uses memory, if any; return
147 /// `None` otherwise.
148 pub fn uses_memory(&self) -> Option<Location> {
149 debug_assert!(
150 self.locations()
151 .copied()
152 .filter(Location::uses_memory)
153 .count()
154 <= 1
155 );
156 self.locations().copied().find(Location::uses_memory)
157 }
158
159 /// Return `true` if any of the operands accepts a register (i.e., not an
160 /// immediate); return `false` otherwise.

Callers 1

Calls 4

copiedMethod · 0.80
locationsMethod · 0.80
findMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected