Function come::ir::function::statement::calculate::binary::from_ast

source ·
pub fn from_ast(
    ast: &BinaryOperatorResult,
    ctx: &mut IRGeneratingContext<'_>
) -> RegisterName
Expand description

Generate a BinaryOperation from an ast::expression::BinaryOperatorResult, and append it to the current basic block. Return a RegisterName which contains the result.