The US semiconductor company crossed the $1 trillion market capitalisation mark driven by booming demand for AI-related memory chips.