[GlobalISel] Legalize more G_FP(EXT|TRUNC) libcalls.
authorKonstantin Schwarz <konstantin.schwarz@hightec-rt.com>
Thu, 6 Feb 2020 18:01:57 +0000 (10:01 -0800)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 6 Feb 2020 19:41:34 +0000 (11:41 -0800)
commit76986bdc4633b0a8bdee1ad4f2e279f17e7f747a
treed39e7ce9398218802c7d88c7d74591ee473c4556
parent727362e87bb3e35e812a44f41d08791683a04f5d
[GlobalISel] Legalize more G_FP(EXT|TRUNC) libcalls.

This adds a new helper function for retrieving the
floating point type corresponding to the specified
bit-width.
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/unittests/CodeGen/GlobalISel/GISelMITest.h
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp