Added basic IR generation.