-
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
[Codegen] fix bug on LLVM 10.0 #4480
Conversation
Thanks @qingyunqu ! |
@qingyunqu this breaks the build with the trunk as pointed out in #4386. Can you revert this change and instead fix version ifdef? Sorry I didnt test in llvm 10.0. |
@masahi Could I push a new version that reduce the second and the third ifdef into one? |
No, second elif should be TVM_LLVM_VERSION <= 100. The last one is for the latest llvm. |
@qingyunqu where did your get your llvm 10.0? It is not released yet. Maybe you are using out of date trunk? |
@masahi Maybe I used the master branch of LLVM |
Ok, that means you are using an out of date LLVM trunk. As I mentioned in #4386, LLVM recently introduced changes that break the build of TVM with the LLVM trunk. #4386 fixed that issue, but you reverted that fix in this PR. Please send another PR that reverts this change. If you update and rebuild your LLVM, the build should succeed. |
@masahi Thanks, I will send the PR immediately. |
@masahi I have used svn to update my LLVM. But after rebuilding LLVM, the build of tvm without |
A couple of points:
|
Thanks, I have got the latest LLVM of |
@masahi I have compiled tvm with Then I comment the error line in Maybe there is better method to fix this? |
I also remember seeing that error (but I don't remember how I fixed it). Unless you have a good solution for this, we can fix that later. If you've confirmed that you can build TVM with the LLVM trunk, please send a PR that reverts this change. |
Thanks for contributing to TVM! Please refer to guideline https://docs.tvm.ai/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
llvm::CGFT_xxx
tollvm::TargetMachine::CGFT_xxx
.