As we have many dialects and passes to convert them to LLVM IR, currently I am selecting which pass(es) to run on the MLIR(specially TOSA and linalg dialects) by inspecting the code. Is there anyway to automate the process?
mlir-opt file.mlir --arith-bufferize --linalg-bufferize --tensor-bufferize --func-bufferize --empty-tensor-to-alloc-tensor --finalizing-bufferize --buffer-deallocation --convert-linalg-to-loops --convert-linalg-to-llvm --finalize-memref-to-llvm --convert-func-to-llvm