[PATCH] D63145: [NFC] Improve triple match of scripts that update tests

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 09:30:54 PDT 2019


dnsampaio created this revision.
dnsampaio added a reviewer: lebedev.ri.
Herald added subscribers: llvm-commits, kristof.beyls, javed.absar.
Herald added a project: LLVM.

The prior behavior of the triple matcher would stop
in the first matched triple. It was not possible to
create specific matches for sub-sets of a triple
(e.g aarch64-apple-darwin would never be used after
aarch64 was matched).

This patch:

1. Allows that specialized triples take priority,

considering that the string lenght of the triple
indentifies how specialized a triple is. If two
triples of same lenght match, the one matched first
prevails, preserving the old behavior.

2. Remove 20 duplicated triples of arm, thumb,

aarch64 options with same arguments, matching
the common prefix (aarch64, arm, thumb) of them.

3. Creates three new function matching regexes and

five triple options for arm64-apple-ios,
(arm|thumb)-apple-ios and thumb(v5)?-macho


Repository:
  rL LLVM

https://reviews.llvm.org/D63145

Files:
  utils/UpdateTestChecks/asm.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63145.204087.patch
Type: text/x-patch
Size: 4556 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190611/62e7fe8b/attachment.bin>


More information about the llvm-commits mailing list