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

Function hll_to_ir_text

tests/integration/cli_pipeline.rs:54–58  ·  view source on GitHub ↗

Compile HLL to IR text (mirrors `fsc hll-to-ir`).

(src: &str)

Source from the content-addressed store, hash-verified

52
53// Compile HLL to IR text (mirrors `fsc hll-to-ir`).
54fn hll_to_ir_text(src: &str) -> String {
55 let pipeline = make_pipeline(TargetMode::Hosted, USER_PREFIX);
56 let result = pipeline.compile(src).expect("compile failed");
57 result.ir_program.to_string()
58}
59
60// Compile HLL to assembly text (mirrors `fsc hll-to-asm`).
61fn hll_to_asm_text(src: &str) -> String {

Calls 2

make_pipelineFunction · 0.70
compileMethod · 0.45

Tested by 4