-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix error when compile tvm with latest llvm14git #8682
Conversation
Thanks for the fix! I am not the expert of the LLVM backend, so CC’ing related experts @kparzysz-quic @FrozenGene @zhiics |
your CI got some problem with latest llvm, clearly, the following two things have changed for a while.
the problem happens when you build your own llvm and change the cmake.config pointing to the /latest/path/to/llvm-config, then you will get several compilation errors. |
To keep backward compatibility with earlier LLVM distributions, please use macros to guard the code path. Thanks :-) |
thx, ok, sorry didn't see the surrounding examples, hahaha~ |
Thank you @Joejiong ! |
Seems that llvm-13 has already changed the signature of |
Thanks for contributing to TVM! Please refer to guideline https://tvm.apache.org/docs/contribute/ for useful information and tips. After the pull request is submitted, please request code reviews from Reviewers by @ them in the pull request thread.
Fix two compilation error when compile tvm with latest llvm when version >=12;