MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / encode_words

Method encode_words

crates/asm-to-binary/src/rv_instruction.rs:27–33  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25 /// and no assembly text; the encoder attributes following instructions to it.
26 SourceLoc { file: String, line: u32 },
27}
28
29impl RvInstruction {
30 /// Returns `true` if this line contributes machine code bytes.
31 pub fn is_code(&self) -> bool {
32 matches!(self, Self::Real(_) | Self::Pseudo(_))
33 }
34}
35
36/// Parse raw assembly text into labels/directives/instruction lines. With `file`

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
expandMethod · 0.80
encodeMethod · 0.45

Tested by

no test coverage detected