Skip to content

Commit 0f9d940

Browse files
committed
Add commented debug print for generated IR in JIT
Inserted a commented-out println! statement to print the generated IR in the JIT implementation. This can be used for debugging or inspecting the intermediate representation during development.
1 parent 16bb150 commit 0f9d940

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jit.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ impl JIT {
107107

108108
let called_functions = self.function_body(decls, decl);
109109

110+
// Print the generated IR
111+
// println!("Generated IR:\n{}", self.ctx.func.display());
112+
110113
// Next, declare the function to jit. Functions must be declared
111114
// before they can be called, or defined.
112115
let id = self

0 commit comments

Comments
 (0)