[llvm] d38bae3 - [update_llc_test_checks][AMDGPU] Update AMDGPU regexp in update_llc_test_checks.py (#102480)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 00:33:34 PDT 2024


Author: Juan Manuel Martinez CaamaƱo
Date: 2024-08-09T09:33:31+02:00
New Revision: d38bae3c773f0fda578097dc5a35114a83cfc2af

URL: https://github.com/llvm/llvm-project/commit/d38bae3c773f0fda578097dc5a35114a83cfc2af
DIFF: https://github.com/llvm/llvm-project/commit/d38bae3c773f0fda578097dc5a35114a83cfc2af.diff

LOG: [update_llc_test_checks][AMDGPU] Update AMDGPU regexp in update_llc_test_checks.py (#102480)

Updating `llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll` with
`update_llc_test_checks.py` ended with several kernels with no checks.

Llc's output contained the line ".amdgpu_hsa_kernel <funcname>" after
the ".type <funcname>, at function" entry which was not considered by the
regexp.

Added: 
    

Modified: 
    llvm/utils/UpdateTestChecks/asm.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index f150098eaaeef4..f05d8b89e73b93 100644
--- a/llvm/utils/UpdateTestChecks/asm.py
+++ b/llvm/utils/UpdateTestChecks/asm.py
@@ -52,6 +52,7 @@ class string:
 
 ASM_FUNCTION_AMDGPU_RE = re.compile(
     r"\.type\s+_?(?P<func>[^,\n]+), at function\n"
+    r"(^\s*\.amdgpu_hsa_kernel (?P=func)\n)?"
     r'^_?(?P=func):(?:[ \t]*;+[ \t]*@"?(?P=func)"?)?\n'
     r"(?P<body>.*?)\n"  # (body of the function)
     # This list is incomplete


        


More information about the llvm-commits mailing list