Support for generating IR.
merge