File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include " mlir/Conversion/AffineToStandard/AffineToStandard.h"
14
14
#include " mlir/Conversion/ArithToLLVM/ArithToLLVM.h"
15
+ #include " mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h"
15
16
#include " mlir/Conversion/FuncToLLVM/ConvertFuncToLLVM.h"
16
17
#include " mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h"
17
18
#include " mlir/Conversion/LLVMCommon/ConversionTarget.h"
@@ -492,6 +493,8 @@ void ConvertCIRToLLVMPass::runOnOperation() {
492
493
populateAffineToStdConversionPatterns (patterns);
493
494
mlir::arith::populateArithToLLVMConversionPatterns (typeConverter, patterns);
494
495
populateSCFToControlFlowConversionPatterns (patterns);
496
+ mlir::cf::populateControlFlowToLLVMConversionPatterns (typeConverter,
497
+ patterns);
495
498
populateFinalizeMemRefToLLVMConversionPatterns (typeConverter, patterns);
496
499
populateFuncToLLVMConversionPatterns (typeConverter, patterns);
497
500
Original file line number Diff line number Diff line change 1
1
// RUN: cir-tool %s -canonicalize -cir-to-func -cir-to-memref -o - | FileCheck %s -check-prefix=MLIR
2
2
// RUN: cir-tool %s -canonicalize -cir-to-func -cir-to-memref -cir-to-llvm -o - | mlir-translate -mlir-to-llvmir | FileCheck %s -check-prefix=LLVM
3
-
4
- // FIXME: after rebasing against July's 2022 mlir, we get "failed to legalize
5
- // operation 'cf.br'" from -cir-to-llvm
6
3
// XFAIL: *
7
4
8
5
module {
You can’t perform that action at this time.
0 commit comments