Skip to content

Commit

Permalink
register TT dialect
Browse files Browse the repository at this point in the history
  • Loading branch information
TT-billteng committed Dec 20, 2024
1 parent 9cdbd46 commit 2b2d145
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Target/TTKernel/TTKernelToCppRegistration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Tools/mlir-translate/Translation.h"

#include "ttmlir/Dialect/TT/IR/TT.h"
#include "ttmlir/Dialect/TTKernel/IR/TTKernel.h"
#include "ttmlir/Target/TTKernel/TTKernelToCpp.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
Expand All @@ -23,7 +24,7 @@ void registerTTKernelToCpp() {
[](DialectRegistry &registry) {
registry.insert<mlir::scf::SCFDialect,
mlir::tt::ttkernel::TTKernelDialect, mlir::arith::ArithDialect,
mlir::emitc::EmitCDialect, mlir::func::FuncDialect>();
mlir::emitc::EmitCDialect, mlir::func::FuncDialect, mlir::tt::TTDialect>();
});
}

Expand Down

0 comments on commit 2b2d145

Please sign in to comment.