Skip to content

Commit d38bae3

Browse files
authored
[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>,@function" entry which was not considered by the regexp.
1 parent a9e75b1 commit d38bae3

File tree

1 file changed

+1
-0
lines changed
  • llvm/utils/UpdateTestChecks

1 file changed

+1
-0
lines changed

llvm/utils/UpdateTestChecks/asm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class string:
5252

5353
ASM_FUNCTION_AMDGPU_RE = re.compile(
5454
r"\.type\s+_?(?P<func>[^,\n]+),@function\n"
55+
r"(^\s*\.amdgpu_hsa_kernel (?P=func)\n)?"
5556
r'^_?(?P=func):(?:[ \t]*;+[ \t]*@"?(?P=func)"?)?\n'
5657
r"(?P<body>.*?)\n" # (body of the function)
5758
# This list is incomplete

0 commit comments

Comments
 (0)