\documentclass{article}
\usepackage{hyperref}

\newtheorem{thm}{Theorem}

\def\thmautorefname{Theorem}

\begin{document}

\section{One} \label{sec1}
This is a test section.

\begin{figure}
 \caption{My figure.
 \label{fig}}
\end{figure}

\begin{table}
 \caption{My table.
 \label{tab}}
\end{table}

\begin{thm}[Optional Theorem Heading] This is a theorem. \label{thm1}
\end{thm}


See NormalRef: \ref{fig}. See AutoRef: \autoref{fig}. NameRef: \nameref{fig}.

See NormalRef: \ref{tab}. See AutoRef: \autoref{tab}. NameRef: \nameref{tab}.

See NormalRef: \ref{sec1}. See AutoRef: \autoref{sec1}. NameRef: \nameref{sec1}.

See NormalRef: \ref{thm1}. See AutoRef: \autoref{thm1}. NameRef: \nameref{thm1}.


\end{document}
