]> granicus.if.org Git - clang/commit
[OPENMP]Fix the float point semantics handling on the device.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Jul 2019 14:09:53 +0000 (14:09 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 9 Jul 2019 14:09:53 +0000 (14:09 +0000)
commit8b69f877da41d6c12bebf5051aca0fced86baaad
tree6d8b99fccbf7db9bb2883e0826624a01afd0533d
parent46a49c6dd9b0bce765abe3f59d93b1800e345653
[OPENMP]Fix the float point semantics handling on the device.

The device should use the same float point representation as the host.
Previous patch fixed the handling of the sizes of the float point types,
but did not fixed the fp semantics. This patch makes target device to
use the host fp semantics. this is required for the correct data
transfer between host and device and correct codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365485 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/OpenMP/nvptx_asm_delayed_diags.c
test/OpenMP/nvptx_unsupported_type_codegen.cpp