Updated the GeneratedModule to carry also the IR declaration that was generated