Skip to content

Commit 3a84379

Browse files
committed
Address PR feedback
Signed-off-by: Domenic Nutile <[email protected]>
1 parent 36e1a84 commit 3a84379

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

llvm/test/tools/UpdateTestChecks/update_mir_test_checks/metadata-pointer.test renamed to llvm/test/tools/UpdateTestChecks/update_mir_test_checks/amdgpu-metadata-pointer.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
## written out by LLC with a pointer-capturing regex, and also does not produce
44
## new metadata operand pointers
55

6-
# RUN: cp -f %S/Inputs/metadata-pointer.ll %t.ll && %update_mir_test_checks %t.ll
7-
# RUN: diff -u %S/Inputs/metadata-pointer.ll.expected %t.ll
6+
# RUN: cp -f %S/Inputs/amdgpu-metadata-pointer.ll %t.ll && %update_mir_test_checks %t.ll
7+
# RUN: diff -u %S/Inputs/amdgpu-metadata-pointer.ll.expected %t.ll

llvm/utils/update_mir_test_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
flags=(re.M | re.S),
6666
)
6767

68-
META_PTR_RE = re.compile(r"\<0x[a-f0-9]+\>", re.IGNORECASE)
68+
MD_PTR_RE = re.compile(r"\<0x[a-f0-9]+\>", re.IGNORECASE)
6969

7070

7171
class LLC:
@@ -253,7 +253,7 @@ def update_test_file(args, test, autogenerated_note):
253253
# capturing the pointer's format so that stale values don't break tests
254254
no_pointer_output = ""
255255
for line in raw_tool_output.splitlines():
256-
line = META_PTR_RE.sub("<0x{{[0-9a-f]+}}>", line)
256+
line = MD_PTR_RE.sub("<0x{{[0-9a-f]+}}>", line)
257257
no_pointer_output += line + "\n"
258258
raw_tool_output = no_pointer_output
259259

0 commit comments

Comments
 (0)