Introspection tools for compiler mode: capability checking, helper call analysis.
Summary
Functions
Analyze a function's compilability without compiling.
Check if a function can be compiled. Returns :ok or {:error, reasons}.
Explain why a function can/cannot be compiled, with details.
Count helper calls in compiled output.
Functions
Analyze a function's compilability without compiling.
Returns a map with:
:compilable?— whether the function should compile successfully:unsupported_opcodes— list of%{pc: integer, opcode: atom}for unsupported ops:has_var_refs— whether the function uses captured variable references:opcode_count— total number of instructions
Check if a function can be compiled. Returns :ok or {:error, reasons}.
Explain why a function can/cannot be compiled, with details.
Count helper calls in compiled output.