[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 02:21:37 PDT 2022


tbaeder added inline comments.


================
Comment at: clang/lib/AST/Interp/Context.cpp:130
+  if (T->isFloatingType()) {
+    unsigned Bytes = getASTContext().getTypeSize(T);
+    if (Bytes == 32)
----------------



================
Comment at: clang/lib/AST/Interp/Floating.h:106
+  // -------
+
+  static bool add(Floating A, Floating B, unsigned OpBits, Floating *R) {
----------------
The operations here don't do overflow or UB handling.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134859/new/

https://reviews.llvm.org/D134859



More information about the cfe-commits mailing list