Taiwan Semiconductor Manufacturing Co, whose customers include Apple and Nvidia, has benefited from the surge towards AI that has helped it weather the tapering off of pandemic-led demand and pushed TSMC's share price to a record high.