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

Method encode_modrm

cranelift/assembler-x64/src/xmm.rs:35–37  ·  view source on GitHub ↗

Emit this register as the `r/m` field of a ModR/M byte.

(&self, sink: &mut impl CodeSink, enc_reg: u8)

Source from the content-addressed store, hash-verified

33
34 /// Emit this register as the `r/m` field of a ModR/M byte.
35 pub(crate) fn encode_modrm(&self, sink: &mut impl CodeSink, enc_reg: u8) {
36 sink.put1(encode_modrm(0b11, enc_reg & 0b111, self.enc() & 0b111));
37 }
38
39 /// Return the registers for encoding the `b` and `x` bits (e.g., in a VEX
40 /// prefix).

Callers

nothing calls this directly

Calls 3

encode_modrmFunction · 0.85
put1Method · 0.45
encMethod · 0.45

Tested by

no test coverage detected