Warning: This file is not a C or C++ file. It does not have highlighting.

1//===-- include/flang/Runtime/inquiry.h ----------------*- 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
9// Defines the API for the inquiry intrinsic functions
10// that inquire about shape information in arrays: LBOUND and SIZE.
11
12#ifndef FORTRAN_RUNTIME_INQUIRY_H_
13#define FORTRAN_RUNTIME_INQUIRY_H_
14
15#include "flang/Runtime/entry-names.h"
16#include <cinttypes>
17
18namespace Fortran::runtime {
19
20class Descriptor;
21
22extern "C" {
23
24std::int64_t RTDECL(LboundDim)(const Descriptor &array, int dim,
25 const char *sourceFile = nullptr, int line = 0);
26void RTDECL(Ubound)(Descriptor &result, const Descriptor &array, int kind,
27 const char *sourceFile = nullptr, int line = 0);
28std::int64_t RTDECL(Size)(
29 const Descriptor &array, const char *sourceFile = nullptr, int line = 0);
30std::int64_t RTDECL(SizeDim)(const Descriptor &array, int dim,
31 const char *sourceFile = nullptr, int line = 0);
32
33} // extern "C"
34} // namespace Fortran::runtime
35#endif // FORTRAN_RUNTIME_INQUIRY_H_
36

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of flang/include/flang/Runtime/inquiry.h