IRtoLLVM: added program entry and globals