File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212
1313#include " mlir/Conversion/AffineToStandard/AffineToStandard.h"
1414#include " mlir/Conversion/ArithToLLVM/ArithToLLVM.h"
15+ #include " mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h"
1516#include " mlir/Conversion/FuncToLLVM/ConvertFuncToLLVM.h"
1617#include " mlir/Conversion/FuncToLLVM/ConvertFuncToLLVMPass.h"
1718#include " mlir/Conversion/LLVMCommon/ConversionTarget.h"
@@ -492,6 +493,8 @@ void ConvertCIRToLLVMPass::runOnOperation() {
492493 populateAffineToStdConversionPatterns (patterns);
493494 mlir::arith::populateArithToLLVMConversionPatterns (typeConverter, patterns);
494495 populateSCFToControlFlowConversionPatterns (patterns);
496+ mlir::cf::populateControlFlowToLLVMConversionPatterns (typeConverter,
497+ patterns);
495498 populateFinalizeMemRefToLLVMConversionPatterns (typeConverter, patterns);
496499 populateFuncToLLVMConversionPatterns (typeConverter, patterns);
497500
Original file line number Diff line number Diff line change 11// RUN: cir-tool %s -canonicalize -cir-to-func -cir-to-memref -o - | FileCheck %s -check-prefix=MLIR
22// 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
63// XFAIL: *
74
85module {
You can’t perform that action at this time.
0 commit comments