Rory McIlroy stood over a 10-inch putt in gathering darkness to win the PGA Championship as flashes from thousands of cameras lit up Valhalla like a rock concert.