Skip to content

Commit 0267f01

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime_move-files' into users/meinersbur/flang_runtime
2 parents 5eaa354 + e3e0abe commit 0267f01

File tree

18 files changed

+60
-72
lines changed

18 files changed

+60
-72
lines changed

flang-rt/lib/flang_rt/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set(BACKTRACE_HEADER ${Backtrace_HEADER})
1515

1616
# List of files that are buildable for all devices.
1717
set(supported_sources
18+
${FLANG_SOURCE_DIR}/lib/Common/binary-to-decimal.cpp
19+
${FLANG_SOURCE_DIR}/lib/Common/decimal-to-binary.cpp
1820
ISO_Fortran_binding.cpp
1921
allocator-registry.cpp
2022
allocatable.cpp

flang-rt/test/Runtime/no-cpp-dep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ UNSUPPORTED: system-windows
88
RUN: %if system-aix %{ export OBJECT_MODE=64 %}
99
RUN: %cc -std=c99 %s -I%include -L"%libdir" -lflang_rt -lm %deplibs \
1010
RUN: %if system-aix %{-lpthread %}
11+
RUN: rm a.out
1112
*/
1213

1314
#include "flang/Runtime/entry-names.h"

flang-rt/unittests/Runtime/CUDA/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@
77
#===------------------------------------------------------------------------===#
88

99
add_flangrt_unittest(FlangCufRuntimeTests
10+
Allocatable.cpp
1011
Allocatable.cpp
1112
AllocatorCUF.cpp
13+
Memory.cpp
1214
)
1315

16+
if (BUILD_SHARED_LIBS)
17+
set(CUDA_RT_TARGET CUDA::cudart)
18+
else()
19+
set(CUDA_RT_TARGET CUDA::cudart_static)
20+
endif()
21+
1422
target_link_libraries(FlangCufRuntimeTests
1523
PRIVATE
24+
${CUDA_RT_TARGET}
1625
CufRuntime_cuda_${CUDAToolkit_VERSION_MAJOR}
1726
flang_rt
1827
)

flang/unittests/Runtime/CUDA/Memory.cpp renamed to flang-rt/unittests/Runtime/CUDA/Memory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "flang/Runtime/CUDA/memory.h"
10+
#include "flang-rt/CUDA/allocator.h"
11+
#include "flang-rt/allocator-registry.h"
1012
#include "gtest/gtest.h"
11-
#include "../../../runtime/terminator.h"
13+
#include "../../../lib/flang_rt/terminator.h"
1214
#include "../tools.h"
13-
#include "flang/Common/Fortran.h"
14-
#include "flang/Runtime/CUDA/allocator.h"
1515
#include "flang/Runtime/CUDA/common.h"
1616
#include "flang/Runtime/CUDA/descriptor.h"
1717
#include "flang/Runtime/allocatable.h"
18-
#include "flang/Runtime/allocator-registry.h"
18+
#include "flang/Support/Fortran.h"
1919

2020
#include "cuda_runtime.h"
2121

flang/include/flang/Common/ISO_Fortran_binding_wrapper.h

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

2323
/* clang-format off */
2424
#include <stddef.h>
25-
#include "flang/Common/api-attrs.h"
25+
#include "flang/Common/api-attrs.h"
2626
#ifdef __cplusplus
2727
namespace Fortran {
2828
namespace ISO {

flang/include/flang/Parser/message.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
#include "char-block.h"
1616
#include "char-set.h"
1717
#include "provenance.h"
18-
#include "flang/Support/Fortran-features.h"
1918
#include "flang/Common/idioms.h"
2019
#include "flang/Common/restorer.h"
20+
#include "flang/Support/Fortran-features.h"
2121
#include "flang/Support/reference-counted.h"
2222
#include <cstddef>
2323
#include <cstring>

flang/lib/Frontend/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ add_flang_library(flangFrontend
2828
FortranSemantics
2929
FortranEvaluate
3030
FortranSupport
31+
FortranSupport
3132
FortranLower
3233
FIRDialect
3334
FIRDialectSupport

flang/lib/Lower/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ add_flang_library(FortranLower
5757
${dialect_libs}
5858
${extension_libs}
5959
FortranSupport
60+
FortranSupport
6061
FortranParser
6162
FortranEvaluate
6263
FortranSemantics

flang/lib/Optimizer/Transforms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ add_flang_library(FIRTransforms
4747
FIRDialectSupport
4848
FIRSupport
4949
FortranSupport
50+
FortranSupport
5051
HLFIRDialect
5152
MLIRAffineUtils
5253
MLIRFuncDialect

flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "flang/Optimizer/Dialect/FIROpsSupport.h"
1212
#include "flang/Optimizer/Support/InternalNames.h"
1313
#include "flang/Optimizer/Transforms/Passes.h"
14+
#include "flang/Support/Fortran.h"
1415
#include "mlir/Dialect/GPU/IR/GPUDialect.h"
1516
#include "flang/Support/Fortran.h"
1617
#include "mlir/IR/Attributes.h"

0 commit comments

Comments
 (0)