[PATCH] D134859: [clang][Interp] Implement basic support for floating point values
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 01:10:19 PDT 2022
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, shafik, tahonermann.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This only handles floats for now, so 32 bit floating point values.
There are a few things I'm uncertain about, like how to implement `Floating<>::truncate()` or whether or not `Float32` should be part of `AluTypeClass`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134859
Files:
clang/lib/AST/Interp/Boolean.h
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/lib/AST/Interp/Context.cpp
clang/lib/AST/Interp/Floating.h
clang/lib/AST/Interp/Integral.h
clang/lib/AST/Interp/InterpStack.h
clang/lib/AST/Interp/Opcodes.td
clang/lib/AST/Interp/PrimType.h
clang/lib/AST/Interp/Primitives.h
clang/test/AST/Interp/literals.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134859.463781.patch
Type: text/x-patch
Size: 17392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220929/5d83035a/attachment-0001.bin>
More information about the cfe-commits
mailing list