Skip to content

[utils] Add spirv triple to update_llc_test_checks #150223

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

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

Keenuts
Copy link
Contributor

@Keenuts Keenuts commented Jul 23, 2025

The 32bit and 64bit flavors of SPIR-V were supported, but the logical version of the triple was lacking. Adding it.

The 32bit and 64bit flavors of SPIR-V were supported, but the
logical version of the triple was lacking. Adding it.
@llvmbot
Copy link
Member

llvmbot commented Jul 23, 2025

@llvm/pr-subscribers-testing-tools

Author: Nathan Gauër (Keenuts)

Changes

The 32bit and 64bit flavors of SPIR-V were supported, but the logical version of the triple was lacking. Adding it.


Full diff: https://github.com/llvm/llvm-project/pull/150223.diff

1 Files Affected:

  • (modified) llvm/utils/UpdateTestChecks/asm.py (+1)
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index 3754aa2eeba85..c2829c1fed0ae 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -593,6 +593,7 @@ def get_run_handler(triple):
         "riscv64": (scrub_asm_riscv, ASM_FUNCTION_RISCV_RE),
         "lanai": (scrub_asm_lanai, ASM_FUNCTION_LANAI_RE),
         "sparc": (scrub_asm_sparc, ASM_FUNCTION_SPARC_RE),
+        "spirv": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE),
         "spirv32": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE),
         "spirv64": (scrub_asm_spirv, ASM_FUNCTION_SPIRV_RE),
         "s390x": (scrub_asm_systemz, ASM_FUNCTION_SYSTEMZ_RE),

Copy link
Collaborator

@RKSimon RKSimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - are there many SPIRV uses of the update scripts yet? I didn't noticed anything in CodeGen/SPIRV

@Keenuts
Copy link
Contributor Author

Keenuts commented Jul 23, 2025

LGTM - are there many SPIRV uses of the update scripts yet? I didn't noticed anything in CodeGen/SPIRV

Not yet, but I used it for an upcoming PR: #150224

@Keenuts Keenuts merged commit d5d8eaf into llvm:main Jul 24, 2025
11 checks passed
@Keenuts Keenuts deleted the add-spirv-util branch July 24, 2025 12:09
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Jul 28, 2025
The 32bit and 64bit flavors of SPIR-V were supported, but the logical
version of the triple was lacking. Adding it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants