Skip to content

Commit 2216bfe

Browse files
committed
Move files to FortranRuntime
1 parent 98c71d8 commit 2216bfe

File tree

419 files changed

+873
-777
lines changed

Some content is hidden

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

419 files changed

+873
-777
lines changed

FortranRuntime/.clang-format

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html
3+
BasedOnStyle: LLVM
4+
AlignAfterOpenBracket: DontAlign
5+
AlignEscapedNewlines: DontAlign
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignOperands: false
9+
AlignTrailingComments: false
10+
IncludeCategories:
11+
- Regex: '^<'
12+
Priority: 4
13+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
14+
Priority: 3
15+
- Regex: '^"(flang|\.\.)/'
16+
Priority: 2
17+
- Regex: '.*'
18+
Priority: 1
19+
...
20+
21+
# vim:set filetype=yaml:
File renamed without changes.

flang/include/flang/ISO_Fortran_binding.h renamed to FortranRuntime/include/flang/Common/ISO_Fortran_binding.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
/*===-- include/flang/ISO_Fortran_binding.h -----------------------*- C++ -*-===
1+
/*===-- include/flang/Common/ISO_Fortran_binding.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
*
7-
* ===-----------------------------------------------------------------------===
8-
*/
7+
*===----------------------------------------------------------------------===*/
98

10-
#ifndef CFI_ISO_FORTRAN_BINDING_H_
11-
#define CFI_ISO_FORTRAN_BINDING_H_
9+
#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_H_
10+
#define FORTRAN_COMMON_ISO_FORTRAN_BINDING_H_
1211

1312
/* When this header is included into the compiler and runtime implementations,
1413
* it does so by means of a wrapper header that establishes namespaces and
1514
* a macro for extra function attributes (RT_API_ATTRS).
1615
*/
17-
#ifndef FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
16+
#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
1817
#include <stddef.h>
1918
#define FORTRAN_ISO_NAMESPACE_
2019
#endif
@@ -207,4 +206,4 @@ RT_API_ATTRS int CFI_setpointer(
207206
} // extern "C"
208207
#endif
209208

210-
#endif /* CFI_ISO_FORTRAN_BINDING_H_ */
209+
#endif /* FORTRAN_COMMON_ISO_FORTRAN_BINDING_H_ */

flang/include/flang/ISO_Fortran_binding_wrapper.h renamed to FortranRuntime/include/flang/Common/ISO_Fortran_binding_wrapper.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
/*===-- include/flang/ISO_Fortran_binding_wrapper.h ---------------*- C++ -*-===
1+
/*===-- include/flang/Common/ISO_Fortran_binding_wrapper.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
*
7-
* ===-----------------------------------------------------------------------===
8-
*/
7+
*===----------------------------------------------------------------------===*/
98

10-
#ifndef FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
11-
#define FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_
9+
#ifndef FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
10+
#define FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_
1211

1312
/* A thin wrapper around flang/include/ISO_Fortran_binding.h
1413
* This header file must be included when ISO_Fortran_binding.h
@@ -23,7 +22,7 @@
2322

2423
/* clang-format off */
2524
#include <stddef.h>
26-
#include "Common/api-attrs.h"
25+
#include "flang/Common/api-attrs.h"
2726
#ifdef __cplusplus
2827
namespace Fortran {
2928
namespace ISO {
@@ -36,4 +35,4 @@ namespace ISO {
3635
#endif /* __cplusplus */
3736
/* clang-format on */
3837

39-
#endif /* FORTRAN_ISO_FORTRAN_BINDING_WRAPPER_H_ */
38+
#endif /* FORTRAN_COMMON_ISO_FORTRAN_BINDING_WRAPPER_H_ */

flang/include/flang/Common/api-attrs.h renamed to FortranRuntime/include/flang/Common/api-attrs.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
/*===-- include/flang/Common/api-attrs.h ---------------------------*- C -*-=//
1+
/*===-- include/flang/Common/api-attrs.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
*
7-
*===------------------------------------------------------------------------===
8-
*/
7+
*===----------------------------------------------------------------------===*/
98

109
/*
1110
* The file defines a set macros that can be used to apply
1211
* different attributes/pragmas to functions/variables
1312
* declared/defined/used in Flang runtime library.
1413
*/
1514

16-
#ifndef FORTRAN_RUNTIME_API_ATTRS_H_
17-
#define FORTRAN_RUNTIME_API_ATTRS_H_
15+
#ifndef FORTRAN_COMMON_API_ATTRS_H_
16+
#define FORTRAN_COMMON_API_ATTRS_H_
1817

1918
/*
2019
* RT_EXT_API_GROUP_BEGIN/END pair is placed around definitions
@@ -178,4 +177,4 @@
178177
#define RT_DEVICE_NOINLINE_HOST_INLINE inline
179178
#endif
180179

181-
#endif /* !FORTRAN_RUNTIME_API_ATTRS_H_ */
180+
#endif /* FORTRAN_COMMON_API_ATTRS_H_ */

flang/include/flang/Decimal/binary-floating-point.h renamed to FortranRuntime/include/flang/Common/binary-floating-point.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===-- include/flang/Decimal/binary-floating-point.h -----------*- C++ -*-===//
1+
//===-- include/flang/Common/binary-floating-point.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 FORTRAN_DECIMAL_BINARY_FLOATING_POINT_H_
10-
#define FORTRAN_DECIMAL_BINARY_FLOATING_POINT_H_
9+
#ifndef FORTRAN_COMMON_BINARY_FLOATING_POINT_H_
10+
#define FORTRAN_COMMON_BINARY_FLOATING_POINT_H_
1111

1212
// Access and manipulate the fields of an IEEE-754 binary
1313
// floating-point value via a generalized template.
@@ -208,4 +208,4 @@ template <int BINARY_PRECISION> class BinaryFloatingPointNumber {
208208
RawType raw_{0};
209209
};
210210
} // namespace Fortran::decimal
211-
#endif
211+
#endif /* FORTRAN_COMMON_BINARY_FLOATING_POINT_H_ */

flang/include/flang/Common/bit-population-count.h renamed to FortranRuntime/include/flang/Common/bit-population-count.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ template <typename INT> inline constexpr int TrailingZeroBitCount(INT x) {
9393
}
9494
}
9595
} // namespace Fortran::common
96-
#endif // FORTRAN_COMMON_BIT_POPULATION_COUNT_H_
96+
#endif /* FORTRAN_COMMON_BIT_POPULATION_COUNT_H_ */

flang/include/flang/Common/constexpr-bitset.h renamed to FortranRuntime/include/flang/Common/constexpr-bitset.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ template <int BITS> class BitSet {
144144
Word bits_{0};
145145
};
146146
} // namespace Fortran::common
147-
#endif // FORTRAN_COMMON_CONSTEXPR_BITSET_H_
147+
#endif /* FORTRAN_COMMON_CONSTEXPR_BITSET_H_ */

flang/include/flang/Decimal/decimal.h renamed to FortranRuntime/include/flang/Common/decimal.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
/*===-- include/flang/Decimal/decimal.h ---------------------------*- C++ -*-===
1+
/*===-- include/flang/Common/decimal.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
*
7-
* ===-----------------------------------------------------------------------===
8-
*/
7+
*===----------------------------------------------------------------------===*/
98

109
/* C and C++ API for binary-to/from-decimal conversion package. */
1110

12-
#ifndef FORTRAN_DECIMAL_DECIMAL_H_
13-
#define FORTRAN_DECIMAL_DECIMAL_H_
11+
#ifndef FORTRAN_COMMON_DECIMAL_H_
12+
#define FORTRAN_COMMON_DECIMAL_H_
1413

1514
#include "flang/Common/api-attrs.h"
1615
#include <stddef.h>
@@ -137,4 +136,4 @@ RT_API_ATTRS enum NS(ConversionResultFlags) ConvertDecimalToLongDouble(
137136
#ifdef __cplusplus
138137
} // extern "C"
139138
#endif
140-
#endif
139+
#endif /* FORTRAN_COMMON_DECIMAL_H_ */

flang/include/flang/Common/enum-class.h renamed to FortranRuntime/include/flang/Common/enum-class.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ constexpr std::array<std::string_view, ITEMS> EnumNames(const char *p) {
6969
}
7070

7171
} // namespace Fortran::common
72-
#endif // FORTRAN_COMMON_ENUM_CLASS_H_
72+
#endif /* FORTRAN_COMMON_ENUM_CLASS_H_ */

flang/include/flang/Common/enum-set.h renamed to FortranRuntime/include/flang/Common/enum-set.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,4 +228,4 @@ struct std::hash<Fortran::common::EnumSet<ENUM, values>> {
228228
return std::hash(x.bitset());
229229
}
230230
};
231-
#endif // FORTRAN_COMMON_ENUM_SET_H_
231+
#endif /* FORTRAN_COMMON_ENUM_SET_H_ */

flang/include/flang/Common/fast-int-set.h renamed to FortranRuntime/include/flang/Common/fast-int-set.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- include/flang/Common/fast-int-set.h --------------------*- C++ -*-===//
1+
//===-- include/flang/Common/fast-int-set.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.
@@ -103,4 +103,4 @@ template <int N> class FastIntSet {
103103
bool isFullyInitialized_{false}; // memory was cleared
104104
};
105105
} // namespace Fortran::common
106-
#endif // FORTRAN_COMMON_FAST_INT_SET_H_
106+
#endif /* FORTRAN_COMMON_FAST_INT_SET_H_ */

flang/include/flang/Common/float128.h renamed to FortranRuntime/include/flang/Common/float128.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*===-- flang/Common/float128.h ----------------------------------*- C -*-===
1+
/*===-- include/flang/Common/float128.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/Common/format.h renamed to FortranRuntime/include/flang/Common/format.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,4 +901,4 @@ template <typename CHAR> bool FormatValidator<CHAR>::Check() {
901901
}
902902

903903
} // namespace Fortran::common
904-
#endif // FORTRAN_COMMON_FORMAT_H_
904+
#endif /* FORTRAN_COMMON_FORMAT_H_ */

flang/include/flang/Common/idioms.h renamed to FortranRuntime/include/flang/Common/idioms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,4 +150,4 @@ template <typename A, typename... B>
150150
using IfNoLvalue = std::enable_if_t<(... && !std::is_lvalue_reference_v<B>), A>;
151151
template <typename... RVREF> using NoLvalue = IfNoLvalue<void, RVREF...>;
152152
} // namespace Fortran::common
153-
#endif // FORTRAN_COMMON_IDIOMS_H_
153+
#endif /* FORTRAN_COMMON_IDIOMS_H_ */

flang/include/flang/Common/leading-zero-bit-count.h renamed to FortranRuntime/include/flang/Common/leading-zero-bit-count.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ template <typename A> inline constexpr int BitsNeededFor(A x) {
9393
return 8 * sizeof x - LeadingZeroBitCount(x);
9494
}
9595
} // namespace Fortran::common
96-
#endif // FORTRAN_COMMON_LEADING_ZERO_BIT_COUNT_H_
96+
#endif /* FORTRAN_COMMON_LEADING_ZERO_BIT_COUNT_H_ */

flang/include/flang/Common/optional.h renamed to FortranRuntime/include/flang/Common/optional.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
// * cuda:: namespace need to be forced for all std:: references.
2424
//
2525
//===----------------------------------------------------------------------===//
26-
#ifndef FORTRAN_COMMON_OPTIONAL_H
27-
#define FORTRAN_COMMON_OPTIONAL_H
26+
#ifndef FORTRAN_COMMON_OPTIONAL_H_
27+
#define FORTRAN_COMMON_OPTIONAL_H_
2828

2929
#include "flang/Common/api-attrs.h"
3030
#include <optional>
@@ -240,4 +240,4 @@ using std::optional;
240240

241241
} // namespace Fortran::common
242242

243-
#endif // FORTRAN_COMMON_OPTIONAL_H
243+
#endif /* FORTRAN_COMMON_OPTIONAL_H_ */

flang/include/flang/Common/real.h renamed to FortranRuntime/include/flang/Common/real.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ class RealCharacteristics {
141141
};
142142

143143
} // namespace Fortran::common
144-
#endif // FORTRAN_COMMON_REAL_H_
144+
#endif /* FORTRAN_COMMON_REAL_H_ */

flang/include/flang/Common/reference-wrapper.h renamed to FortranRuntime/include/flang/Common/reference-wrapper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
//
2323
// clang-format on
2424

25-
#ifndef FORTRAN_COMMON_REFERENCE_WRAPPER_H
26-
#define FORTRAN_COMMON_REFERENCE_WRAPPER_H
25+
#ifndef FORTRAN_COMMON_REFERENCE_WRAPPER_H_
26+
#define FORTRAN_COMMON_REFERENCE_WRAPPER_H_
2727

2828
#include "flang/Common/api-attrs.h"
2929
#include <functional>
@@ -111,4 +111,4 @@ using std::reference_wrapper;
111111

112112
} // namespace Fortran::common
113113

114-
#endif // FORTRAN_COMMON_REFERENCE_WRAPPER_H
114+
#endif /* FORTRAN_COMMON_REFERENCE_WRAPPER_H_ */

flang/include/flang/Common/restorer.h renamed to FortranRuntime/include/flang/Common/restorer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
#ifndef FORTRAN_COMMON_RESTORER_H_
2020
#define FORTRAN_COMMON_RESTORER_H_
21-
#include "idioms.h"
2221
#include "flang/Common/api-attrs.h"
22+
#include "idioms.h"
2323
namespace Fortran::common {
2424
template <typename A> class Restorer {
2525
public:
@@ -53,4 +53,4 @@ RT_API_ATTRS common::IfNoLvalue<Restorer<A>, B> ScopedSet(
5353
return Restorer<A>{to, std::move(original)};
5454
}
5555
} // namespace Fortran::common
56-
#endif // FORTRAN_COMMON_RESTORER_H_
56+
#endif /* FORTRAN_COMMON_RESTORER_H_ */

flang/include/flang/Common/uint128.h renamed to FortranRuntime/include/flang/Common/uint128.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#define AVOID_NATIVE_UINT128_T 0
2020
#endif
2121

22-
#include "leading-zero-bit-count.h"
2322
#include "flang/Common/api-attrs.h"
23+
#include "leading-zero-bit-count.h"
2424
#include <cstdint>
2525
#include <type_traits>
2626

@@ -303,4 +303,4 @@ template <int BITS>
303303
using HostSignedIntType = typename HostSignedIntTypeHelper<BITS>::type;
304304

305305
} // namespace Fortran::common
306-
#endif
306+
#endif /* FORTRAN_COMMON_UINT128_H_ */

flang/include/flang/Common/variant.h renamed to FortranRuntime/include/flang/Common/variant.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
// and the related names become available, though, they may correspond
1212
// to alternative definitions (e.g. from cuda::std namespace).
1313

14-
#ifndef FORTRAN_COMMON_VARIANT_H
15-
#define FORTRAN_COMMON_VARIANT_H
14+
#ifndef FORTRAN_COMMON_VARIANT_H_
15+
#define FORTRAN_COMMON_VARIANT_H_
1616

1717
#if RT_USE_LIBCUDACXX
1818
#include <cuda/std/variant>
@@ -27,4 +27,4 @@ using cuda::std::visit;
2727
#include <variant>
2828
#endif // !RT_USE_LIBCUDACXX
2929

30-
#endif // FORTRAN_COMMON_VARIANT_H
30+
#endif /* FORTRAN_COMMON_VARIANT_H_ */

flang/include/flang/Common/visit.h renamed to FortranRuntime/include/flang/Common/visit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#ifndef FORTRAN_COMMON_VISIT_H_
2222
#define FORTRAN_COMMON_VISIT_H_
2323

24-
#include "variant.h"
2524
#include "flang/Common/api-attrs.h"
25+
#include "variant.h"
2626
#include <type_traits>
2727

2828
namespace Fortran::common {
@@ -100,4 +100,4 @@ using Fortran::common::log2visit::visit;
100100
#endif
101101

102102
} // namespace Fortran::common
103-
#endif // FORTRAN_COMMON_VISIT_H_
103+
#endif /* FORTRAN_COMMON_VISIT_H_ */

flang/include/flang/Common/windows-include.h renamed to FortranRuntime/include/flang/Common/windows-include.h

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

2323
#endif // _WIN32
2424

25-
#endif // FORTRAN_COMMON_WINDOWS_INCLUDE_H_
25+
#endif /* FORTRAN_COMMON_WINDOWS_INCLUDE_H_ */

flang/include/flang/Runtime/CUDA/allocator.h renamed to FortranRuntime/include/flang/Runtime/CUDA/allocator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ void *CUFAllocUnified(std::size_t);
4343
void CUFFreeUnified(void *);
4444

4545
} // namespace Fortran::runtime::cuda
46-
#endif // FORTRAN_RUNTIME_CUDA_ALLOCATOR_H_
46+
#endif /* FORTRAN_RUNTIME_CUDA_ALLOCATOR_H_ */

flang/include/flang/Runtime/CUDA/descriptor.h renamed to FortranRuntime/include/flang/Runtime/CUDA/descriptor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ void RTDECL(CUFFreeDesciptor)(
2727

2828
} // extern "C"
2929
} // namespace Fortran::runtime::cuda
30-
#endif // FORTRAN_RUNTIME_CUDA_DESCRIPTOR_H_
30+
#endif /* FORTRAN_RUNTIME_CUDA_DESCRIPTOR_H_ */

flang/include/flang/Runtime/allocatable.h renamed to FortranRuntime/include/flang/Runtime/allocatable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ void RTDECL(AllocatableDeallocateNoFinal)(
129129
Descriptor &, const char *sourceFile = nullptr, int sourceLine = 0);
130130
} // extern "C"
131131
} // namespace Fortran::runtime
132-
#endif // FORTRAN_RUNTIME_ALLOCATABLE_H_
132+
#endif /* FORTRAN_RUNTIME_ALLOCATABLE_H_ */

flang/include/flang/Runtime/allocator-registry.h renamed to FortranRuntime/include/flang/Runtime/allocator-registry.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
//===-- runtime/allocator-registry.h ----------------------------*- C++ -*-===//
1+
//===-- include/flang/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 FORTRAN_RUNTIME_ALLOCATOR_H_
10-
#define FORTRAN_RUNTIME_ALLOCATOR_H_
9+
#ifndef FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_
10+
#define FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_
1111

1212
#include "flang/Common/api-attrs.h"
1313
#include <cstdlib>
@@ -62,4 +62,4 @@ RT_OFFLOAD_VAR_GROUP_END
6262

6363
} // namespace Fortran::runtime
6464

65-
#endif // FORTRAN_RUNTIME_ALLOCATOR_H_
65+
#endif /* FORTRAN_RUNTIME_ALLOCATOR_REGISTRY_H_ */

flang/include/flang/Runtime/array-constructor.h renamed to FortranRuntime/include/flang/Runtime/array-constructor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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 FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
13-
#define FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
12+
#ifndef FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_
13+
#define FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_
1414

1515
#include "flang/Runtime/descriptor.h"
1616
#include "flang/Runtime/entry-names.h"
@@ -115,4 +115,4 @@ void RTDECL(PushArrayConstructorSimpleScalar)(
115115
ArrayConstructorVector &vector, void *from);
116116
} // extern "C"
117117
} // namespace Fortran::runtime
118-
#endif // FORTRAN_RUNTIME_ARRAYCONSTRUCTOR_H_
118+
#endif /* FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_ */

0 commit comments

Comments
 (0)