[clang][Interp] Support floating-point values
authorTimm Bäder <tbaeder@redhat.com>
Sun, 30 Oct 2022 06:28:56 +0000 (07:28 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 25 Jan 2023 13:41:26 +0000 (14:41 +0100)
commit62f43c3eae2460d4ca3da7897fd2d7c56920638c
treedb8ba8d0541453226c794845e56584da50c1cec5
parent9de0086d4c3cdba79414054a34a9d7e42956cbb3
[clang][Interp] Support floating-point values

Add a new Floating type and a few new opcodes to support floating point
values.

Differential Revision: https://reviews.llvm.org/D134859
22 files changed:
clang/lib/AST/CMakeLists.txt
clang/lib/AST/Interp/Boolean.h
clang/lib/AST/Interp/ByteCodeEmitter.cpp
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Descriptor.cpp
clang/lib/AST/Interp/Disasm.cpp
clang/lib/AST/Interp/Floating.cpp [new file with mode: 0644]
clang/lib/AST/Interp/Floating.h [new file with mode: 0644]
clang/lib/AST/Interp/Integral.h
clang/lib/AST/Interp/Interp.cpp
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/InterpFrame.cpp
clang/lib/AST/Interp/InterpStack.h
clang/lib/AST/Interp/Opcodes.td
clang/lib/AST/Interp/PrimType.cpp
clang/lib/AST/Interp/PrimType.h
clang/lib/AST/Interp/Primitives.h [new file with mode: 0644]
clang/test/AST/Interp/const-fpfeatures.cpp [new file with mode: 0644]
clang/test/AST/Interp/floats.cpp [new file with mode: 0644]
clang/test/SemaCXX/rounding-math.cpp