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)
commit5c1c08cd1f9a318233d276cb5e7b13107ebc94b2
tree209f66685b74d40c389cd4a0c0469d1107c98f71
parent5a77e65d398e57927dd856de8ae51c6aea5d9ede
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235215 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
lib/CodeGen/SelectionDAG/LegalizeTypes.h
lib/CodeGen/TargetLoweringBase.cpp
test/CodeGen/ARM/fp16-promote.ll [new file with mode: 0644]