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

Method is_code

crates/asm-to-binary/src/rv_instruction.rs:36–38  ·  view source on GitHub ↗

Returns `true` if this line contributes machine code bytes.

(&self)

Source from the content-addressed store, hash-verified

34}
35
36/// Parse raw assembly text into labels/directives/instruction lines. With `file`
37/// set, instruction lines get `SourceLoc` markers for the pc-to-source table.
38pub fn parse_asm_source(file: Option<&str>, src: &str) -> Vec<RvInstruction> {
39 let mut out = Vec::new();
40 for (index, raw) in src.lines().enumerate() {
41 let line = raw.trim();

Callers 4

run_hll_peepholeFunction · 0.80
run_hll_omit_fpFunction · 0.80
run_hll_optimizeFunction · 0.80
run_with_regallocFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected