Skip to content

Commit 36c9540

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime' into users/meinersbur/flang_runtime_shared
2 parents 99ae1be + ae32af9 commit 36c9540

File tree

11 files changed

+12
-19
lines changed

11 files changed

+12
-19
lines changed

flang-rt/.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ IncludeCategories:
1616
Priority: 4
1717
- Regex: '^"flang-rt/' # Public Flang-RT headers
1818
Priority: 3
19-
- Regex: '^[^/]*$' # Private header from same library
19+
- Regex: '^[^/]*$' # Private headers from same library
2020
Priority: 1
2121
- Regex: '.*' # Private headers from sibling libraries
2222
Priority: 2

flang/include/flang/Runtime/allocatable.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
#ifndef FORTRAN_RUNTIME_ALLOCATABLE_H_
1212
#define FORTRAN_RUNTIME_ALLOCATABLE_H_
1313

14-
#include "flang/Common/Fortran-consts.h"
1514
#include "flang/Runtime/descriptor-consts.h"
1615
#include "flang/Runtime/entry-names.h"
1716

1817
namespace Fortran::runtime {
19-
using SubscriptValue = ISO::CFI_index_t;
2018
using common::TypeCategory;
2119

2220
extern "C" {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/io-api.h -------------------------------*- C++ -*-===//
1+
//===-- include/flang/Runtime/io-api.h --------------------------*- C++ -*-===//
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/include/flang/Runtime/pointer.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@
1212
#ifndef FORTRAN_RUNTIME_POINTER_H_
1313
#define FORTRAN_RUNTIME_POINTER_H_
1414

15-
#include "flang/Common/Fortran-consts.h"
1615
#include "flang/Runtime/descriptor-consts.h"
1716
#include "flang/Runtime/entry-names.h"
1817

1918
namespace Fortran::runtime {
20-
using SubscriptValue = ISO::CFI_index_t;
21-
using common::TypeCategory;
22-
2319
extern "C" {
2420

2521
// Data pointer initialization for NULLIFY(), "p=>NULL()`, & for ALLOCATE().
@@ -126,4 +122,4 @@ RT_API_ATTRS bool ValidatePointerPayload(const ISO::CFI_cdesc_t &);
126122

127123
} // extern "C"
128124
} // namespace Fortran::runtime
129-
#endif /* FORTRAN_RUNTIME_POINTER_H_ */
125+
#endif // FORTRAN_RUNTIME_POINTER_H_

flang/include/flang/Semantics/semantics.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "flang/Evaluate/intrinsics.h"
1818
#include "flang/Evaluate/target.h"
1919
#include "flang/Parser/message.h"
20-
#include "flang/Semantics/module-dependences.h"
2120
#include "flang/Support/Fortran-features.h"
2221
#include "flang/Support/LangOptions.h"
2322
#include <iosfwd>

flang/lib/Optimizer/Dialect/FIRType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,4 +1419,4 @@ fir::getTypeSizeAndAlignmentOrCrash(mlir::Location loc, mlir::Type ty,
14191419
if (result)
14201420
return *result;
14211421
TODO(loc, "computing size of a component");
1422-
}
1422+
}

flang/lib/Support/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ if(FLANG_VENDOR)
4242
PROPERTIES COMPILE_DEFINITIONS "FLANG_VENDOR=\"${FLANG_VENDOR} \"")
4343
endif()
4444

45-
4645
add_flang_library(FortranSupport
4746
Fortran.cpp
4847
Fortran-features.cpp
@@ -54,8 +53,8 @@ add_flang_library(FortranSupport
5453
${version_inc}
5554

5655
LINK_COMPONENTS
57-
Support
56+
Support
5857

5958
LINK_LIBS
60-
MLIRIR
59+
MLIRIR
6160
)

flang/test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
ToolSubst("%not_todo_abort_cmd", command=FindTool("not"), unresolved="fatal")
164164
)
165165

166+
config.available_features.add("flang-rt")
166167
# Add all the tools and their substitutions (if applicable). Use the search paths provided for
167168
# finding the tools.
168169
if config.flang_standalone_build:

flang/tools/f18/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if (NOT CMAKE_CROSSCOMPILING)
105105
set(compile_with "-fsyntax-only")
106106
set(object_output "")
107107
set(include_in_link FALSE)
108-
if(${filename} IN_LIST MODULES_WITH_IMPLEMENTATION AND FORTRAN_INCLUDE_RUNTIME)
108+
if(${filename} IN_LIST MODULES_WITH_IMPLEMENTATION AND FLANG_INCLUDE_RUNTIME)
109109
set(object_output "${CMAKE_CURRENT_BINARY_DIR}/${filename}${CMAKE_CXX_OUTPUT_EXTENSION}")
110110
set(compile_with -c -o ${object_output})
111111
set(include_in_link TRUE)

flang/unittests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function(add_flang_unittest_offload_properties target)
2626
# FIXME: replace 'native' in --offload-arch option with the list
2727
# of targets that Fortran Runtime was built for.
2828
# Common code must be moved from flang/runtime/CMakeLists.txt.
29-
if (FLANG_EXPERIMENTAL_OMP_OFFLOAD_BUILD)
29+
if (NOT FLANG_EXPERIMENTAL_OMP_OFFLOAD_BUILD STREQUAL "off")
3030
set_target_properties(${target}
3131
PROPERTIES LINK_OPTIONS
3232
"-fopenmp;--offload-arch=native"

0 commit comments

Comments
 (0)