[PATCH] D60474: [llvm] [lit] Add target-x86 feature
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 10:48:41 PDT 2019
mgorny created this revision.
mgorny added reviewers: labath, zturner, phosek.
Herald added a subscriber: delcypher.
Herald added a project: LLVM.
mgorny added a child revision: D60325: [lldb] [Process/NetBSD] Fix wrongly mapping mm* registers.
Add a 'target-x86' feature that indicates that the default target is x86
family processor (true for both 32-bit and 64-bit targets). Combined
with 'native' feature, we're going to use this to control x86-specific
LLDB native process tests.
Repository:
rL LLVM
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,9 @@
features.add('x86_64-linux')
if re.match(r'.*-windows-msvc$', target_triple):
features.add('target-windows')
+ # target is using x86 family processor (32- or 64-bit)
+ if re.match(r'^x86.*', target_triple):
+ features.add('target-x86')
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.194364.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190409/82406bb8/attachment.bin>
More information about the llvm-commits
mailing list