[llvm] [update_llc_test_checks][AMDGPU] Update AMDGPU regexp in update_llc_test_checks.py (PR #102480)
Juan Manuel Martinez CaamaƱo via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 07:35:41 PDT 2024
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/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.
>From 802018e0f436c21710b4100911b707fb06a5ac27 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= <juamarti at amd.com>
Date: Thu, 8 Aug 2024 15:54:35 +0200
Subject: [PATCH] [update_llc_test_checks][AMDGPU] Update AMDGPU regexp in
update_llc_test_checks.py
Updating llvm/test/CodeGen/AMDGPU/GlobalISel/extractelement.ll with
update_llc_test_checks.py ended with several kernels with no checks.
Change-Id: Ib83e1fe830109431cb3cb26fb12d7960db4e2abf
---
llvm/utils/UpdateTestChecks/asm.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/utils/UpdateTestChecks/asm.py b/llvm/utils/UpdateTestChecks/asm.py
index f150098eaaeef..f05d8b89e73b9 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