Add working un-optimized IR generator