Skip to main content

plan_instruction

Function plan_instruction 

Source
pub fn plan_instruction(
    ast: &PcodeAst,
    context: &impl PcodeLoweringContext,
) -> Result<PcodePlan, PcodeLowerError>
Expand description

Collects the whole-instruction facts of ast without emitting p-code.

The plan is the shared contract between the p-code emitter and its consumer: it is produced from the same expanded AST that emission lowers, so a consumer never has to re-scan flat p-code to discover them.