Rory McIlroy spoke to 20-time Grand Slam winner Roger Federer about going into the latter stages of his career