Add option to print IR.