clang 24.0.0git
CIRToCIRPasses.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// This file declares an interface for running CIR-to-CIR passes.
10//
11//===----------------------------------------------------------------------===//
12
13#ifndef CLANG_CIR_CIRTOCIRPASSES_H
14#define CLANG_CIR_CIRTOCIRPASSES_H
15
16#include "mlir/Pass/Pass.h"
17
18#include <memory>
19
20namespace mlir {
21class MLIRContext;
22class ModuleOp;
23} // namespace mlir
24
25namespace cir {
26
27// Run set of cleanup/prepare/etc passes CIR <-> CIR.
28mlir::LogicalResult
29runCIRToCIRPasses(mlir::ModuleOp theModule, mlir::MLIRContext &mlirCtx,
30 bool enableVerifier, bool enableIdiomRecognizer,
31 bool enableCIRSimplify, bool enableLibOpt,
32 llvm::StringRef libOptOptions, bool enableCallConvLowering);
33
34} // namespace cir
35
36#endif // CLANG_CIR_CIRTOCIRPASSES_H_
mlir::LogicalResult runCIRToCIRPasses(mlir::ModuleOp theModule, mlir::MLIRContext &mlirCtx, bool enableVerifier, bool enableIdiomRecognizer, bool enableCIRSimplify, bool enableLibOpt, llvm::StringRef libOptOptions, bool enableCallConvLowering)
Definition CIRPasses.cpp:74