[clang] [clang] Predefined macros for float128 support (PR #67196)
Alexander Shaposhnikov via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 15:03:00 PDT 2023
================
@@ -1076,6 +1076,8 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
DefineFloatMacros(Builder, "FLT", &TI.getFloatFormat(), "F");
DefineFloatMacros(Builder, "DBL", &TI.getDoubleFormat(), "");
DefineFloatMacros(Builder, "LDBL", &TI.getLongDoubleFormat(), "L");
+ if (TI.hasFloat128Type())
+ DefineFloatMacros(Builder, "FLT128", &TI.getFloat128Format(), "Q");
----------------
alexander-shaposhnikov wrote:
This needs tests (see e.g. https://reviews.llvm.org/D111382, https://github.com/llvm/llvm-project/blob/main/clang/test/Preprocessor)
https://github.com/llvm/llvm-project/pull/67196
More information about the cfe-commits
mailing list