Semiconductor stocks have been among the biggest winners of the artificial intelligence (AI) revolution so far.