This PR implements an inlining pass based on the work of @digikar99 ( https://github.com/coalton-lang/coalton/pull/1029 ). The updated traverse is used to allow passing a call stack, which enables separate bounds on recursive function unrolling and inlining depth. Heuristics are assumed to be simple syntactic functions of a function body for now.
This PR implements an inlining pass based on the work of @digikar99 ( https://github.com/coalton-lang/coalton/pull/1029 ). The updated
traverse
is used to allow passing a call stack, which enables separate bounds on recursive function unrolling and inlining depth. Heuristics are assumed to be simple syntactic functions of a function body for now.