factor/basis/compiler/tree/propagation/propagation.factor

25 lines
773 B
Factor
Raw Normal View History

2008-07-20 05:24:37 -04:00
! Copyright (C) 2004, 2008 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors kernel sequences namespaces hashtables arrays
2008-07-20 05:24:37 -04:00
compiler.tree
2008-08-07 07:34:28 -04:00
compiler.tree.propagation.copy
2008-07-22 05:45:03 -04:00
compiler.tree.propagation.info
compiler.tree.propagation.nodes
2008-07-20 05:24:37 -04:00
compiler.tree.propagation.simple
compiler.tree.propagation.inlining
2008-07-20 05:24:37 -04:00
compiler.tree.propagation.branches
2008-07-22 05:45:03 -04:00
compiler.tree.propagation.recursive
compiler.tree.propagation.constraints
compiler.tree.propagation.known-words ;
2008-07-20 05:24:37 -04:00
IN: compiler.tree.propagation
2008-08-07 07:34:28 -04:00
! This pass must run after normalization
: propagate ( node -- node )
H{ } clone copies set
H{ } clone 1array value-infos set
H{ } clone 1array constraints set
H{ } clone inlining-count set
dup compute-node-count
dup (propagate) ;