[libc] Remove the redundant header FPUtil/FEnvUtils.h

Remove the redundant header FPUtil/FEnvUtils.h, use FPUtil/FEnvImpl.h header instead.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D120965
This commit is contained in:
Tue Ly 2022-03-03 22:58:51 -05:00
parent dce6aa237a
commit 76ec69a911
30 changed files with 30 additions and 53 deletions

View File

@ -4,7 +4,6 @@ add_header_library(
FEnvImpl.h
BasicOperations.h
DivisionAndRemainderOperations.h
FEnvUtils.h
FloatProperties.h
FPBits.h
BasicOperations.h

View File

@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H
#include "src/__support/architectures.h"
@ -44,4 +44,4 @@ static inline int set_env(const fenv_t *) { return 0; }
} // namespace __llvm_libc
#endif
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_DUMMY_FENVIMPL_H
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVIMPL_H

View File

@ -1,22 +0,0 @@
//===-- Utilities for manipulating floating point environment ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H
#include "src/__support/architectures.h"
#if defined(LLVM_LIBC_ARCH_X86_64)
#include "x86_64/FEnvImpl.h"
#elif defined(LLVM_LIBC_ARCH_AARCH64)
#include "aarch64/FEnvImpl.h"
#else
#include "DummyFEnvImpl.h"
#endif
#endif // LLVM_LIBC_SRC_SUPPORT_FPUTIL_FENVUTILS_H

View File

@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_NEAREST_INTEGER_OPERATIONS_H
#include "FEnvUtils.h"
#include "FEnvImpl.h"
#include "FPBits.h"
#include "src/__support/CPP/TypeTraits.h"

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/feclearexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fedisableexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/feenableexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fegetenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fegetexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fegetexceptflag.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
#include <fenv.h>

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fegetround.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/feholdexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
#include <fenv.h>

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/feraiseexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fesetenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fesetexceptflag.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
#include <fenv.h>

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fesetround.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/fetestexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
namespace __llvm_libc {

View File

@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/fenv/feupdateenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/common.h"
#include <fenv.h>

View File

@ -9,7 +9,7 @@
#include "src/math/log10f.h"
#include "common_constants.h" // Lookup table for (1/f)
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"

View File

@ -9,7 +9,7 @@
#include "src/math/log1pf.h"
#include "common_constants.h" // Lookup table for (1/f) and log(f)
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"

View File

@ -9,7 +9,7 @@
#include "src/math/log2f.h"
#include "common_constants.h" // Lookup table for (1/f)
#include "src/__support/FPUtil/BasicOperations.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FMA.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"

View File

@ -10,7 +10,7 @@
#include "src/fenv/feraiseexcept.h"
#include "src/fenv/fetestexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/architectures.h"
#include "utils/UnitTest/FPExceptMatcher.h"
#include "utils/UnitTest/Test.h"

View File

@ -9,7 +9,7 @@
#include "src/fenv/fegetexceptflag.h"
#include "src/fenv/fesetexceptflag.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "utils/UnitTest/Test.h"
#include <fenv.h>

View File

@ -10,7 +10,7 @@
#include "src/fenv/feraiseexcept.h"
#include "src/fenv/fetestexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "utils/UnitTest/Test.h"
#include <fenv.h>

View File

@ -8,7 +8,7 @@
#include "src/fenv/feclearexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "utils/UnitTest/Test.h"
#include <fenv.h>

View File

@ -8,7 +8,7 @@
#include "src/fenv/feholdexcept.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/architectures.h"
#include "utils/UnitTest/FPExceptMatcher.h"
#include "utils/UnitTest/Test.h"

View File

@ -8,7 +8,7 @@
#include "src/fenv/feupdateenv.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "utils/UnitTest/Test.h"
#include <fenv.h>

View File

@ -11,7 +11,7 @@
#include "src/fenv/fesetenv.h"
#include "src/fenv/fesetround.h"
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "utils/UnitTest/Test.h"
#include <fenv.h>

View File

@ -9,7 +9,7 @@
#ifndef LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H
#define LLVM_LIBC_TEST_SRC_MATH_RINTTEST_H
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FPBits.h"
#include "utils/MPFRWrapper/MPFRUtils.h"
#include "utils/UnitTest/FPMatcher.h"

View File

@ -18,7 +18,7 @@
#include <errno.h>
#endif
#if math_errhandling & MATH_ERREXCEPT
#include "src/__support/FPUtil/FEnvUtils.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#endif
namespace mpfr = __llvm_libc::testing::mpfr;