This adds a new helper function for retrieving the floating point type corresponding to the specified bit-width.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Should this be a unit test then, since there is no in-tree target currently requiring a libcall for this?
Comment Actions
Unit tests added for the previously unsupported extensions & truncations.
Tightened the size check for simple libcalls to avoid crash on unsupported libcalls.
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp | ||
---|---|---|
724 | You can move this under the getFloatTypeForLLT check since it's somewhat redundant | |
llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp | ||
1205–1206 ↗ | (On Diff #242847) | EXPECT_EQ(Legalized, ...) |
1247–1251 ↗ | (On Diff #242847) | Ditto |
It might be better to pass the LLT instead of just the size in case new exotic LLTs are introduced for weird FP types in the future