Skip to content

Commit d49157d

Browse files
committed
Move Module sources back to Flang
Build fix f90 relative paths update copyright headers Test experimental CUDA build
1 parent 2216bfe commit d49157d

35 files changed

+68
-20
lines changed

FortranRuntime/include/flang/Common/ISO_Fortran_binding_wrapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace Fortran {
2828
namespace ISO {
2929
#define FORTRAN_ISO_NAMESPACE_ ::Fortran::ISO
3030
#endif /* __cplusplus */
31-
#include "ISO_Fortran_binding.h"
31+
#include "flang/ISO_Fortran_binding.h"
3232
#ifdef __cplusplus
3333
} // namespace ISO
3434
} // namespace Fortran

FortranRuntime/include/flang/Runtime/io-api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#ifndef FORTRAN_RUNTIME_IO_API_H_
1212
#define FORTRAN_RUNTIME_IO_API_H_
1313

14+
#include "flang/Common/magic-numbers.h"
1415
#include "flang/Common/uint128.h"
1516
#include "flang/Runtime/entry-names.h"
1617
#include "flang/Runtime/iostat.h"
17-
#include "flang/Runtime/magic-numbers.h"
1818
#include <cinttypes>
1919
#include <cstddef>
2020

FortranRuntime/include/flang/Runtime/iostat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef FORTRAN_RUNTIME_IOSTAT_H_
1313
#define FORTRAN_RUNTIME_IOSTAT_H_
1414
#include "flang/Common/api-attrs.h"
15-
#include "flang/Runtime/magic-numbers.h"
15+
#include "flang/Common/magic-numbers.h"
1616
namespace Fortran::runtime::io {
1717

1818
// The value of IOSTAT= is zero when no error, end-of-record,

FortranRuntime/lib/Runtime/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-- runtime/CMakeLists.txt ----------------------------------------------===#
1+
#===-- lib/Runtime/CMakeLists.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.
@@ -15,7 +15,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
1515
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
1616
set(CMAKE_CXX_EXTENSIONS OFF)
1717

18-
set(FLANG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/..")
18+
set(FLANG_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../../flang")
1919

2020
set(LLVM_COMMON_CMAKE_UTILS "${FLANG_SOURCE_DIR}/../cmake")
2121
set(LLVM_CMAKE_UTILS "${FLANG_SOURCE_DIR}/../llvm/cmake")

FortranRuntime/lib/Runtime/CUDA/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-- runtime/CUDA/CMakeLists.txt -----------------------------------------===#
1+
#===-- lib/Runtime/CUDA/CMakeLists.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.

FortranRuntime/lib/Runtime/Float128Math/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#===-- runtime/Float128Math/CMakeLists.txt ---------------------------------===#
1+
#===-- lib/Runtime/Float128Math/CMakeLists.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.

FortranRuntime/lib/Runtime/file.cpp

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

99
#include "file.h"
10-
#include "flang/Runtime/magic-numbers.h"
11-
#include "flang/Runtime/memory.h"
1210
#include "tools.h"
11+
#include "flang/Common/magic-numbers.h"
12+
#include "flang/Runtime/memory.h"
1313
#include <algorithm>
1414
#include <cerrno>
1515
#include <cstring>

FortranRuntime/lib/Runtime/io-error.cpp

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

99
#include "io-error.h"
1010
#include "config.h"
11-
#include "flang/Runtime/magic-numbers.h"
1211
#include "tools.h"
12+
#include "flang/Common/magic-numbers.h"
1313
#include <cerrno>
1414
#include <cstdarg>
1515
#include <cstdio>

FortranRuntime/lib/Runtime/stat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define FORTRAN_RUNTIME_STAT_H_
1414
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
1515
#include "flang/Common/api-attrs.h"
16-
#include "flang/Runtime/magic-numbers.h"
16+
#include "flang/Common/magic-numbers.h"
1717
namespace Fortran::runtime {
1818

1919
class Descriptor;

0 commit comments

Comments
 (0)