Rory McIlroy has filed for divorce after seven years of marriage, according to court records in Palm Beach County, Florida.…