This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 2c46ff96f8 [Tests][LLVM] Gate stepvector intrinsic rename on LLVM 20 
(#19745)
2c46ff96f8 is described below

commit 2c46ff96f8b11b98e782dc22e36e1c9fc8b103af
Author: Shushi Hong <[email protected]>
AuthorDate: Fri Jun 12 08:33:26 2026 -0400

    [Tests][LLVM] Gate stepvector intrinsic rename on LLVM 20 (#19745)
    
    llvm.experimental.stepvector was renamed to llvm.stepvector in LLVM 20,
    not LLVM 18. On LLVM 18 and 19 the test picked the new name, which those
    versions do not know, failing call_llvm_intrin with "Unknown llvm
    intrinsic function llvm.stepvector". Use the new name only for LLVM >=
    20.
---
 tests/python/tirx-base/test_tir_scalable_datatype.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/python/tirx-base/test_tir_scalable_datatype.py 
b/tests/python/tirx-base/test_tir_scalable_datatype.py
index 90410b645a..833f34def0 100644
--- a/tests/python/tirx-base/test_tir_scalable_datatype.py
+++ b/tests/python/tirx-base/test_tir_scalable_datatype.py
@@ -32,8 +32,11 @@ def test_create_scalable_data_type_python_api():
     assert str(dtype) == "float32xvscalex4"
 
 
+# LLVM 20 renamed llvm.experimental.stepvector to llvm.stepvector and dropped
+# the old name from the intrinsic table:
+# https://releases.llvm.org/20.1.0/docs/ReleaseNotes.html
 _STEPVECTOR_NAME = (
-    "llvm.stepvector" if llvm_version_major() >= 18 else 
"llvm.experimental.stepvector"
+    "llvm.stepvector" if llvm_version_major() >= 20 else 
"llvm.experimental.stepvector"
 )
 
 

Reply via email to