Skip to content

Commit

Permalink
try adding arith
Browse files Browse the repository at this point in the history
  • Loading branch information
vwellsTT committed Nov 20, 2024
1 parent 0c7aeb0 commit 1b8479d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Conversion/TTIRToLinAlg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ add_mlir_library(TTMLIRTTIRToLinAlg
MLIRIR
MLIRPass
MLIRLinalgDialect
MLIRArithmeticDialect
)
3 changes: 3 additions & 0 deletions lib/Conversion/TTIRToLinAlg/TTIRToLinAlgPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "ttmlir/Conversion/TTIRToLinAlg/TTIRToLinAlg.h"

#include "mlir/Dialect/Arithmetic/IR/Arithmetic.h"
#include "mlir/Dialect/Func/Transforms/FuncConversions.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/PatternMatch.h"
Expand All @@ -12,6 +13,7 @@
#include "mlir/Transforms/DialectConversion.h"
#include "ttmlir/Conversion/TTIRToTTIRDecomposition/TTIRToTTIRDecomposition.h"
#include "ttmlir/Dialect/TTIR/IR/TTIR.h"

#include <mlir/Dialect/Func/IR/FuncOps.h>

using namespace mlir;
Expand All @@ -34,6 +36,7 @@ struct ConvertTTIRToLinAlgPass
target.addLegalDialect<func::FuncDialect>();
target.addLegalDialect<tensor::TensorDialect>();
target.addLegalDialect<linalg::LinalgDialect>();
target.addLegalDialect<linalg::LinalgDialect>();
target.addIllegalDialect<ttir::TTIRDialect>();

TypeConverter typeConverter;
Expand Down

0 comments on commit 1b8479d

Please sign in to comment.