Skip to content

[Flang][NFC] Move runtime library files to flang-rt. #110298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 95 commits into from
Feb 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
72e3c5d
[Flang] Introduce FortranSupport
Meinersbur Jan 24, 2025
71015c8
[Flang] Promote FortranEvaluateTesting library
Meinersbur Jan 24, 2025
2e50a1f
[Flang] Don't use FortranDecimal for runtime
Meinersbur Jan 24, 2025
4c676f4
users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME
Meinersbur Jan 24, 2025
875607f
[Flang] Rename libFortranRuntime.a to libflang_rt.a
Meinersbur Jan 24, 2025
7e369b5
[Flang][NFC] Move runtime library files to flang-rt
Meinersbur Jan 24, 2025
24fb760
Sort files alphabetically
Meinersbur Jan 27, 2025
0810293
Merge branch 'main' into users/meinersbur/flang_runtime_FortranSupport
Meinersbur Jan 27, 2025
a7cd5b2
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Jan 27, 2025
962958a
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Jan 27, 2025
70326fe
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Jan 27, 2025
a2a68ba
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Jan 27, 2025
c5e6acc
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Jan 27, 2025
f2e1535
Move new file pointer.cpp
Meinersbur Jan 27, 2025
b9ab00d
Move files back to Common
Meinersbur Jan 29, 2025
f3e9c15
add missing includes
Meinersbur Jan 29, 2025
8349624
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Jan 29, 2025
e5f2532
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Jan 29, 2025
9e8a785
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Jan 29, 2025
c3924da
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Jan 29, 2025
b9bbae9
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Jan 29, 2025
6a7bd03
Use C++style comments for header guards
Meinersbur Jan 29, 2025
db749b9
Use C++style comments for header guards II
Meinersbur Jan 29, 2025
d3c1b9a
Merge branch 'main' into users/meinersbur/flang_runtime_FortranSupport
Meinersbur Jan 30, 2025
d9023dd
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Jan 30, 2025
eda88d9
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Jan 30, 2025
aa1770b
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Jan 30, 2025
1b988f0
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Jan 30, 2025
8d6bdf0
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Jan 30, 2025
9fce9ef
Post-merge fixes
Meinersbur Jan 30, 2025
f4729e6
Conditionalize runtime example
Meinersbur Feb 3, 2025
6bb9de2
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 3, 2025
4303d5a
Rename to libflang_rt.<component>.(a|so)
Meinersbur Feb 3, 2025
d2f17f8
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 3, 2025
8fae565
forgotten change
Meinersbur Feb 3, 2025
8e8b338
Rename to flang_rt.runtime, flang_rt.quadmath, flang_rt.cuda
Meinersbur Feb 3, 2025
7dc5f20
Merge branch 'main' into users/meinersbur/flang_runtime_FortranSupport
Meinersbur Feb 4, 2025
88ecb82
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Feb 4, 2025
993564a
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Feb 4, 2025
7875cff
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 4, 2025
4498646
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 4, 2025
3477620
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 4, 2025
0a4dfcc
Merge branch 'main' into users/meinersbur/flang_runtime_FortranSupport
Meinersbur Feb 4, 2025
0a9c5fd
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Feb 4, 2025
d509bef
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Feb 4, 2025
8e3ddbf
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 4, 2025
b2a6556
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 4, 2025
901be28
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 4, 2025
7158e15
Merge remote-tracking branch 'official/main' into users/meinersbur/fl…
Meinersbur Feb 5, 2025
b286a88
clang-format includes
Meinersbur Feb 6, 2025
40b2f71
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Feb 6, 2025
080f30c
Merge commit 'b815a3942a0b0a9e7aab6b269ffdb0e93abc4368' into users/me…
Meinersbur Feb 6, 2025
919919f
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Feb 6, 2025
8096d45
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Feb 6, 2025
d35bea0
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 6, 2025
a446bad
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 6, 2025
8ef26b6
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 6, 2025
778f516
Adapt BSD test
Meinersbur Feb 6, 2025
4c9e378
Merge branch 'main' into users/meinersbur/flang_runtime_FortranSupport
Meinersbur Feb 6, 2025
08a7bbc
Merge branch 'users/meinersbur/flang_runtime_FortranSupport' into use…
Meinersbur Feb 6, 2025
3f99cd5
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Feb 6, 2025
1fbd2c5
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 6, 2025
b45a08d
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 6, 2025
1bff4ab
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 6, 2025
8ce70e5
Adapt BSD test for rename
Meinersbur Feb 6, 2025
fb7bc11
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 6, 2025
f258e0e
Use C++ header guards III
Meinersbur Feb 6, 2025
d222eee
Merge commit '02fa340711d9b990b50a0daf65eb850404884137' into users/me…
Meinersbur Feb 6, 2025
06a81de
Merge branch 'users/meinersbur/flang_runtime_Testing' into users/mein…
Meinersbur Feb 6, 2025
0edd103
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 6, 2025
f9a1569
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 6, 2025
6708dc3
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 6, 2025
2f30a9a
Merge commit '8fb1b3f4b23ecc2fc39f1a1c07244304565cfb21' into users/me…
Meinersbur Feb 7, 2025
ed4c3a6
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 7, 2025
3a996b3
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 7, 2025
7eef009
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 7, 2025
9262520
Merge commit '98e118ca435d280ff1c3540eb5e9b4140b44a1b4' into users/me…
Meinersbur Feb 7, 2025
d4909ad
Merge branch 'users/meinersbur/flang_runtime_FortranDecimal' into use…
Meinersbur Feb 7, 2025
51f424e
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 7, 2025
ddb8425
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 7, 2025
8b7be99
Merge branch 'main' (early part) into users/meinersbur/flang_runtime_…
Meinersbur Feb 8, 2025
9c5e121
Merge branch 'main' into users/meinersbur/flang_runtime_FLANG_INCLUDE…
Meinersbur Feb 8, 2025
6f2d9c9
Merge branch 'users/meinersbur/flang_runtime_FLANG_INCLUDE_RUNTIME' i…
Meinersbur Feb 8, 2025
d512ee0
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 8, 2025
6b46210
Specifically refer to flang_rt.runtime in comments
Meinersbur Feb 8, 2025
17d7e90
Merge commit '5c8c2b3db54395073e3183f89167156df29dff61' into users/me…
Meinersbur Feb 8, 2025
abe3d27
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 8, 2025
c7e786e
Merge branch 'main' (early part) into users/meinersbur/flang_runtime_…
Meinersbur Feb 8, 2025
61ae434
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 8, 2025
d3cc786
Merge commit '5c8c2b3db54395073e3183f89167156df29dff61' into users/me…
Meinersbur Feb 8, 2025
74e7836
Merge branch 'users/meinersbur/flang_runtime_flang_rt' into users/mei…
Meinersbur Feb 8, 2025
8b91f2f
Undo move of CUDA/allocator.h
Meinersbur Feb 10, 2025
9a88083
Merge commit 'c6654806949f0498fdd2d009b66e62041c21de36' into users/me…
Meinersbur Feb 13, 2025
b12d925
Merge commit '660cdace559a8dbe44ebf2222b854bf3f39a5f62' into users/me…
Meinersbur Feb 13, 2025
2f21466
Post-merge fixes
Meinersbur Feb 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions flang-rt/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
AlignAfterOpenBracket: DontAlign
AlignEscapedNewlines: DontAlign
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignOperands: false
AlignTrailingComments: false
IncludeCategories:
- Regex: '^<'
Priority: 6
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 5
- Regex: '^"flang/' # Headers shared with Flang
Priority: 4
- Regex: '^"flang-rt/' # Public Flang-RT headers
Priority: 3
- Regex: '^[^/]*$' # Private headers from same library
Priority: 1
- Regex: '.*' # Private headers from sibling libraries
Priority: 2
...

# vim:set filetype=yaml:
19 changes: 19 additions & 0 deletions flang-rt/cmake/config.h.cmake.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*===-- cmake/config.cmake.in ---------------------------------------*- C -*-===
*
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
* See https://llvm.org/LICENSE.txt for license information.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*
*===----------------------------------------------------------------------===*/

#ifndef FORTRAN_RUNTIME_CONFIG_H
#define FORTRAN_RUNTIME_CONFIG_H

/* Define to 1 if you have the `strerror_r' function. */
#cmakedefine01 HAVE_STRERROR_R

/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you
don't. */
#cmakedefine01 HAVE_DECL_STRERROR_S

#endif
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
//===-- examples/ExternalHelloWorld/external-hello.cpp ----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "flang/Runtime/io-api.h"
#include "flang/Runtime/main.h"
#include "flang/Runtime/stop.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- runtime/allocator-registry.h ----------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/allocator-registry.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.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_
#define FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_
#ifndef FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_
#define FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_

#include "flang/Common/api-attrs.h"
#include "flang/Runtime/allocator-registry-consts.h"
Expand Down Expand Up @@ -55,4 +55,4 @@ RT_OFFLOAD_VAR_GROUP_END

} // namespace Fortran::runtime

#endif // FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_
#endif // FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- include/flang/Runtime/array-constructor.h ---------------*- C++ -*-===//
//===-- include/flang-rt/runtime/array-constructor.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.
Expand All @@ -9,11 +9,11 @@
// External APIs to create temporary storage for array constructors when their
// final extents or length parameters cannot be pre-computed.

#ifndef FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
#define FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
#ifndef FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_
#define FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_

#include "descriptor.h"
#include "flang/Runtime/array-constructor-consts.h"
#include "flang/Runtime/descriptor.h"
#include "flang/Runtime/entry-names.h"
#include <cstdint>

Expand Down Expand Up @@ -54,4 +54,4 @@ static_assert(alignof(Fortran::runtime::ArrayConstructorVector) <=
"MaxArrayConstructorVectorAlignInBytes");

} // namespace Fortran::runtime
#endif // FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
#endif // FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- runtime/assign-impl.h -----------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/assign-impl.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.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef FORTRAN_RUNTIME_ASSIGN_IMPL_H_
#define FORTRAN_RUNTIME_ASSIGN_IMPL_H_
#ifndef FLANG_RT_RUNTIME_ASSIGN_IMPL_H_
#define FLANG_RT_RUNTIME_ASSIGN_IMPL_H_

#include "flang/Runtime/freestanding-tools.h"

Expand All @@ -28,4 +28,4 @@ RT_API_ATTRS void DoFromSourceAssign(Descriptor &, const Descriptor &,
#endif

} // namespace Fortran::runtime
#endif // FORTRAN_RUNTIME_ASSIGN_IMPL_H_
#endif // FLANG_RT_RUNTIME_ASSIGN_IMPL_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/buffer.h ----------------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/buffer.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.
Expand All @@ -8,12 +8,12 @@

// External file buffering

#ifndef FORTRAN_RUNTIME_BUFFER_H_
#define FORTRAN_RUNTIME_BUFFER_H_
#ifndef FLANG_RT_RUNTIME_BUFFER_H_
#define FLANG_RT_RUNTIME_BUFFER_H_

#include "io-error.h"
#include "memory.h"
#include "flang/Runtime/freestanding-tools.h"
#include "flang/Runtime/memory.h"
#include <algorithm>
#include <cinttypes>
#include <cstring>
Expand Down Expand Up @@ -221,4 +221,4 @@ template <typename STORE, std::size_t minBuffer = 65536> class FileFrame {
bool dirty_{false};
};
} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_BUFFER_H_
#endif // FLANG_RT_RUNTIME_BUFFER_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/connection.h ------------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/connection.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.
Expand All @@ -8,8 +8,8 @@

// Fortran I/O connection state (abstracted over internal & external units)

#ifndef FORTRAN_RUNTIME_IO_CONNECTION_H_
#define FORTRAN_RUNTIME_IO_CONNECTION_H_
#ifndef FLANG_RT_RUNTIME_CONNECTION_H_
#define FLANG_RT_RUNTIME_CONNECTION_H_

#include "format.h"
#include "flang/Common/optional.h"
Expand Down Expand Up @@ -124,4 +124,4 @@ class SavedPosition {
};

} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_IO_CONNECTION_H_
#endif // FLANG_RT_RUNTIME_CONNECTION_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/derived.h -------------------------------------------------===//
//===-- include/flang-rt/runtime/derived.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.
Expand All @@ -8,8 +8,8 @@

// Internal runtime utilities for derived type operations.

#ifndef FORTRAN_RUNTIME_DERIVED_H_
#define FORTRAN_RUNTIME_DERIVED_H_
#ifndef FLANG_RT_RUNTIME_DERIVED_H_
#define FLANG_RT_RUNTIME_DERIVED_H_

#include "flang/Common/api-attrs.h"

Expand Down Expand Up @@ -48,4 +48,4 @@ RT_API_ATTRS void Destroy(const Descriptor &, bool finalize,
RT_API_ATTRS bool HasDynamicComponent(const Descriptor &);

} // namespace Fortran::runtime
#endif // FORTRAN_RUNTIME_DERIVED_H_
#endif // FLANG_RT_RUNTIME_DERIVED_H_
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- include/flang/Runtime/descriptor.h ----------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/descriptor.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.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef FORTRAN_RUNTIME_DESCRIPTOR_H_
#define FORTRAN_RUNTIME_DESCRIPTOR_H_
#ifndef FLANG_RT_RUNTIME_DESCRIPTOR_H_
#define FLANG_RT_RUNTIME_DESCRIPTOR_H_

// Defines data structures used during execution of a Fortran program
// to implement nontrivial dummy arguments, pointers, allocatables,
Expand All @@ -18,10 +18,10 @@
// User C code is welcome to depend on that ISO_Fortran_binding.h file,
// but should never reference this internal header.

#include "memory.h"
#include "type-code.h"
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
#include "flang/Runtime/descriptor-consts.h"
#include "flang/Runtime/memory.h"
#include "flang/Runtime/type-code.h"
#include <algorithm>
#include <cassert>
#include <cinttypes>
Expand Down Expand Up @@ -482,4 +482,4 @@ class alignas(Descriptor) StaticDescriptor {
};

} // namespace Fortran::runtime
#endif // FORTRAN_RUNTIME_DESCRIPTOR_H_
#endif // FLANG_RT_RUNTIME_DESCRIPTOR_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/emit-encoded.h ----------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/emit-encoded.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.
Expand All @@ -8,8 +8,8 @@

// Templates for emitting CHARACTER values with conversion

#ifndef FORTRAN_RUNTIME_EMIT_ENCODED_H_
#define FORTRAN_RUNTIME_EMIT_ENCODED_H_
#ifndef FLANG_RT_RUNTIME_EMIT_ENCODED_H_
#define FLANG_RT_RUNTIME_EMIT_ENCODED_H_

#include "connection.h"
#include "environment.h"
Expand Down Expand Up @@ -114,4 +114,4 @@ RT_API_ATTRS bool EmitRepeated(CONTEXT &to, char ch, std::size_t n) {
}

} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_EMIT_ENCODED_H_
#endif // FLANG_RT_RUNTIME_EMIT_ENCODED_H_
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- runtime/environment.h -----------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/environment.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.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef FORTRAN_RUNTIME_ENVIRONMENT_H_
#define FORTRAN_RUNTIME_ENVIRONMENT_H_
#ifndef FLANG_RT_RUNTIME_ENVIRONMENT_H_
#define FLANG_RT_RUNTIME_ENVIRONMENT_H_

#include "flang/Common/optional.h"
#include "flang/Decimal/decimal.h"
Expand Down Expand Up @@ -67,4 +67,4 @@ RT_OFFLOAD_VAR_GROUP_END

} // namespace Fortran::runtime

#endif // FORTRAN_RUNTIME_ENVIRONMENT_H_
#endif // FLANG_RT_RUNTIME_ENVIRONMENT_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/file.h ------------------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/file.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.
Expand All @@ -8,12 +8,12 @@

// Raw system I/O wrappers

#ifndef FORTRAN_RUNTIME_FILE_H_
#define FORTRAN_RUNTIME_FILE_H_
#ifndef FLANG_RT_RUNTIME_FILE_H_
#define FLANG_RT_RUNTIME_FILE_H_

#include "io-error.h"
#include "memory.h"
#include "flang/Common/optional.h"
#include "flang/Runtime/memory.h"
#include <cinttypes>

namespace Fortran::runtime::io {
Expand Down Expand Up @@ -113,4 +113,4 @@ RT_API_ATTRS bool MayWrite(const char *path);
RT_API_ATTRS bool MayReadAndWrite(const char *path);
RT_API_ATTRS std::int64_t SizeInBytes(const char *path);
} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_FILE_H_
#endif // FLANG_RT_RUNTIME_FILE_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/format-implementation.h -------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/format-implementation.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.
Expand All @@ -8,8 +8,8 @@

// Implements out-of-line member functions of template class FormatControl

#ifndef FORTRAN_RUNTIME_FORMAT_IMPLEMENTATION_H_
#define FORTRAN_RUNTIME_FORMAT_IMPLEMENTATION_H_
#ifndef FLANG_RT_RUNTIME_FORMAT_IMPLEMENTATION_H_
#define FLANG_RT_RUNTIME_FORMAT_IMPLEMENTATION_H_

#include "emit-encoded.h"
#include "format.h"
Expand Down Expand Up @@ -601,4 +601,4 @@ RT_API_ATTRS void FormatControl<CONTEXT>::Finish(Context &context) {
}
}
} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_FORMAT_IMPLEMENTATION_H_
#endif // FLANG_RT_RUNTIME_FORMAT_IMPLEMENTATION_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/format.h ----------------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/format.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.
Expand All @@ -8,8 +8,8 @@

// FORMAT string processing

#ifndef FORTRAN_RUNTIME_FORMAT_H_
#define FORTRAN_RUNTIME_FORMAT_H_
#ifndef FLANG_RT_RUNTIME_FORMAT_H_
#define FLANG_RT_RUNTIME_FORMAT_H_

#include "environment.h"
#include "io-error.h"
Expand Down Expand Up @@ -201,4 +201,4 @@ template <typename CONTEXT> class FormatControl {
Iteration stack_[maxMaxHeight];
};
} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_FORMAT_H_
#endif // FLANG_RT_RUNTIME_FORMAT_H_
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- runtime/internal-unit.h ---------------------------------*- C++ -*-===//
//===-- include/flang-rt/runtime/internal-unit.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.
Expand All @@ -8,11 +8,11 @@

// Fortran internal I/O "units"

#ifndef FORTRAN_RUNTIME_IO_INTERNAL_UNIT_H_
#define FORTRAN_RUNTIME_IO_INTERNAL_UNIT_H_
#ifndef FLANG_RT_RUNTIME_INTERNAL_UNIT_H_
#define FLANG_RT_RUNTIME_INTERNAL_UNIT_H_

#include "connection.h"
#include "flang/Runtime/descriptor.h"
#include "descriptor.h"
#include <cinttypes>
#include <type_traits>

Expand Down Expand Up @@ -56,4 +56,4 @@ template <Direction DIR> class InternalDescriptorUnit : public ConnectionState {
extern template class InternalDescriptorUnit<Direction::Output>;
extern template class InternalDescriptorUnit<Direction::Input>;
} // namespace Fortran::runtime::io
#endif // FORTRAN_RUNTIME_IO_INTERNAL_UNIT_H_
#endif // FLANG_RT_RUNTIME_INTERNAL_UNIT_H_
Loading
Loading