aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorLucas Prates <lucas.prates@arm.com>2020-06-09 09:45:47 +0100
committerLucas Prates <lucas.prates@arm.com>2020-06-18 13:15:13 +0100
commita255931c40558edf87994c2a8ed9b274c3fbda30 (patch)
tree1d168a7b66a6170b5c0e767389505ddbe6e843e5 /clang/lib/Frontend/CompilerInvocation.cpp
parent4612f391200d0b4e21bc040a098227d73679de53 (diff)
downloadllvm-a255931c40558edf87994c2a8ed9b274c3fbda30.zip
llvm-a255931c40558edf87994c2a8ed9b274c3fbda30.tar.gz
llvm-a255931c40558edf87994c2a8ed9b274c3fbda30.tar.bz2
[ARM] Supporting lowering of half-precision FP arguments and returns in AArch32's backend
Summary: Half-precision floating point arguments and returns are currently promoted to either float or int32 in clang's CodeGen and there's no existing support for the lowering of `half` arguments and returns from IR in AArch32's backend. Such frontend coercions, implemented as coercion through memory in clang, can cause a series of issues in argument lowering, as causing arguments to be stored on the wrong bits on big-endian architectures and incurring in missing overflow detections in the return of certain functions. This patch introduces the handling of half-precision arguments and returns in the backend using the actual "half" type on the IR. Using the "half" type the backend is able to properly enforce the AAPCS' directions for those arguments, making sure they are stored on the proper bits of the registers and performing the necessary floating point convertions. Reviewers: rjmccall, olista01, asl, efriedma, ostannard, SjoerdMeijer Reviewed By: ostannard Subscribers: stuij, hiraditya, dmgreen, llvm-commits, chill, dnsampaio, danielkiss, kristof.beyls, cfe-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D75169
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions