Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 0d86f78

Browse files
committed
add convert-math-to-llvm pass
1 parent f977bb7 commit 0d86f78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/jit/mlir.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -406,10 +406,9 @@ static const char *pass_pipeline =
406406
"linalg-bufferize,bufferization-bufferize,linalg-detensorize,tensor-"
407407
"bufferize,finalizing-bufferize,convert-linalg-to-parallel-loops),"
408408
"canonicalize,fold-memref-alias-ops,expand-strided-metadata,convert-"
409-
"math-to-funcs,lower-affine,convert-scf-to-cf,"
410-
"finalize-memref-to-llvm,convert-math-to-llvm,convert-func-to-llvm,"
411-
"reconcile-unrealized-"
412-
"casts";
409+
"math-to-funcs,lower-affine,convert-scf-to-cf,finalize-memref-to-"
410+
"llvm,convert-math-to-llvm,convert-math-to-libm,convert-func-to-"
411+
"llvm,reconcile-unrealized-casts";
413412
JIT::JIT()
414413
: _context(::mlir::MLIRContext::Threading::DISABLED), _pm(&_context),
415414
_verbose(false) {
@@ -473,6 +472,7 @@ void init() {
473472
::mlir::registerTosaToLinalg();
474473
::mlir::registerConvertMathToFuncs();
475474
::mlir::registerConvertMathToLibm();
475+
::mlir::registerConvertMathToLLVMPass();
476476
::mlir::tosa::registerTosaOptPasses();
477477
::mlir::func::registerFuncPasses();
478478
::mlir::registerConvertFuncToLLVMPass();

0 commit comments

Comments
 (0)