[LegalizeTypes] Add SoftenFloatRes_Unary and SoftenFloatRes_Binary functions to facto...
authorCraig Topper <craig.topper@intel.com>
Tue, 26 Nov 2019 20:52:17 +0000 (12:52 -0800)
committerCraig Topper <craig.topper@intel.com>
Tue, 26 Nov 2019 20:52:17 +0000 (12:52 -0800)
commit9b08366f57468e1ca41906baae4dcf17fc86a442
treec207855201542a6e336ed4408f9acda1f9e098d9
parenta38fc61648797a10629ed160779b5df6b8d577e7
[LegalizeTypes] Add SoftenFloatRes_Unary and SoftenFloatRes_Binary functions to factor repeated patterns out of many of the SoftenFloatRes_* functions

This has been factored out of D70654 which will add strict FP support to these functions. By making the helpers we avoid repeating even more code.

Differential Revision: https://reviews.llvm.org/D70736
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h