[PATCH] D60474: [llvm] [lit] Add target-x86* features

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 01:13:06 PDT 2019


mgorny updated this revision to Diff 194456.
mgorny marked an inline comment as done.
mgorny retitled this revision from "[llvm] [lit] Add target-x86 feature" to "[llvm] [lit] Add target-x86* features".
mgorny edited the summary of this revision.
mgorny added a reviewer: craig.topper.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60474/new/

https://reviews.llvm.org/D60474

Files:
  llvm/utils/lit/lit/llvm/config.py


Index: llvm/utils/lit/lit/llvm/config.py
===================================================================
--- llvm/utils/lit/lit/llvm/config.py
+++ llvm/utils/lit/lit/llvm/config.py
@@ -96,6 +96,10 @@
                 features.add('x86_64-linux')
             if re.match(r'.*-windows-msvc$', target_triple):
                 features.add('target-windows')
+            if re.match(r'^i.86.*', target_triple):
+                features.add('target-x86')
+            elif re.match(r'^x86_64.*', target_triple):
+                features.add('target-x86_64')
 
         use_gmalloc = lit_config.params.get('use_gmalloc', None)
         if lit.util.pythonize_bool(use_gmalloc):


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60474.194456.patch
Type: text/x-patch
Size: 679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/1938b601/attachment.bin>


More information about the llvm-commits mailing list