Rory McIlroy will continue to host the Irish Open for the next three years on behalf of his foundation.