File tree Expand file tree Collapse file tree 17 files changed +13
-66
lines changed
utils/bazel/llvm-project-overlay/libc Expand file tree Collapse file tree 17 files changed +13
-66
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,11 @@ add_header_library(
2323 libc.src.errno.errno
2424)
2525
26- add_header_library(
27- platform_defs
28- HDRS
29- PlatformDefs.h
30- DEPENDS
31- libc.src.__support.common
32- )
33-
3426add_header_library(
3527 float_properties
3628 HDRS
3729 FloatProperties.h
3830 DEPENDS
39- .platform_defs
4031 libc.src.__support.uint128
4132)
4233
@@ -46,7 +37,6 @@ add_header_library(
4637 FPBits.h
4738 DEPENDS
4839 .float_properties
49- .platform_defs
5040 libc.src.__support.common
5141 libc.src.__support.CPP.bit
5242 libc.src.__support.CPP.type_traits
@@ -100,7 +90,6 @@ add_header_library(
10090 .fp_bits
10191 .nearest_integer_operations
10292 .normal_float
103- .platform_defs
10493 libc.src.__support.CPP.bit
10594 libc.src.__support.CPP.type_traits
10695 libc.src.__support.common
Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
1010#define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FPBITS_H
1111
12- #include " PlatformDefs.h"
13-
1412#include " src/__support/CPP/bit.h"
1513#include " src/__support/CPP/type_traits.h"
1614#include " src/__support/bit.h"
Original file line number Diff line number Diff line change 99#ifndef LLVM_LIBC_SRC___SUPPORT_FPUTIL_FLOATPROPERTIES_H
1010#define LLVM_LIBC_SRC___SUPPORT_FPUTIL_FLOATPROPERTIES_H
1111
12- #include " PlatformDefs.h"
13-
1412#include " src/__support/UInt128.h"
13+ #include " src/__support/macros/properties/architectures.h" // LIBC_TARGET_ARCH_XXX
1514
1615#include < stdint.h>
1716
17+ // https://developer.arm.com/documentation/dui0491/i/C-and-C---Implementation-Details/Basic-data-types
18+ // https://developer.apple.com/documentation/xcode/writing-arm64-code-for-apple-platforms
19+ // https://docs.amd.com/bundle/HIP-Programming-Guide-v5.1/page/Programming_with_HIP.html
20+ #if defined(_WIN32) || defined(__arm__) || defined(__NVPTX__) || \
21+ defined (__AMDGPU__) || (defined (__APPLE__) && defined(__aarch64__))
22+ #define LONG_DOUBLE_IS_DOUBLE
23+ #endif
24+
25+ #if !defined(LONG_DOUBLE_IS_DOUBLE) && defined(LIBC_TARGET_ARCH_IS_X86)
26+ #define SPECIAL_X86_LONG_DOUBLE
27+ #endif
28+
1829namespace LIBC_NAMESPACE {
1930namespace fputil {
2031
Original file line number Diff line number Diff line change 1313#include " FloatProperties.h"
1414#include " NearestIntegerOperations.h"
1515#include " NormalFloat.h"
16- #include " PlatformDefs.h"
1716
1817#include " src/__support/CPP/bit.h"
1918#include " src/__support/CPP/type_traits.h"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ add_header_library(
1010 libc.src.__support.CPP.type_traits
1111 libc.src.__support.FPUtil.fenv_impl
1212 libc.src.__support.FPUtil.fp_bits
13- libc.src.__support.FPUtil.platform_defs
1413 libc.src.__support.FPUtil.rounding_mode
1514 libc.src.__support.bit
1615 libc.src.__support.uint128
Original file line number Diff line number Diff line change 1414#include " src/__support/CPP/type_traits.h"
1515#include " src/__support/FPUtil/FEnvImpl.h"
1616#include " src/__support/FPUtil/FPBits.h"
17- #include " src/__support/FPUtil/PlatformDefs.h"
1817#include " src/__support/FPUtil/rounding_mode.h"
1918#include " src/__support/UInt128.h"
2019#include " src/__support/bit.h"
Original file line number Diff line number Diff line change 1111
1212#include " src/__support/FPUtil/FEnvImpl.h"
1313#include " src/__support/FPUtil/FPBits.h"
14- #include " src/__support/FPUtil/PlatformDefs.h"
1514#include " src/__support/FPUtil/rounding_mode.h"
1615#include " src/__support/UInt128.h"
1716#include " src/__support/bit.h"
Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ add_fp_unittest(
132132 DEPENDS
133133 libc.src.stdio.sprintf
134134 libc.src.__support.FPUtil.fp_bits
135- libc.src.__support.FPUtil.platform_defs
136135 COMPILE_OPTIONS
137136 ${sprintf_test_copts}
138137)
Original file line number Diff line number Diff line change 99#include " src/stdio/sprintf.h"
1010
1111#include " src/__support/FPUtil/FPBits.h"
12- #include " src/__support/FPUtil/PlatformDefs.h"
1312#include " test/UnitTest/RoundingModeUtils.h"
1413#include " test/UnitTest/Test.h"
1514
You can’t perform that action at this time.
0 commit comments