Semiconductor stocks have been some of the biggest beneficiaries throughout the artificial intelligence (AI) revolution.