MLIR 23.0.0git
ToEmitCInterface.h
Go to the documentation of this file.
1//===- ToEmitCInterface.h - Conversion to EmitC iface ---*- 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 MLIR_CONVERSION_CONVERTTOEMITC_TOEMITCINTERFACE_H
10#define MLIR_CONVERSION_CONVERTTOEMITC_TOEMITCINTERFACE_H
11
13#include "mlir/IR/MLIRContext.h"
15
16#include <optional>
17
18namespace mlir {
19class ConversionTarget;
20class TypeConverter;
21class MLIRContext;
22class Operation;
24class AnalysisManager;
25/// Recursively walk the IR and collect all dialects implementing the interface,
26/// and populate the conversion patterns.
29 TypeConverter &typeConverter,
30 RewritePatternSet &patterns);
31
32} // namespace mlir
33
34#include "mlir/Conversion/ConvertToEmitC/ConvertToEmitCPatternInterface.h.inc"
35
36#endif // MLIR_CONVERSION_CONVERTTOEMITC_TOEMITCINTERFACE_H
This class represents an analysis manager for a particular operation instance.
MLIRContext is the top-level object for a collection of MLIR operations.
Definition MLIRContext.h:63
Operation is the basic unit of execution within MLIR.
Definition Operation.h:87
Include the generated interface declarations.
void populateConversionTargetFromOperation(Operation *op, ConversionTarget &target, TypeConverter &typeConverter, RewritePatternSet &patterns)
Recursively walk the IR and collect all dialects implementing the interface, and populate the convers...