Taiwan Semiconductor Manufacturing Co. posted fourth-quarter revenue that beat Wall Street estimates as the company keeps gaining from the artificial intelligence (AI) boom.