The AI boom is redirecting billions from software applications to the hardware that powers them.