mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 20:27:19 +00:00
![Peter Klausler](/assets/img/avatar_default.png)
Move the closure of the subset of flang/runtime/*.h header files that are referenced by source files outside flang/runtime (apart from unit tests) into a new directory (flang/include/flang/Runtime) so that relative include paths into ../runtime need not be used. flang/runtime/pgmath.h.inc is moved to flang/include/flang/Evaluate; it's not used by the runtime. Differential Revision: https://reviews.llvm.org/D109107
29 lines
1.1 KiB
C++
29 lines
1.1 KiB
C++
//===-- runtime/copy.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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Utilities that copy data in a type-aware fashion, allocating & duplicating
|
|
// allocatable/automatic components of derived types along the way.
|
|
|
|
#ifndef FORTRAN_RUNTIME_COPY_H_
|
|
#define FORTRAN_RUNTIME_COPY_H_
|
|
|
|
#include "flang/Runtime/descriptor.h"
|
|
|
|
namespace Fortran::runtime {
|
|
|
|
// Assigns to uninitialized storage.
|
|
// Duplicates allocatable & automatic components.
|
|
void CopyElement(const Descriptor &to, const SubscriptValue toAt[],
|
|
const Descriptor &from, const SubscriptValue fromAt[], Terminator &);
|
|
|
|
// Copies data from one allocated descriptor's array to another.
|
|
void CopyArray(const Descriptor &to, const Descriptor &from, Terminator &);
|
|
|
|
} // namespace Fortran::runtime
|
|
#endif // FORTRAN_RUNTIME_COPY_H_
|