Skip to content

Commit 949c030

Browse files
committed
Cleanup
1 parent 112eb04 commit 949c030

File tree

28 files changed

+72
-450
lines changed

28 files changed

+72
-450
lines changed

flang-rt/cmake/modules/AddFlangRT.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-- cmake/modules/AddFlangRT.cmake -------------------------------===#
1+
#===-- cmake/modules/AddFlangRT.cmake --------------------------------------===#
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.
@@ -58,11 +58,11 @@ function (add_flangrt_library name)
5858
add_library(${name} ${extra_args} ${ARG_ADDITIONAL_HEADERS} ${ARG_UNPARSED_ARGUMENTS})
5959

6060
if (ARG_INSTALL_WITH_TOOLCHAIN)
61-
set_target_properties(${name} PROPERTIES FOLDER "Fortran Runtime/Toolchain Libraries")
61+
set_target_properties(${name} PROPERTIES FOLDER "Flang-RT/Toolchain Libraries")
6262
elseif (ARG_OBJECT)
63-
set_target_properties(${name} PROPERTIES FOLDER "Fortran Runtime/Object Libraries")
63+
set_target_properties(${name} PROPERTIES FOLDER "Flang-RT/Object Libraries")
6464
else ()
65-
set_target_properties(${name} PROPERTIES FOLDER "Fortran Runtime/Libraries")
65+
set_target_properties(${name} PROPERTIES FOLDER "Flang-RT/Libraries")
6666
endif ()
6767

6868
# Minimum required C++ version for Flang-RT, even if CMAKE_CXX_STANDARD is defined to something else.

flang-rt/cmake/modules/AddFlangRTOffload.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-- cmake/modules/AddFortranOffloadRuntime.txt --------------------------===#
1+
#===-- cmake/modules/AddFortranRTOffload.txt -------------------------------===#
22
#
33
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
# See https://llvm.org/LICENSE.txt for license information.

flang-rt/lib/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
add_subdirectory(FortranFloat128Math)
1010
add_subdirectory(flang_rt)
11+
1112
if (FLANG_RT_ENABLE_CUF)
1213
add_subdirectory(CufRuntime)
1314
endif()

flang-rt/lib/CufRuntime/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
set(CUFRT_LIBNAME CufRuntime_cuda_${CUDAToolkit_VERSION_MAJOR})
1313

1414
add_flangrt_library(${CUFRT_LIBNAME}
15-
allocator.cpp
1615
allocatable.cpp
16+
allocator.cpp
1717
descriptor.cpp
1818
kernel.cpp
19-
memmove-function.cpp
2019
memory.cpp
2120
registration.cpp
2221
)

flang-rt/lib/CufRuntime/allocatable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include "flang/Runtime/CUDA/allocatable.h"
1010
#include "flang-rt/descriptor.h"
11-
#include "../assign-impl.h"
11+
#include "../flang_rt/assign-impl.h"
1212
#include "../flang_rt/stat.h"
1313
#include "../flang_rt/terminator.h"
1414
#include "flang/Runtime/CUDA/common.h"

flang-rt/lib/CufRuntime/memory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "flang/Runtime/CUDA/memory.h"
10+
#include "../flang_rt/assign-impl.h"
1011
#include "../flang_rt/terminator.h"
11-
#include "../assign-impl.h"
12-
#include "../terminator.h"
1312
#include "flang/Runtime/CUDA/common.h"
1413
#include "flang/Runtime/CUDA/descriptor.h"
1514
#include "flang/Runtime/CUDA/memmove-function.h"

flang-rt/lib/FortranFloat128Math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ elseif (HAVE_LDBL_MANT_DIG_113)
118118
)
119119
target_sources(FortranFloat128MathILib INTERFACE ${sources})
120120
else()
121-
message(FATAL_ERROR "flang-rt cannot build without libm")
121+
message(FATAL_ERROR "Flang-RT cannot build without libm")
122122
endif()
123123
else()
124124
# We can use '__float128' version from libc, if it has them.

flang-rt/lib/flang_rt/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ set(host_sources
8484
)
8585

8686
file(GLOB_RECURSE public_headers
87-
"${FLANG_RT_SOURCE_DIR}/include/flang/Runtime/*.h"
88-
"${FLANG_RT_SOURCE_DIR}/include/flang/Common/*.h"
87+
"${FLANG_RT_SOURCE_DIR}/include/flang_rt/*.h"
88+
"${FLANG_SOURCE_DIR}/include/flang/Common/*.h"
8989
)
9090

9191
file(GLOB_RECURSE private_headers
92-
"${FLANG_RT_SOURCE_DIR}/lib/Runtime/*.h"
93-
"${FLANG_RT_SOURCE_DIR}/lib/Common/*.h"
92+
"${FLANG_RT_SOURCE_DIR}/lib/flang_rt/*.h"
93+
"${FLANG_SOURCE_DIR}/lib/Common/*.h"
9494
)
9595

9696

@@ -139,7 +139,7 @@ if (NOT WIN32)
139139
else()
140140
# Target for building all versions of the runtime
141141
add_custom_target(flang_rt)
142-
set_target_properties(flang_rt PROPERTIES FOLDER "Fortran Runtime/Meta")
142+
set_target_properties(flang_rt PROPERTIES FOLDER "Flang-RT/Meta")
143143

144144
function (add_win_flangrt_library libtype suffix msvc_lib)
145145
set(name "flang_rt.${suffix}")
@@ -173,14 +173,14 @@ else()
173173
# roadblocks:
174174
#
175175
# * Flang emits /DEFAULTLIB:flang_rt.dynamic.lib into
176-
# iso_fortran_env_impl.f90.obj. Since that file is itself part of
176+
# iso_fortran_env_impl.f90.obj. Because that file is itself part of
177177
# flang_rt.dynamic, this results in a recursive dependency when invoking
178178
# the linker.
179179
#
180180
# * The externally-visible functions must either be annotated with
181-
# __declspec(dllexport), or listed in a exports file. A possible workaround
181+
# __declspec(dllexport), or listed in an exports file. A possible workaround
182182
# is CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS which would also export the internal
183-
# C++ symbols and still requires global data symbols by be annotated
183+
# C++ symbols and still requires global data symbols to be annotated
184184
# manually.
185185
#
186186
#add_win_flangrt_library(SHARED dynamic MultiThreadedDLL)

flang-rt/lib/flang_rt/io-api-minimal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool IODEF(OutputLogical)(Cookie cookie, bool truth) {
150150
// Provide own definition for `std::__libcpp_verbose_abort` to avoid dependency
151151
// on the version provided by libc++.
152152

153-
void std::__libcpp_verbose_abort(char const *format, ...) {
153+
void std::__libcpp_verbose_abort(char const *format, ...) noexcept {
154154
va_list list;
155155
va_start(list, format);
156156
std::vfprintf(stderr, format, list);

flang-rt/test/CMakeLists.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,22 +39,20 @@ if (TARGET FlangRTUnitTests)
3939
)
4040
endif ()
4141

42-
set(FLANG_RT_TEST_DEPENDS
42+
43+
add_custom_target(flang-rt-test-depends)
44+
set_target_properties(flang-rt-test-depends PROPERTIES FOLDER "Flang-RT/Meta")
45+
add_dependencies(flang-rt-test-depends
4346
FlangRTUnitTests
4447
flang_rt.unittest
4548
flang_rt.static
4649
)
4750

48-
add_custom_target(flang-rt-test-depends)
49-
set_target_properties(flang-rt-test-depends PROPERTIES FOLDER "Fortran Runtime/Meta")
50-
add_dependencies(flang-rt-test-depends ${FLANG_RT_TEST_DEPENDS})
51-
52-
add_lit_testsuite(check-flang-rt "Running the flang-rt regression tests"
51+
add_lit_testsuite(check-flang-rt "Running the Flang-RT regression tests"
5352
${CMAKE_CURRENT_BINARY_DIR}
5453
DEPENDS flang-rt-test-depends
5554
)
56-
set_target_properties(check-flang-rt PROPERTIES FOLDER "Fortran Runtime/Meta")
57-
55+
set_target_properties(check-flang-rt PROPERTIES FOLDER "Flang-RT/Meta")
5856

5957
add_lit_testsuites(flang-rt ${CMAKE_CURRENT_SOURCE_DIR}
6058
DEPENDS flang-rt-test-depends

0 commit comments

Comments
 (0)