FLANG
Exceptions.h
1//===-- Exceptions.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#ifndef FORTRAN_OPTIMIZER_BUILDER_RUNTIME_EXCEPTIONS_H
10#define FORTRAN_OPTIMIZER_BUILDER_RUNTIME_EXCEPTIONS_H
11
12#include "mlir/IR/Value.h"
13
14namespace mlir {
15class Location;
16} // namespace mlir
17
18namespace fir {
19class FirOpBuilder;
20}
21
22namespace fir::runtime {
23
26mlir::Value genMapExcept(fir::FirOpBuilder &builder, mlir::Location loc,
27 mlir::Value excepts);
28
29mlir::Value genSupportHalting(fir::FirOpBuilder &builder, mlir::Location loc,
30 mlir::Value excepts);
31
32mlir::Value genGetUnderflowMode(fir::FirOpBuilder &builder, mlir::Location loc);
33void genSetUnderflowMode(fir::FirOpBuilder &builder, mlir::Location loc,
34 mlir::Value bit);
35
36mlir::Value genGetModesTypeSize(fir::FirOpBuilder &builder, mlir::Location loc);
37mlir::Value genGetStatusTypeSize(fir::FirOpBuilder &builder,
38 mlir::Location loc);
39
40} // namespace fir::runtime
41#endif // FORTRAN_OPTIMIZER_BUILDER_RUNTIME_EXCEPTIONS_H
Definition: FIRBuilder.h:55
Definition: AbstractConverter.h:31
Definition: AbstractConverter.h:27