[builtins] Avoid using CRT_LDBL_128BIT in implementation. NFC
authorAlex Richardson <alexrichardson@google.com>
Mon, 24 Jul 2023 23:41:44 +0000 (16:41 -0700)
committerAlex Richardson <alexrichardson@google.com>
Tue, 25 Jul 2023 00:19:11 +0000 (17:19 -0700)
commite3374c8c31fb54a2c8df6c906884e14f1c8a2209
tree1e9f811d00689ac63af09759e2ab2f25107333d5
parentb1149400122be1a9c713f3c31674a4f9b765c2d4
[builtins] Avoid using CRT_LDBL_128BIT in implementation. NFC

Currently the *tf builtin functions can only be built if long double is an
IEEE float, which prevents them from being available e.g. for x86 targets
(unlike libgcc which has them). This non-functional change prepares the
builtins library *tf functions for being able to target x86 by decoupling
their presence from CRT_LDBL_128BIT and instead checking for a
CRT_HAS_TF_MODE macro. This change is NFC since the CRT_HAS_TF_MODE is
currently only set if long double is an IEEE 128-bit float.

Reviewed By: compnerd

Differential Revision: https://reviews.llvm.org/D153812
25 files changed:
compiler-rt/lib/builtins/addtf3.c
compiler-rt/lib/builtins/comparetf2.c
compiler-rt/lib/builtins/divtf3.c
compiler-rt/lib/builtins/extenddftf2.c
compiler-rt/lib/builtins/extendhftf2.c
compiler-rt/lib/builtins/extendsftf2.c
compiler-rt/lib/builtins/fixtfdi.c
compiler-rt/lib/builtins/fixtfsi.c
compiler-rt/lib/builtins/fixtfti.c
compiler-rt/lib/builtins/fixunstfdi.c
compiler-rt/lib/builtins/fixunstfsi.c
compiler-rt/lib/builtins/fixunstfti.c
compiler-rt/lib/builtins/floatditf.c
compiler-rt/lib/builtins/floatsitf.c
compiler-rt/lib/builtins/floattitf.c
compiler-rt/lib/builtins/floatunditf.c
compiler-rt/lib/builtins/floatunsitf.c
compiler-rt/lib/builtins/floatuntitf.c
compiler-rt/lib/builtins/fp_lib.h
compiler-rt/lib/builtins/multf3.c
compiler-rt/lib/builtins/powitf2.c
compiler-rt/lib/builtins/subtf3.c
compiler-rt/lib/builtins/trunctfdf2.c
compiler-rt/lib/builtins/trunctfhf2.c
compiler-rt/lib/builtins/trunctfsf2.c