[llvm] [update_llc_test_checks][AMDGPU] Update AMDGPU regexp in update_llc_test_checks.py (PR #102480)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 07:36:15 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-testing-tools
Author: Juan Manuel Martinez CaamaƱo (jmmartinez)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/102480.diff
1 Files Affected:
- (modified) llvm/utils/UpdateTestChecks/asm.py (+1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/102480
More information about the llvm-commits
mailing list