FLANG
ArrayConstructor.h
1//===- ArrayConstructor.h - array constructor runtime API calls -*- 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#ifndef FORTRAN_OPTIMIZER_BUILDER_RUNTIME_ARRAYCONSTRUCTOR_H
10#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_ARRAYCONSTRUCTOR_H
11
12namespace mlir {
13class Value;
14class Location;
15} // namespace mlir
16
17namespace fir {
18class FirOpBuilder;
19}
20
21namespace fir::runtime {
22
23mlir::Value genInitArrayConstructorVector(mlir::Location loc,
24 fir::FirOpBuilder &builder,
25 mlir::Value toBox,
26 mlir::Value useValueLengthParameters);
27
28void genPushArrayConstructorValue(mlir::Location loc,
29 fir::FirOpBuilder &builder,
30 mlir::Value arrayConstructorVector,
31 mlir::Value fromBox);
32
33void genPushArrayConstructorSimpleScalar(mlir::Location loc,
34 fir::FirOpBuilder &builder,
35 mlir::Value arrayConstructorVector,
36 mlir::Value fromAddress);
37
38} // namespace fir::runtime
39#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_ARRAYCONSTRUCTOR_H
Definition: FIRBuilder.h:55
Definition: AbstractConverter.h:31
@ Value
Lower argument to a value. Mainly intended for scalar arguments.
Definition: AbstractConverter.h:27