Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate bindings for MLIR 19 #82

Merged
merged 7 commits into from
Oct 13, 2024
Merged

Generate bindings for MLIR 19 #82

merged 7 commits into from
Oct 13, 2024

Conversation

mofeing
Copy link
Collaborator

@mofeing mofeing commented Oct 12, 2024

Don't know yet why but Dialect binding generation is not finding the TableGen files for MLIR 19

@jumerckx
Copy link
Collaborator

One idea: did you build the generator using the correct Julia version? I ran into trouble with this before: #74 (comment)

@mofeing
Copy link
Collaborator Author

mofeing commented Oct 13, 2024

It was exactly that, but I couldn't do it earlier because there was an issue on the PR from Yggdrasil to the General registry.

btw, I'm getting this error when trying to generate the new ptr dialect (Ptr/IR/PtrOps.td) (there is no op yet in the docs for this dialect)

PLEASE submit a bug report to https://github.com/julialang/julia and include the crash backtrace.
Stack dump:
0.      Program arguments: /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/bin/mlir-jl-tblgen --generator=jl-op-defs --disable-module-wrap /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include/mlir/Dialect/Ptr/IR/PtrOps.td -I /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include/mlir/Dialect/Ptr/IR -I /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include -o /var/folders/wb/4jh3glzx5ng9nqh7f2s83vrc0000gn/T/jl_HMi8bN
#0 0x0000000102e8f718 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x1000ff718)
#1 0x0000000102e8d608 llvm::sys::RunSignalHandlers() (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x1000fd608)
#2 0x0000000102e90254 SignalHandler(int) (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x100100254)
#3 0x0000000195c53584 (/usr/lib/system/libsystem_platform.dylib+0x180477584)
#4 0x0000000102d923a8 emitOpTableDefs(llvm::RecordKeeper const&, llvm::raw_ostream&) (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x1000023a8)
#5 0x0000000102db71d4 llvm::TableGenMain(char const*, std::__1::function<bool (llvm::raw_ostream&, llvm::RecordKeeper&)>) (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x1000271d4)
#6 0x0000000102d9168c main (/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/artifacts/0e6fe0d203b9c4d24d0811abceff67357006a799/bin/mlir-jl-tblgen+0x10000168c)
#7 0x000000019589a0e0 
ERROR: LoadError: failed process: Process(`/private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/bin/mlir-jl-tblgen --generator=jl-op-defs --disable-module-wrap /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include/mlir/Dialect/Ptr/IR/PtrOps.td -I /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include/mlir/Dialect/Ptr/IR -I /private/tmp/jl_jukAOh/aarch64-apple-darwin-libgfortran5-cxx11-llvm_version+19-julia_version+1.12.0/destdir/include -o /var/folders/wb/4jh3glzx5ng9nqh7f2s83vrc0000gn/T/jl_HMi8bN`, ProcessSignaled(11)) [0]

@mofeing mofeing merged commit e7661d8 into main Oct 13, 2024
5 of 6 checks passed
@mofeing mofeing deleted the mlir-19-bindings branch October 13, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants