//===- LoweringPrepare.cpp - pareparation work for LLVM lowering ----------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "PassDetail.h" #include "clang/AST/ASTContext.h" #include "clang/CIR/Dialect/IR/CIRDialect.h" #include "clang/CIR/Dialect/Passes.h" #include using namespace mlir; using namespace cir; namespace { struct LoweringPreparePass : public LoweringPrepareBase { LoweringPreparePass() = default; void runOnOperation() override; void runOnOp(Operation *op); }; } // namespace void LoweringPreparePass::runOnOp(Operation *op) {} void LoweringPreparePass::runOnOperation() { llvm::SmallVector opsToTransform; for (auto *o : opsToTransform) runOnOp(o); } std::unique_ptr mlir::createLoweringPreparePass() { return std::make_unique(); }