compile to graph-based IR (no optimizations yet)