mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
[mlir][Target][Cpp] Remove unused dialects (#85102)
Removes linking and registering dialects that are not support any more.
This commit is contained in:
@@ -10,8 +10,6 @@ add_mlir_translation_library(MLIRTargetCpp
|
||||
MLIREmitCDialect
|
||||
MLIRFuncDialect
|
||||
MLIRIR
|
||||
MLIRMathDialect
|
||||
MLIRSCFDialect
|
||||
MLIRSupport
|
||||
MLIRTranslateLib
|
||||
)
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include "mlir/Dialect/ControlFlow/IR/ControlFlow.h"
|
||||
#include "mlir/Dialect/EmitC/IR/EmitC.h"
|
||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||
#include "mlir/Dialect/Math/IR/Math.h"
|
||||
#include "mlir/Dialect/SCF/IR/SCF.h"
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/IR/Dialect.h"
|
||||
#include "mlir/Target/Cpp/CppEmitter.h"
|
||||
@@ -42,9 +40,7 @@ void registerToCppTranslation() {
|
||||
// clang-format off
|
||||
registry.insert<cf::ControlFlowDialect,
|
||||
emitc::EmitCDialect,
|
||||
func::FuncDialect,
|
||||
math::MathDialect,
|
||||
scf::SCFDialect>();
|
||||
func::FuncDialect>();
|
||||
// clang-format on
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,10 +10,10 @@ func.func @multiple_blocks() {
|
||||
|
||||
// -----
|
||||
|
||||
func.func @unsupported_std_op(%arg0: f64) -> f64 {
|
||||
// expected-error@+1 {{'math.absf' op unable to find printer for op}}
|
||||
%0 = math.absf %arg0 : f64
|
||||
return %0 : f64
|
||||
func.func @unsupported_op(%arg0: i1) {
|
||||
// expected-error@+1 {{'cf.assert' op unable to find printer for op}}
|
||||
cf.assert %arg0, "assertion foo"
|
||||
return
|
||||
}
|
||||
|
||||
// -----
|
||||
|
||||
@@ -1773,8 +1773,6 @@ cc_library(
|
||||
":EmitCDialect",
|
||||
":FuncDialect",
|
||||
":IR",
|
||||
":MathDialect",
|
||||
":SCFDialect",
|
||||
":Support",
|
||||
":TranslateLib",
|
||||
"//llvm:Support",
|
||||
|
||||
Reference in New Issue
Block a user