Skip to content

Conversation

@cbalint13
Copy link
Contributor

@cbalint13 cbalint13 commented Aug 11, 2025

This PR fix TVM use with the latest LLVM version 21.

  • At this time LLVM21 is available as a release candidate.
  • Double checks for backward compatibility down to LLVM10.

Notes (LLVM21):

  • Explicit conversion of llvm::Triple <-> str() is a requirement, it is not deduced anymore.
  • As of llvm#140615 , intrinsic llvm.nvvm.barrier0 is now llvm.nvvm.barrier.cta.sync.aligned.all(0).
  • ORCJIT's linker requires a llvm::Expected protection from now.

Backward version checks:

$ rpm -q gcc-c++
gcc-c++-15.1.1-5.fc43.1.x86_64

for llvm = {10,11,12,13,14,15,16,17,18,19,20,21} do make; make cpptest; make test

@cbalint13 cbalint13 force-pushed the llvm21 branch 3 times, most recently from 36eb89a to 173ebeb Compare August 11, 2025 11:39
@cbalint13 cbalint13 force-pushed the llvm21 branch 2 times, most recently from d826b4d to 1ebc0fc Compare August 11, 2025 12:42
@cbalint13 cbalint13 changed the title [LLVM] Fixes for latest LLVM21 [LLVM] Fixes up to the latest LLVM21 Aug 11, 2025
@cbalint13 cbalint13 marked this pull request as ready for review August 11, 2025 15:03
@cbalint13 cbalint13 merged commit 6790af8 into apache:main Aug 12, 2025
12 of 19 checks passed
@cbalint13 cbalint13 deleted the llvm21 branch August 28, 2025 14:55
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