Skip to content

Commit 50b4a6a

Browse files
[CIR][ThroughMLIR] File MLIRLoweringPrepare.cpp is moved to
`clang/lib/CIR/Dialect/Transforms`.
1 parent 8892d4f commit 50b4a6a

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

clang/lib/CIR/Dialect/Transforms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ add_clang_library(MLIRCIRTransforms
1414
SCFPrepare.cpp
1515
CallConvLowering.cpp
1616
HoistAllocas.cpp
17+
MLIRLoweringPrepare.cpp
1718

1819
DEPENDS
1920
MLIRCIRPassIncGen

clang/lib/CIR/Lowering/ThroughMLIR/MLIRLoweringPrepare.cpp renamed to clang/lib/CIR/Dialect/Transforms/MLIRLoweringPrepare.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
//===- MLIRLoweringPrepare.cpp - Lowering from CIR to LLVMIR --------------===//
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 contains helper function for implementing
10+
// lowering of CIR operations to LLVMIR.
11+
//
12+
//===----------------------------------------------------------------------===//
13+
114
#include "mlir/IR/BuiltinOps.h"
215
#include "mlir/IR/IRMapping.h"
316
#include "mlir/Pass/Pass.h"
@@ -109,4 +122,4 @@ std::unique_ptr<mlir::Pass> createMLIRLoweringPreparePass() {
109122
return std::make_unique<MLIRLoweringPrepare>();
110123
}
111124

112-
} // namespace cir
125+
} // namespace cir

clang/lib/CIR/Lowering/ThroughMLIR/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ add_clang_library(clangCIRLoweringThroughMLIR
99
LowerCIRLoopToSCF.cpp
1010
LowerCIRToMLIR.cpp
1111
LowerMLIRToLLVM.cpp
12-
MLIRLoweringPrepare.cpp
1312

1413
DEPENDS
1514
MLIRCIROpsIncGen

clang/lib/CIR/Lowering/ThroughMLIR/LowerCIRToMLIR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//====- LowerCIRToMLIR.cpp - Lowering from CIR to MLIR --------------------===//
1+
//===- LowerCIRToMLIR.cpp - Lowering from CIR to MLIR ---------------------===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.

0 commit comments

Comments
 (0)