build-sub-tree ( in-d out-d word/quot -- nodes/f )


Vocabulary
compiler.tree.builder

Inputs
in-da sequence of values
out-da sequence of values
word/quota word or a quotation


Outputs
nodes/fa sequence of nodes or f


Word description
Attempts to construct tree SSA IR from a quotation, starting with an initial data stack of values from the call site. Outputs f if stack effect inference fails.

Examples
USING: compiler.tree.builder math prettyprint ; { "x" } { "y" } [ 4 * ] build-sub-tree .
V{ T{ #push { literal 4 } { out-d { 1 } } } T{ #call { word * } { in-d V{ "x" 1 } } { out-d { 2 } } } T{ #copy { in-d V{ 2 } } { out-d { "y" } } } }


Definition