[PATCH] D64276: [ItaniumMangle] Replace useFloat128ManglingForLongDouble() with getManglingForLongDouble() and getManglingForFloat128()

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 5 22:23:45 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: awilfox, echristo, erichkeane, hfinkel, majnemer, rnk, rsmith.
Herald added subscribers: cfe-commits, erik.pilkington, jdoerfert, jsji, kbarton, nemanjai.
Herald added a project: clang.

On PowerPC, long double has 3 mangling schemes:

-mlong-double-64: "e"
-mlong-double-128 -mabi=ibmlongdouble: "g"
-mlong-double-128 -mabi=ieeelongdouble: "U10__float128"

The current bisection is not suitable when we add -mlong-double-128.
Replace useFloat128ManglingForLongDouble() with
getManglingForLongDouble() and getManglingForFloat128() to allow 3
mangling schemes.

This change is a no-op on X86 and SystemZ.
I deleted `getTriple().isOSBinFormatELF()` because the Darwin support
has gone: https://reviews.llvm.org/D50988


Repository:
  rC Clang

https://reviews.llvm.org/D64276

Files:
  include/clang/Basic/TargetInfo.h
  lib/AST/ItaniumMangle.cpp
  lib/Basic/Targets/PPC.h
  lib/Basic/Targets/SystemZ.h
  lib/Basic/Targets/X86.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64276.208254.patch
Type: text/x-patch
Size: 4465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190706/fb51f858/attachment.bin>


More information about the cfe-commits mailing list