GlobalISel: Translate llvm.convert.{to|from}.fp16 intrinsics
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 25 Jul 2020 20:58:15 +0000 (16:58 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 28 Jul 2020 15:46:05 +0000 (11:46 -0400)
commit97b5fb78d137a44bec104ba073dd620008ed7abb
tree13e317a431caa8798929c1ac0ce59761268ba1aa
parent16bcd54570328c90182edb56d4593ff19207cbc7
GlobalISel: Translate llvm.convert.{to|from}.fp16 intrinsics

I think these were added as a workaround for SelectionDAG lacking half
legalization support in the past. I think they should probably be
removed from the IR, but clang does still have a target control to
emit these instead of the native half fpext/fptrunc.
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-convert-fp16-intrinsics.ll [new file with mode: 0644]