FLANG
Stop.h
1//===-- Stop.h - generate stop 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_STOP_H
10#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_STOP_H
11
12namespace llvm {
13class StringRef;
14}
15
16namespace mlir {
17class Value;
18class Location;
19} // namespace mlir
20
21namespace fir {
22class FirOpBuilder;
23}
24
25namespace fir::runtime {
26
28void genExit(fir::FirOpBuilder &, mlir::Location, mlir::Value status);
29
31void genAbort(fir::FirOpBuilder &, mlir::Location);
32
35void genReportFatalUserError(fir::FirOpBuilder &, mlir::Location,
36 llvm::StringRef message);
37
38} // namespace fir::runtime
39#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_STOP_H
Definition: FIRBuilder.h:55
Definition: AbstractConverter.h:31
@ Value
Lower argument to a value. Mainly intended for scalar arguments.
Definition: AbstractConverter.h:27