[clang] [clang] Predefined macros for float128 support (PR #67196)
Pranav Kant via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 25 16:56:48 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");
----------------
pranavk wrote:
I am not adding any new float type or any literal suffix (unlike other revision you pointed by Ray). This is only adding float macros for which I modified the test that was expecting it.
https://github.com/llvm/llvm-project/pull/67196
More information about the cfe-commits
mailing list