OSDN Git Service

Break the code for expanding UINT_TO_FP operations out into its own
authorChris Lattner <sabre@nondot.org>
Sat, 16 Jul 2005 00:19:57 +0000 (00:19 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 16 Jul 2005 00:19:57 +0000 (00:19 +0000)
commitcad063f1a8ecda4fd556a733dc5eaa8a96acb80d
treeb682a8ea000809e50d4e1e30e1c31e856fd9dbc6
parent6e741f8842b5570e30f25912dbdaaa2edf36110c
Break the code for expanding UINT_TO_FP operations out into its own
SelectionDAGLegalize::ExpandLegalUINT_TO_FP method.

Add a new method, PromoteLegalUINT_TO_FP, which allows targets to request
that UINT_TO_FP operations be promoted to a larger input type.  This is
useful for targets that have some UINT_TO_FP or SINT_TO_FP operations but
not all of them (like X86).

The same should be done with SINT_TO_FP, but this patch does not do that
yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22447 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp