Skip to content

Commit

Permalink
FortranRuntime -> flang-rt
Browse files Browse the repository at this point in the history
  • Loading branch information
Meinersbur committed Oct 16, 2024
1 parent b3f9e91 commit 765c2f9
Show file tree
Hide file tree
Showing 215 changed files with 445 additions and 431 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- include/flang/Runtime/CUDA/allocator.h ------------------*- C++ -*-===//
//===-- include/flang-rt/CufRuntime/allocator.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_CUDA_ALLOCATOR_H_
#define FORTRAN_RUNTIME_CUDA_ALLOCATOR_H_
#ifndef FORTRAN_CUFRUNTIME_ALLOCATOR_H_
#define FORTRAN_CUFRUNTIME_ALLOCATOR_H_

#include "flang/Runtime/descriptor-consts.h"
#include "flang/Runtime/entry-names.h"
Expand Down Expand Up @@ -43,4 +43,4 @@ void *CUFAllocUnified(std::size_t);
void CUFFreeUnified(void *);

} // namespace Fortran::runtime::cuda
#endif // FORTRAN_RUNTIME_CUDA_ALLOCATOR_H_
#endif /* FORTRAN_CUFRUNTIME_ALLOCATOR_H_ */
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- include/FortranRuntime/Runtime/allocator-registry.h -----*- C++ -*-===//
//===-- include/flang-rt/flang_rt/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 FORTRAN_FLANG_RT_ALLOCATOR_REGISTRY_H_
#define FORTRAN_FLANG_RT_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 /* FORTRAN_FLANG_RT_ALLOCATOR_REGISTRY_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- include/FortranRuntime/Runtime/array-constructor.h ------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/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,10 +9,10 @@
// External APIs to create temporary storage for array constructors when their
// final extents or length parameters cannot be pre-computed.

#ifndef FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_
#define FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_
#ifndef FORTRAN_FLANG_RT_ARRAY_CONSTRUCTOR_H_
#define FORTRAN_FLANG_RT_ARRAY_CONSTRUCTOR_H_

#include "FortranRuntime/Runtime/descriptor.h"
#include "flang-rt/flang_rt/descriptor.h"
#include "flang/Runtime/array-constructor-consts.h"
#include "flang/Runtime/entry-names.h"
#include <cstdint>
Expand Down Expand Up @@ -45,4 +45,4 @@ struct ArrayConstructorVector {
};

} // namespace Fortran::runtime
#endif /* FORTRAN_RUNTIME_ARRAY_CONSTRUCTOR_H_ */
#endif /* FORTRAN_FLANG_RT_ARRAY_CONSTRUCTOR_H_ */
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- include/FortranRuntime/Runtime/descriptor.h -------------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/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 FORTRAN_FLANG_RT_DESCRIPTOR_H_
#define FORTRAN_FLANG_RT_DESCRIPTOR_H_

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

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

} // namespace Fortran::runtime
#endif /* FORTRAN_RUNTIME_DESCRIPTOR_H_ */
#endif /* FORTRAN_FLANG_RT_DESCRIPTOR_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- include/FortranRuntime/Runtime/io-api-funcs.h -----------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/io-api-funcs.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 @@

// Defines API between compiled code and I/O runtime library.

#ifndef FORTRAN_RUNTIME_IO_API_FUNCS_H_
#define FORTRAN_RUNTIME_IO_API_FUNCS_H_
#ifndef FORTRAN_FLANG_RT_IO_API_FUNCS_H_
#define FORTRAN_FLANG_RT_IO_API_FUNCS_H_

#include "flang/Common/uint128.h"
#include "flang/Runtime/entry-names.h"
Expand All @@ -36,4 +36,4 @@ RT_API_ATTRS const char *InquiryKeywordHashDecode(
char *buffer, std::size_t, InquiryKeywordHash);

} // namespace Fortran::runtime::io
#endif /* FORTRAN_RUNTIME_IO_API_FUNCS_H_ */
#endif /* FORTRAN_FLANG_RT_IO_API_FUNCS_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- include/FortranRuntime/Runtime/iostat-funcs.h -----------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/iostat-funcs.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,8 +9,8 @@
// Defines the values returned by the runtime for IOSTAT= specifiers
// on I/O statements.

#ifndef FORTRAN_RUNTIME_IOSTAT_FUNCS_H_
#define FORTRAN_RUNTIME_IOSTAT_FUNCS_H_
#ifndef FORTRAN_FLANG_RT_IOSTAT_FUNCS_H_
#define FORTRAN_FLANG_RT_IOSTAT_FUNCS_H_

#include "flang/Common/api-attrs.h"
#include "flang/Runtime/iostat.h"
Expand All @@ -20,4 +20,4 @@ namespace Fortran::runtime::io {
RT_API_ATTRS const char *IostatErrorString(int);

} // namespace Fortran::runtime::io
#endif /* FORTRAN_RUNTIME_IOSTAT_FUNCS_H_ */
#endif /* FORTRAN_FLANG_RT_IOSTAT_FUNCS_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- include/FortranRuntime/Runtime/memory.h -----------------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/memory.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,8 +9,8 @@
// Thin wrapper around malloc()/free() to isolate the dependency,
// ease porting, and provide an owning pointer.

#ifndef FORTRAN_RUNTIME_MEMORY_H_
#define FORTRAN_RUNTIME_MEMORY_H_
#ifndef FORTRAN_FLANG_RT_MEMORY_H_
#define FORTRAN_FLANG_RT_MEMORY_H_

#include "flang/Common/api-attrs.h"
#include <cassert>
Expand Down Expand Up @@ -170,4 +170,4 @@ template <typename A> struct Allocator {
};
} // namespace Fortran::runtime

#endif /* FORTRAN_RUNTIME_MEMORY_H_ */
#endif /* FORTRAN_FLANG_RT_MEMORY_H_ */
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- include/FortranRuntime/Runtime/type-code.h --------------*- C++ -*-===//
//===-- include/flang-rt/flang_rt/type-code.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_TYPE_CODE_H_
#define FORTRAN_RUNTIME_TYPE_CODE_H_
#ifndef FORTRAN_FLANG_RT_TYPE_CODE_H_
#define FORTRAN_FLANG_RT_TYPE_CODE_H_

#include "flang/Common/Fortran-consts.h"
#include "flang/Common/ISO_Fortran_binding_wrapper.h"
Expand Down Expand Up @@ -75,4 +75,4 @@ class TypeCode {
ISO::CFI_type_t raw_{CFI_type_other};
};
} // namespace Fortran::runtime
#endif /* FORTRAN_RUNTIME_TYPE_CODE_H_ */
#endif /* FORTRAN_FLANG_RT_TYPE_CODE_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===-- lib/Runtime/CUDA/CMakeLists.txt -------------------------------------===#
#===-- lib/CufRuntime/CMakeLists.txt ---------------------------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
//===-- lib/Runtime/CUDA/allocator.cpp --------------------------*- C++ -*-===//
//===-- lib/CufRuntime/allocator.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 "FortranRuntime/Runtime/CUDA/allocator.h"
#include "FortranRuntime/Runtime/allocator-registry.h"
#include "../derived.h"
#include "../stat.h"
#include "../terminator.h"
#include "../type-info.h"
#include "flang/ISO_Fortran_binding_wrapper.h"
#include "flang/Support/Fortran.h"
#include "flang-rt/CufRuntime/allocator.h"
#include "flang-rt/flang_rt/allocator-registry.h"
#include "../flang_rt/derived.h"
#include "../flang_rt/stat.h"
#include "../flang_rt/terminator.h"
#include "../flang_rt/type-info.h"
#include "flang/Common/Fortran-consts.h"
#include "flang/Common/ISO_Fortran_binding_wrapper.h"

#include "cuda_runtime.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//===-- lib/Runtime/CUDA/descriptor.cpp -------------------------*- C++ -*-===//
//===-- lib/CufRuntime/descriptor.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 "FortranRuntime/Runtime/CUDA/descriptor.h"
#include "FortranRuntime/Runtime/CUDA/allocator.h"
#include "flang/Runtime/CUDA/descriptor.h"
#include "flang-rt/CufRuntime/allocator.h"

namespace Fortran::runtime::cuda {
extern "C" {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#===-- lib/Runtime/Float128Math/CMakeLists.txt -----------------------------===#
#===-- lib/FortranFloat128Math/CMakeLists.txt ------------------------------===#
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/acos.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/acos.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/acosh.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/acosh.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/asin.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/asin.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/asinh.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/asinh.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/atan.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/atan.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/atan2.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/atan2.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/atanh.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/atanh.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/ceil.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/ceil.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*===-- lib/Runtime/Float128Math/complex-math.c ---------------------*- C -*-===
/*===-- lib/FortranFloat128Math/complex-math.c ----------------------*- 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 Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*===-- lib/Runtime/Float128Math/complex-math.h ---------------------*- C -*-===
/*===-- lib/FortranFloat128Math/complex-math.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_FLOAT128MATH_COMPLEX_MATH_H_
#define FORTRAN_RUNTIME_FLOAT128MATH_COMPLEX_MATH_H_
#ifndef FORTRAN_FORTRANFLOAT128MATH_COMPLEX_MATH_H_
#define FORTRAN_FORTRANFLOAT128MATH_COMPLEX_MATH_H_

#include "flang/Common/float128.h"
#include "flang/Runtime/entry-names.h"
Expand Down Expand Up @@ -59,4 +59,4 @@
#error "Float128Math build with glibc>=2.26 is unsupported yet"
#endif

#endif /* FORTRAN_RUNTIME_FLOAT128MATH_COMPLEX_MATH_H_ */
#endif /* FORTRAN_FORTRANFLOAT128MATH_COMPLEX_MATH_H_ */
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/cos.cpp ------------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/cos.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/cosh.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/cosh.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/erf.cpp ------------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/erf.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/erfc.cpp -----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/erfc.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/exp.cpp ------------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/exp.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/exponent.cpp -------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/exponent.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/floor.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/floor.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/fma.cpp ------------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/fma.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/fraction.cpp -------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/fraction.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/hypot.cpp ----------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/hypot.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.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===-- lib/Runtime/Float128Math/j0.cpp -------------------------*- C++ -*-===//
//===-- lib/FortranFloat128Math/j0.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.
Expand Down
Loading

0 comments on commit 765c2f9

Please sign in to comment.