[flang-commits] [flang] [NFC][flang][runtime] Moved freestanding-tools.h to use it in FortranDecimal. (PR #87827)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Fri Apr 5 13:42:59 PDT 2024
https://github.com/vzakhari created https://github.com/llvm/llvm-project/pull/87827
I will add `toupper` implementation into it in the next PR.
>From 345b10eee0fb91505995c00089b0169531428b2e Mon Sep 17 00:00:00 2001
From: Slava Zakharin <szakharin at nvidia.com>
Date: Fri, 5 Apr 2024 13:37:52 -0700
Subject: [PATCH] [NFC][flang][runtime] Moved freestanding-tools.h to use it in
FortranDecimal.
I will add `toupper` implementation into it in the next PR.
---
flang/{runtime => include/flang/Runtime}/freestanding-tools.h | 2 +-
flang/runtime/buffer.h | 2 +-
flang/runtime/descriptor-io.cpp | 2 +-
flang/runtime/edit-input.cpp | 2 +-
flang/runtime/format.h | 2 +-
flang/runtime/internal-unit.cpp | 2 +-
flang/runtime/memory.cpp | 2 +-
flang/runtime/tools.h | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
rename flang/{runtime => include/flang/Runtime}/freestanding-tools.h (98%)
diff --git a/flang/runtime/freestanding-tools.h b/flang/include/flang/Runtime/freestanding-tools.h
similarity index 98%
rename from flang/runtime/freestanding-tools.h
rename to flang/include/flang/Runtime/freestanding-tools.h
index 9089dc6bcf53e1..7f8d37d87e0e61 100644
--- a/flang/runtime/freestanding-tools.h
+++ b/flang/include/flang/Runtime/freestanding-tools.h
@@ -1,4 +1,4 @@
-//===-- runtime/freestanding-tools.h ----------------------------*- C++ -*-===//
+//===-- include/flang/Runtime/freestanding-tools.h --------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
diff --git a/flang/runtime/buffer.h b/flang/runtime/buffer.h
index ca1baea12efafa..41a1abb1b2d907 100644
--- a/flang/runtime/buffer.h
+++ b/flang/runtime/buffer.h
@@ -11,8 +11,8 @@
#ifndef FORTRAN_RUNTIME_BUFFER_H_
#define FORTRAN_RUNTIME_BUFFER_H_
-#include "freestanding-tools.h"
#include "io-error.h"
+#include "flang/Runtime/freestanding-tools.h"
#include "flang/Runtime/memory.h"
#include <algorithm>
#include <cinttypes>
diff --git a/flang/runtime/descriptor-io.cpp b/flang/runtime/descriptor-io.cpp
index 93df51cf22d3f4..380ad425d925f0 100644
--- a/flang/runtime/descriptor-io.cpp
+++ b/flang/runtime/descriptor-io.cpp
@@ -7,8 +7,8 @@
//===----------------------------------------------------------------------===//
#include "descriptor-io.h"
-#include "freestanding-tools.h"
#include "flang/Common/restorer.h"
+#include "flang/Runtime/freestanding-tools.h"
namespace Fortran::runtime::io::descr {
RT_OFFLOAD_API_GROUP_BEGIN
diff --git a/flang/runtime/edit-input.cpp b/flang/runtime/edit-input.cpp
index 935b7c299b2564..37989bbcee0ab8 100644
--- a/flang/runtime/edit-input.cpp
+++ b/flang/runtime/edit-input.cpp
@@ -7,12 +7,12 @@
//===----------------------------------------------------------------------===//
#include "edit-input.h"
-#include "freestanding-tools.h"
#include "namelist.h"
#include "utf.h"
#include "flang/Common/optional.h"
#include "flang/Common/real.h"
#include "flang/Common/uint128.h"
+#include "flang/Runtime/freestanding-tools.h"
#include <algorithm>
#include <cfenv>
diff --git a/flang/runtime/format.h b/flang/runtime/format.h
index f57cf920448712..5329f2482d3e46 100644
--- a/flang/runtime/format.h
+++ b/flang/runtime/format.h
@@ -12,11 +12,11 @@
#define FORTRAN_RUNTIME_FORMAT_H_
#include "environment.h"
-#include "freestanding-tools.h"
#include "io-error.h"
#include "flang/Common/Fortran.h"
#include "flang/Common/optional.h"
#include "flang/Decimal/decimal.h"
+#include "flang/Runtime/freestanding-tools.h"
#include <cinttypes>
namespace Fortran::runtime {
diff --git a/flang/runtime/internal-unit.cpp b/flang/runtime/internal-unit.cpp
index 35766306ccefbe..4097ea659edd4c 100644
--- a/flang/runtime/internal-unit.cpp
+++ b/flang/runtime/internal-unit.cpp
@@ -7,9 +7,9 @@
//===----------------------------------------------------------------------===//
#include "internal-unit.h"
-#include "freestanding-tools.h"
#include "io-error.h"
#include "flang/Runtime/descriptor.h"
+#include "flang/Runtime/freestanding-tools.h"
#include <algorithm>
#include <type_traits>
diff --git a/flang/runtime/memory.cpp b/flang/runtime/memory.cpp
index de6c4c72fdac14..c7068ad6479a12 100644
--- a/flang/runtime/memory.cpp
+++ b/flang/runtime/memory.cpp
@@ -7,9 +7,9 @@
//===----------------------------------------------------------------------===//
#include "flang/Runtime/memory.h"
-#include "freestanding-tools.h"
#include "terminator.h"
#include "tools.h"
+#include "flang/Runtime/freestanding-tools.h"
#include <cstdlib>
namespace Fortran::runtime {
diff --git a/flang/runtime/tools.h b/flang/runtime/tools.h
index 5d7d99c08179dd..52049c511f13ed 100644
--- a/flang/runtime/tools.h
+++ b/flang/runtime/tools.h
@@ -9,12 +9,12 @@
#ifndef FORTRAN_RUNTIME_TOOLS_H_
#define FORTRAN_RUNTIME_TOOLS_H_
-#include "freestanding-tools.h"
#include "stat.h"
#include "terminator.h"
#include "flang/Common/optional.h"
#include "flang/Runtime/cpp-type.h"
#include "flang/Runtime/descriptor.h"
+#include "flang/Runtime/freestanding-tools.h"
#include "flang/Runtime/memory.h"
#include <cstring>
#include <functional>
More information about the flang-commits
mailing list