File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed
utils/bazel/llvm-project-overlay/mlir Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ add_mlir_translation_library(MLIRTargetCpp
10
10
MLIREmitCDialect
11
11
MLIRFuncDialect
12
12
MLIRIR
13
- MLIRMathDialect
14
- MLIRSCFDialect
15
13
MLIRSupport
16
14
MLIRTranslateLib
17
15
)
Original file line number Diff line number Diff line change 9
9
#include " mlir/Dialect/ControlFlow/IR/ControlFlow.h"
10
10
#include " mlir/Dialect/EmitC/IR/EmitC.h"
11
11
#include " mlir/Dialect/Func/IR/FuncOps.h"
12
- #include " mlir/Dialect/Math/IR/Math.h"
13
- #include " mlir/Dialect/SCF/IR/SCF.h"
14
12
#include " mlir/IR/BuiltinOps.h"
15
13
#include " mlir/IR/Dialect.h"
16
14
#include " mlir/Target/Cpp/CppEmitter.h"
@@ -42,9 +40,7 @@ void registerToCppTranslation() {
42
40
// clang-format off
43
41
registry.insert <cf::ControlFlowDialect,
44
42
emitc::EmitCDialect,
45
- func::FuncDialect,
46
- math::MathDialect,
47
- scf::SCFDialect>();
43
+ func::FuncDialect>();
48
44
// clang-format on
49
45
});
50
46
}
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ func.func @multiple_blocks() {
10
10
11
11
// -----
12
12
13
- func.func @unsupported_std_op (%arg0: f64 ) -> f64 {
14
- // expected-error@+1 {{'math.absf ' op unable to find printer for op}}
15
- %0 = math.absf %arg0 : f64
16
- return %0 : f64
13
+ func.func @unsupported_op (%arg0: i1 ) {
14
+ // expected-error@+1 {{'cf.assert ' op unable to find printer for op}}
15
+ cf.assert %arg0 , " assertion foo "
16
+ return
17
17
}
18
18
19
19
// -----
Original file line number Diff line number Diff line change @@ -1773,8 +1773,6 @@ cc_library(
1773
1773
":EmitCDialect" ,
1774
1774
":FuncDialect" ,
1775
1775
":IR" ,
1776
- ":MathDialect" ,
1777
- ":SCFDialect" ,
1778
1776
":Support" ,
1779
1777
":TranslateLib" ,
1780
1778
"//llvm:Support" ,
You can’t perform that action at this time.
0 commit comments