Silicon Valley chipmaker Nvidia on Wednesday became the first publicly traded company to surpass a $4 trillion market valuation, putting the latest exclamation point on the investor frenzy surrounding an artificial intelligence boom powered by its industry-leading processors.