Warning: This file is not a C or C++ file. It does not have highlighting.
1 | //===-- include/flang/Runtime/matmul.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 | // API for the transformational intrinsic function MATMUL. |
10 | |
11 | #ifndef FORTRAN_RUNTIME_MATMUL_H_ |
12 | #define FORTRAN_RUNTIME_MATMUL_H_ |
13 | #include "flang/Runtime/entry-names.h" |
14 | namespace Fortran::runtime { |
15 | class Descriptor; |
16 | extern "C" { |
17 | |
18 | // The most general MATMUL. All type and shape information is taken from the |
19 | // arguments' descriptors, and the result is dynamically allocated. |
20 | void RTDECL(Matmul)(Descriptor &, const Descriptor &, const Descriptor &, |
21 | const char *sourceFile = nullptr, int line = 0); |
22 | |
23 | // A non-allocating variant; the result's descriptor must be established |
24 | // and have a valid base address. |
25 | void RTDECL(MatmulDirect)(const Descriptor &, const Descriptor &, |
26 | const Descriptor &, const char *sourceFile = nullptr, int line = 0); |
27 | } // extern "C" |
28 | } // namespace Fortran::runtime |
29 | #endif // FORTRAN_RUNTIME_MATMUL_H_ |
30 |
Warning: This file is not a C or C++ file. It does not have highlighting.