clang 24.0.0git
CIRLoopOpInterface.h
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
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// Defines the interface to generically handle CIR loop operations.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef CLANG_CIR_INTERFACES_CIRLOOPOPINTERFACE_H
14#define CLANG_CIR_INTERFACES_CIRLOOPOPINTERFACE_H
15
16#include "mlir/IR/BuiltinTypes.h"
17#include "mlir/IR/OpDefinition.h"
18#include "mlir/IR/Operation.h"
19#include "mlir/Interfaces/ControlFlowInterfaces.h"
20#include "mlir/Interfaces/LoopLikeInterface.h"
22#include "llvm/ADT/APInt.h"
23
24using llvm::APInt;
25namespace cir {
26namespace detail {
27
28/// Verify invariants of the LoopOpInterface.
29mlir::LogicalResult verifyLoopOpInterface(::mlir::Operation *op);
30
31} // namespace detail
32} // namespace cir
33
34/// Include the tablegen'd interface declarations.
35#include "clang/CIR/Interfaces/CIRLoopOpInterface.h.inc"
36
37#endif // CLANG_CIR_INTERFACES_CIRLOOPOPINTERFACE_H
mlir::LogicalResult verifyLoopOpInterface(::mlir::Operation *op)
Verify invariants of the LoopOpInterface.