FLANG

CharacterRuntime.h
1 //===-- Lower/CharacterRuntime.h -- lower CHARACTER operations --*- 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_LOWER_CHARACTERRUNTIME_H
10 #define FORTRAN_LOWER_CHARACTERRUNTIME_H
11
12 #include "mlir/Dialect/StandardOps/IR/Ops.h"
13
14 namespace Fortran {
15 namespace lower {
16 class AbstractConverter;
17
20 mlir::Value genBoxCharCompare(AbstractConverter &converter, mlir::Location loc,
21 mlir::CmpIPredicate cmp, mlir::Value lhs,
22 mlir::Value rhs);
23
28 mlir::Value genRawCharCompare(AbstractConverter &converter, mlir::Location loc,
29 mlir::CmpIPredicate cmp, mlir::Value lhsBuff,
30 mlir::Value lhsLen, mlir::Value rhsBuff,
31 mlir::Value rhsLen);
32
33 } // namespace lower
34 } // namespace Fortran
35
36 #endif // FORTRAN_LOWER_CHARACTERRUNTIME_H