Skip to content

Commit 8e8b338

Browse files
committed
Rename to flang_rt.runtime, flang_rt.quadmath, flang_rt.cuda
1 parent d2f17f8 commit 8e8b338

File tree

203 files changed

+651
-643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+651
-643
lines changed

flang/examples/ExternalHelloWorld/external-hello.cpp renamed to flang-rt/examples/ExternalHelloWorld/external-hello.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
//===-- examples/ExternalHelloWorld/external-hello.cpp ----------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
19
#include "flang/Runtime/io-api.h"
210
#include "flang/Runtime/main.h"
311
#include "flang/Runtime/stop.h"

flang-rt/include/flang-rt/CUDA/allocator.h renamed to flang-rt/include/flang-rt/cuda/allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/CUDA/allocator.h -----------------------*- C++ -*-===//
1+
//===-- include/flang-rt/cuda/allocator.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-rt/include/flang-rt/allocator-registry.h renamed to flang-rt/include/flang-rt/runtime/allocator-registry.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===-- include/flang-rt/allocator-registry.h -------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/allocator-registry.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.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef FLANG_RT_ALLOCATOR_REGISTRY_H_
10-
#define FLANG_RT_ALLOCATOR_REGISTRY_H_
9+
#ifndef FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_
10+
#define FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_
1111

1212
#include "flang/Common/api-attrs.h"
1313
#include "flang/Runtime/allocator-registry-consts.h"
@@ -55,4 +55,4 @@ RT_OFFLOAD_VAR_GROUP_END
5555

5656
} // namespace Fortran::runtime
5757

58-
#endif // FLANG_RT_ALLOCATOR_REGISTRY_H_
58+
#endif // FLANG_RT_RUNTIME_ALLOCATOR_REGISTRY_H_

flang-rt/include/flang-rt/array-constructor.h renamed to flang-rt/include/flang-rt/runtime/array-constructor.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/array-constructor.h --------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/array-constructor.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.
@@ -9,8 +9,8 @@
99
// External APIs to create temporary storage for array constructors when their
1010
// final extents or length parameters cannot be pre-computed.
1111

12-
#ifndef FLANG_RT_ARRAY_CONSTRUCTOR_H_
13-
#define FLANG_RT_ARRAY_CONSTRUCTOR_H_
12+
#ifndef FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_
13+
#define FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_
1414

1515
#include "descriptor.h"
1616
#include "flang/Runtime/array-constructor-consts.h"
@@ -54,4 +54,4 @@ static_assert(alignof(Fortran::runtime::ArrayConstructorVector) <=
5454
"MaxArrayConstructorVectorAlignInBytes");
5555

5656
} // namespace Fortran::runtime
57-
#endif // FLANG_RT_ARRAY_CONSTRUCTOR_H_
57+
#endif // FLANG_RT_RUNTIME_ARRAY_CONSTRUCTOR_H_

flang-rt/include/flang-rt/assign-impl.h renamed to flang-rt/include/flang-rt/runtime/assign-impl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===-- include/flang-rt/assign-impl.h --------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/assign-impl.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.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef FLANG_RT_ASSIGN_IMPL_H_
10-
#define FLANG_RT_ASSIGN_IMPL_H_
9+
#ifndef FLANG_RT_RUNTIME_ASSIGN_IMPL_H_
10+
#define FLANG_RT_RUNTIME_ASSIGN_IMPL_H_
1111

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

@@ -28,4 +28,4 @@ RT_API_ATTRS void DoFromSourceAssign(Descriptor &, const Descriptor &,
2828
#endif
2929

3030
} // namespace Fortran::runtime
31-
#endif // FLANG_RT_ASSIGN_IMPL_H_
31+
#endif // FLANG_RT_RUNTIME_ASSIGN_IMPL_H_

flang-rt/include/flang-rt/buffer.h renamed to flang-rt/include/flang-rt/runtime/buffer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/buffer.h -------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/buffer.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.
@@ -8,8 +8,8 @@
88

99
// External file buffering
1010

11-
#ifndef FLANG_RT_BUFFER_H_
12-
#define FLANG_RT_BUFFER_H_
11+
#ifndef FLANG_RT_RUNTIME_BUFFER_H_
12+
#define FLANG_RT_RUNTIME_BUFFER_H_
1313

1414
#include "io-error.h"
1515
#include "memory.h"
@@ -221,4 +221,4 @@ template <typename STORE, std::size_t minBuffer = 65536> class FileFrame {
221221
bool dirty_{false};
222222
};
223223
} // namespace Fortran::runtime::io
224-
#endif // FLANG_RT_BUFFER_H_
224+
#endif // FLANG_RT_RUNTIME_BUFFER_H_

flang-rt/include/flang-rt/connection.h renamed to flang-rt/include/flang-rt/runtime/connection.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/connection.h ---------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/connection.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.
@@ -8,8 +8,8 @@
88

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

11-
#ifndef FLANG_RT_CONNECTION_H_
12-
#define FLANG_RT_CONNECTION_H_
11+
#ifndef FLANG_RT_RUNTIME_CONNECTION_H_
12+
#define FLANG_RT_RUNTIME_CONNECTION_H_
1313

1414
#include "format.h"
1515
#include "flang/Common/optional.h"
@@ -124,4 +124,4 @@ class SavedPosition {
124124
};
125125

126126
} // namespace Fortran::runtime::io
127-
#endif // FLANG_RT_CONNECTION_H_
127+
#endif // FLANG_RT_RUNTIME_CONNECTION_H_

flang-rt/include/flang-rt/derived.h renamed to flang-rt/include/flang-rt/runtime/derived.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/derived.h ------------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/derived.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.
@@ -8,8 +8,8 @@
88

99
// Internal runtime utilities for derived type operations.
1010

11-
#ifndef FLANG_RT_DERIVED_H_
12-
#define FLANG_RT_DERIVED_H_
11+
#ifndef FLANG_RT_RUNTIME_DERIVED_H_
12+
#define FLANG_RT_RUNTIME_DERIVED_H_
1313

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

@@ -48,4 +48,4 @@ RT_API_ATTRS void Destroy(const Descriptor &, bool finalize,
4848
RT_API_ATTRS bool HasDynamicComponent(const Descriptor &);
4949

5050
} // namespace Fortran::runtime
51-
#endif // FLANG_RT_DERIVED_H_
51+
#endif // FLANG_RT_RUNTIME_DERIVED_H_

flang-rt/include/flang-rt/descriptor.h renamed to flang-rt/include/flang-rt/runtime/descriptor.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===-- include/flang-rt/descriptor.h ---------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/descriptor.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.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88

9-
#ifndef FLANG_RT_DESCRIPTOR_H_
10-
#define FLANG_RT_DESCRIPTOR_H_
9+
#ifndef FLANG_RT_RUNTIME_DESCRIPTOR_H_
10+
#define FLANG_RT_RUNTIME_DESCRIPTOR_H_
1111

1212
// Defines data structures used during execution of a Fortran program
1313
// to implement nontrivial dummy arguments, pointers, allocatables,
@@ -482,4 +482,4 @@ class alignas(Descriptor) StaticDescriptor {
482482
};
483483

484484
} // namespace Fortran::runtime
485-
#endif // FLANG_RT_DESCRIPTOR_H_
485+
#endif // FLANG_RT_RUNTIME_DESCRIPTOR_H_

flang-rt/include/flang-rt/emit-encoded.h renamed to flang-rt/include/flang-rt/runtime/emit-encoded.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang-rt/emit-encoded.h -------------------------*- C++ -*-===//
1+
//===-- include/flang-rt/runtime/emit-encoded.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.
@@ -8,8 +8,8 @@
88

99
// Templates for emitting CHARACTER values with conversion
1010

11-
#ifndef FLANG_RT_EMIT_ENCODED_H_
12-
#define FLANG_RT_EMIT_ENCODED_H_
11+
#ifndef FLANG_RT_RUNTIME_EMIT_ENCODED_H_
12+
#define FLANG_RT_RUNTIME_EMIT_ENCODED_H_
1313

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

116116
} // namespace Fortran::runtime::io
117-
#endif // FLANG_RT_EMIT_ENCODED_H_
117+
#endif // FLANG_RT_RUNTIME_EMIT_ENCODED_H_

0 commit comments

Comments
 (0)