The chipmaker is capitalizing on a stock surge driven by AI demand and turnaround optimism to finance costly manufacturing build-out.