Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup wording on ordering of conversion ranks #313

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions specs/language/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@
& Truncation & \ref{Conv.vtrunc} \\ \cline{1-4}

Vector truncation promotion & Dimensionality Reduction Promotion
& Truncation Promotion & \ref{Conv.vtrunc} \\ \cline{1-4}
& Promotion Truncation & \ref{Conv.vtrunc} \\ \cline{1-4}

Vector truncation conversion & Dimensionality Reduction Conversion
& Truncation Conversion & \ref{Conv.vtrunc} \\ \cline{1-4}
& Conversion Truncation & \ref{Conv.vtrunc} \\ \cline{1-4}
\hline
\end{tabular}
\end{center}
Expand All @@ -324,12 +324,18 @@
\p Otherwise, the rank of a conversion sequence is determined by considering the
rank of each conversion.

\p Conversion sequence ranks are ordered such that \textbf{Exact
Match} rank is better than \textbf{Exact Match Extension} rank, which is better
than \textbf{Promotion} rank, which is better than \textbf{Extension} rank,
which is better than \textbf{Conversion} rank, which is better than
\textbf{Truncation} rank. The rank of a conversion sequence is the rank of the
worst ranked conversion in the sequence.
\p Conversion sequence ranks are ordered from better to worse as:
\begin{itemize}
llvm-beanz marked this conversation as resolved.
Show resolved Hide resolved
\item \textbf{Exact Match}
\item \textbf{Extension}
\item \textbf{Promotion}
\item \textbf{Promotion Extension}
\item \textbf{Conversion}
\item \textbf{Conversion Extension}
\item \textbf{Truncation}
\item \textbf{Promotion Truncation}
\item \textbf{Conversion Truncation}
\end{itemize}

% TODO: Define user-defined conversion sequences. DXC doesn't actually support
% these because we don't resolve overloads for user-defined conversion
Expand Down
Loading