add primitive expander for tree-il
authorAndy Wingo <wingo@pobox.com>
Tue, 12 May 2009 20:29:34 +0000 (22:29 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 12 May 2009 20:29:34 +0000 (22:29 +0200)
commitcb28c08537790b49f7bc94f2f6b426497152bbe7
tree31183823bf053137f331f7496427153304a5fa8d
parent9efc833d65adef11e76410fee7ea548143131417
add primitive expander for tree-il

* module/Makefile.am: Add inline.scm.

* module/language/tree-il.scm (pre-order!, post-order!): pre-order! is
  new. post-order! existed but was not public. They do destructive tree
  traversals of tree-il, and need more documentation. Also, add
  predicates to tree-il's export list.

* module/language/tree-il/inline.scm: New file, which expands primitives
  into more primitive primitives. In the future perhaps it will not be
  necessary, as the general inlining infrastructure will handle these
  cases, but for now it's useful.

* module/language/tree-il/optimize.scm: Move post-order! out to better
  pastures.
module/Makefile.am
module/language/tree-il.scm
module/language/tree-il/inline.scm [new file with mode: 0644]
module/language/tree-il/optimize.scm