Add support to promote f16 to f32
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 17 Apr 2015 18:36:25 +0000 (18:36 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 17 Apr 2015 18:36:25 +0000 (18:36 +0000)
commitdb7c07e2bf912d8aa604697c26eac2f67624d57a
tree97cdc0121eec5f1a7c4e37249e0f1ec7fe0427a3
parent2daf3a27c4b00ba4adb6a3629d4d1ac59b0716d1
Add support to promote f16 to f32

Summary:
This patch adds legalization support to operate on FP16 as a load/store type
and do operations on it as floats.

Tests for ARM are added to test/CodeGen/ARM/fp16-promote.ll

Reviewers: srhines, t.p.northover

Differential Revision: http://reviews.llvm.org/D8755

llvm-svn: 235215
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/test/CodeGen/ARM/fp16-promote.ll [new file with mode: 0644]