Kostya Serebryany [Fri, 30 Sep 2016 01:19:56 +0000 (01:19 +0000)]
[libFuzzer] more the feature set to InputCorpus; on feature update, change the feature counter of the old best input
llvm-svn: 282829
Adam Nemet [Fri, 30 Sep 2016 00:42:43 +0000 (00:42 +0000)]
[LoopDataPrefetch] Port to new streaming API for opt remarks
llvm-svn: 282826
Jason Molenda [Fri, 30 Sep 2016 00:41:15 +0000 (00:41 +0000)]
Add unit tests for simple frameless i386 and x86_64 function
instruction inspection to UnwindPlans.
llvm-svn: 282825
Enrico Granata [Fri, 30 Sep 2016 00:41:07 +0000 (00:41 +0000)]
Prefer skipping over x-failing
llvm-svn: 282824
Enrico Granata [Fri, 30 Sep 2016 00:40:04 +0000 (00:40 +0000)]
Do not assume we will be able to discover the return type of this selector call, for that is not true in i386 mode
llvm-svn: 282823
Justin Lebar [Fri, 30 Sep 2016 00:38:45 +0000 (00:38 +0000)]
Move UTF functions into namespace llvm.
Summary:
This lets people link against LLVM and their own version of the UTF
library.
I determined this only affects llvm, clang, lld, and lldb by running
$ git grep -wl 'UTF[0-9]\+\|\bConvertUTF\bisLegalUTF\|getNumBytesFor' | cut -f 1 -d '/' | sort | uniq
clang
lld
lldb
llvm
Tested with
ninja lldb
ninja check-clang check-llvm check-lld
(ninja check-lldb doesn't complete for me with or without this patch.)
Reviewers: rnk
Subscribers: klimek, beanz, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D24996
llvm-svn: 282822
Adam Nemet [Fri, 30 Sep 2016 00:29:30 +0000 (00:29 +0000)]
[LV] Port the remarks in processLoop to the new streaming API
This completes LV.
llvm-svn: 282821
Adam Nemet [Fri, 30 Sep 2016 00:29:25 +0000 (00:29 +0000)]
[LV] Port the last opt remark in Hints to the new streaming interface
llvm-svn: 282820
Reid Kleckner [Fri, 30 Sep 2016 00:17:49 +0000 (00:17 +0000)]
[X86] Don't preserve Win64 SSE CSRs when SSE is disabled
Code that doesn't use floating point and doesn't use SSE (kernel code)
shouldn't save and restore SSE registers.
Fixes PR30503
llvm-svn: 282819
Rafael Espindola [Fri, 30 Sep 2016 00:16:11 +0000 (00:16 +0000)]
Start linker scripts at 0.
We were implicitly creating space for the headers. That is not the
behaviour of bfd, which requires the script to use SIZEOF_HEADERS. The
difference is important for scripts that don't use SIZEOF_HEADERS and
expect the first section to be at 0.
llvm-svn: 282818
Quentin Colombet [Fri, 30 Sep 2016 00:10:00 +0000 (00:10 +0000)]
[AArch64][RegisterBankInfo] Use static mapping for 3-operands instrs.
This uses a TableGen'ed like structure for all 3-operands instrs.
The output of the RegBankSelect pass should be identical but the
RegisterBankInfo will do less dynamic allocations.
llvm-svn: 282817
Quentin Colombet [Fri, 30 Sep 2016 00:09:58 +0000 (00:09 +0000)]
[AArch64][RegisterBankInfo] Add static value mapping for 3-op instrs.
This is the kind of input TableGen should generate at some point.
NFC.
llvm-svn: 282816
Quentin Colombet [Fri, 30 Sep 2016 00:09:43 +0000 (00:09 +0000)]
[AArch64][RegisterBankInfo] Check the statically created ValueMapping.
Make sure that the ValueMappings contain the value we expect at the
indices we expect.
NFC.
llvm-svn: 282815
Rafael Espindola [Fri, 30 Sep 2016 00:06:24 +0000 (00:06 +0000)]
Don't depend on lld creating space for the headers.
Currently lld will implicitly reserve space for the headers. This is
not the case is bfd, where it is the script responsibility to use
SIZEOF_HEADERS. This means that a script not using SIZEOF_HEADERS and
expecting the address of the first section to be 0 would fail with lld.
I am fixing that is the next commit. This one just makes the tests
explicitly use SIZEOF_HEADERS to avoid the dependency on the current
behaviour.
llvm-svn: 282814
Adam Nemet [Fri, 30 Sep 2016 00:01:30 +0000 (00:01 +0000)]
[LAA, LV] Port to new streaming interface for opt remarks. Update LV
(Recommit after making sure IsVerbose gets properly initialized in
DiagnosticInfoOptimizationBase. See previous commit that takes care of
this.)
OptimizationRemarkAnalysis directly takes the role of the report that is
generated by LAA.
Then we need the magic to be able to turn an LAA remark into an LV
remark. This is done via a new OptimizationRemark ctor.
llvm-svn: 282813
Adam Nemet [Fri, 30 Sep 2016 00:01:27 +0000 (00:01 +0000)]
[Diag] Use non-static member initializer for IsVerbose. NFC
llvm-svn: 282812
Jason Molenda [Thu, 29 Sep 2016 23:57:33 +0000 (23:57 +0000)]
Switch to using TEST_EQ, TEST_FALSE where appropriate.
llvm-svn: 282811
Jim Ingham [Thu, 29 Sep 2016 23:48:21 +0000 (23:48 +0000)]
Add some logging when trace is on. We're getting a bot failure on i386 that doesn't
I can't reproduce locally. Hopefully this will help us catch the reason.
llvm-svn: 282810
Zachary Turner [Thu, 29 Sep 2016 23:05:41 +0000 (23:05 +0000)]
Revert "Add llvm::enumerate() to STLExtras."
This reverts commit r282804 as it seems to use some C++ features
that not all compilers support.
llvm-svn: 282809
Vitaly Buka [Thu, 29 Sep 2016 23:05:35 +0000 (23:05 +0000)]
Remove Google specific code.
llvm-svn: 282808
Rui Ueyama [Thu, 29 Sep 2016 23:04:50 +0000 (23:04 +0000)]
Add comments.
llvm-svn: 282807
Rafael Espindola [Thu, 29 Sep 2016 23:02:57 +0000 (23:02 +0000)]
Break long line. NFC.
llvm-svn: 282806
Vitaly Buka [Thu, 29 Sep 2016 23:00:54 +0000 (23:00 +0000)]
Don't use internal symbolizer if we are in process of reporting Out-of-Memory.
Reviewed by eugenis offline, as reviews.llvm.org is down.
llvm-svn: 282805
Zachary Turner [Thu, 29 Sep 2016 22:59:30 +0000 (22:59 +0000)]
Add llvm::enumerate() to STLExtras.
enumerate allows you to iterate over a range by pairing the
iterator's value with its index in the enumeration. This gives
you most of the benefits of using a for loop while still allowing
the range syntax.
llvm-svn: 282804
Chris Bieneman [Thu, 29 Sep 2016 22:55:09 +0000 (22:55 +0000)]
[CMake] LLDB/Expression needs to depend on intrinsics_gen
IRExecutionUnit.h includes Module.h, which through a long chain of includes eventually includes Attributes.gen.
This fixes a build issue reported to lldb-dev by Hal. Thanks Hal!
llvm-svn: 282803
Rui Ueyama [Thu, 29 Sep 2016 22:54:31 +0000 (22:54 +0000)]
Use StringSwitch::Cases. NFC.
llvm-svn: 282802
Rui Ueyama [Thu, 29 Sep 2016 22:50:37 +0000 (22:50 +0000)]
Remove HasError check after lto::LTO::run.
Because LTO::run doesn't change HasError, it doesn't make
sense to check that value.
llvm-svn: 282801
Richard Smith [Thu, 29 Sep 2016 22:49:46 +0000 (22:49 +0000)]
P0035R4: add std::align_val_t overloads of operator new/delete in C++17 mode.
llvm-svn: 282800
Rafael Espindola [Thu, 29 Sep 2016 22:48:55 +0000 (22:48 +0000)]
Don't put ro before rx when using linker scripts.
Since they end up going on the same PT_LOAD, there is no reason to
sort them. This matches bfd's behaviour and is user visible in the
placement of orphan sections.
llvm-svn: 282799
Rui Ueyama [Thu, 29 Sep 2016 22:37:45 +0000 (22:37 +0000)]
Keep a private member private.
llvm-svn: 282798
Rafael Espindola [Thu, 29 Sep 2016 22:27:48 +0000 (22:27 +0000)]
List more sections in linker script.
This makes the test less brittle with regards to orphan section placement.
llvm-svn: 282797
Sanjay Patel [Thu, 29 Sep 2016 22:18:30 +0000 (22:18 +0000)]
[InstCombine] fix function names; NFC
Also, make foldSelectExtConst() a member of InstCombiner, remove
unnecessary parameters from its interface, and group visitSelectInst
helpers together in the header file.
llvm-svn: 282796
Rui Ueyama [Thu, 29 Sep 2016 22:14:20 +0000 (22:14 +0000)]
Remove a return type that can be trivially easily.
llvm-svn: 282795
Sean Callanan [Thu, 29 Sep 2016 22:01:11 +0000 (22:01 +0000)]
Don't expect new-style Objective-C literals to work on i386 with the V1 runtime.
llvm-svn: 282794
Joerg Sonnenberger [Thu, 29 Sep 2016 21:50:37 +0000 (21:50 +0000)]
GC HAVE_STRDUP.
llvm-svn: 282793
Eric Fiselier [Thu, 29 Sep 2016 21:47:39 +0000 (21:47 +0000)]
[Coroutines] Fix assertion about uncorrected typos in co_await/co_yield/co_return expressions
llvm-svn: 282792
Joerg Sonnenberger [Thu, 29 Sep 2016 21:47:34 +0000 (21:47 +0000)]
GC more left-over libtool defines.
llvm-svn: 282791
Jason Molenda [Thu, 29 Sep 2016 21:47:15 +0000 (21:47 +0000)]
Add a quick note about how to build lldb with debug info using
cmake/ninja on linux/bsd systems.
llvm-svn: 282790
Joerg Sonnenberger [Thu, 29 Sep 2016 21:45:45 +0000 (21:45 +0000)]
GC HAVE_PRINTF_A, HAVE_STD_ISINF_IN_CMATH and HAVE_STD_ISNAN_IN_CMATH
llvm-svn: 282789
Joerg Sonnenberger [Thu, 29 Sep 2016 21:44:25 +0000 (21:44 +0000)]
HAVE_DIA_SDK is directly checked by value, so define it as 0/1.
llvm-svn: 282788
Sean Callanan [Thu, 29 Sep 2016 21:43:31 +0000 (21:43 +0000)]
Fixed TestObjCMethods2/i386 by separating out the portions that require ObjC V2.
llvm-svn: 282787
Joerg Sonnenberger [Thu, 29 Sep 2016 21:42:36 +0000 (21:42 +0000)]
Move _chsize_s and _Unwind_Backtrace to the correct position.
llvm-svn: 282786
Joerg Sonnenberger [Thu, 29 Sep 2016 21:39:53 +0000 (21:39 +0000)]
Fix HAVE_POSIX_FALLOCATE entry.
llvm-svn: 282785
Joerg Sonnenberger [Thu, 29 Sep 2016 21:39:11 +0000 (21:39 +0000)]
Fix comments to match autoconf.
llvm-svn: 282784
Joerg Sonnenberger [Thu, 29 Sep 2016 21:37:46 +0000 (21:37 +0000)]
GC HAVE_DLD.
llvm-svn: 282783
Joerg Sonnenberger [Thu, 29 Sep 2016 21:35:27 +0000 (21:35 +0000)]
GC HAVE_DYLD, HAVE_PRELOADED_SYMBOLS and HAVE_SHL_LOAD
llvm-svn: 282782
Joerg Sonnenberger [Thu, 29 Sep 2016 21:33:53 +0000 (21:33 +0000)]
Sort mallctl, fix comment for mallinfo.
llvm-svn: 282781
Joerg Sonnenberger [Thu, 29 Sep 2016 21:32:30 +0000 (21:32 +0000)]
GC HAVE_DLERROR.
llvm-svn: 282780
Joerg Sonnenberger [Thu, 29 Sep 2016 21:31:54 +0000 (21:31 +0000)]
GC srand48/lrand48/drand48.
llvm-svn: 282779
Joerg Sonnenberger [Thu, 29 Sep 2016 21:30:23 +0000 (21:30 +0000)]
GC HAVE_BCOPY.
llvm-svn: 282778
Richard Smith [Thu, 29 Sep 2016 21:30:12 +0000 (21:30 +0000)]
Switch to a different workaround for unimplementability of P0145R3 in MS ABIs.
Instead of ignoring the evaluation order rule, ignore the "destroy parameters
in reverse construction order" rule for the small number of problematic cases.
This only causes incorrect behavior in the rare case where both parameters to
an overloaded operator <<, >>, ->*, &&, ||, or comma are of class type with
non-trivial destructor, and the program is depending on those parameters being
destroyed in reverse construction order.
We could do a little better here by reversing the order of parameter
destruction for those functions (and reversing the argument evaluation order
for all direct calls, not just those with operator syntax), but that is not a
complete solution to the problem, as the same situation can be reached by an
indirect function call.
Approach reviewed off-line by rnk.
llvm-svn: 282777
Joerg Sonnenberger [Thu, 29 Sep 2016 21:29:57 +0000 (21:29 +0000)]
GC opendir/readdir/closedir checks.
llvm-svn: 282776
Joerg Sonnenberger [Thu, 29 Sep 2016 21:28:37 +0000 (21:28 +0000)]
GC HAVE_SETJMP_H and checks for the content of setjmp.h.
llvm-svn: 282775
Enrico Granata [Thu, 29 Sep 2016 21:20:56 +0000 (21:20 +0000)]
This test will not work in i386 mode because we don't create interesting types from the ObjC runtime
"Fixes" rdar://
28501616
llvm-svn: 282774
Joerg Sonnenberger [Thu, 29 Sep 2016 21:19:43 +0000 (21:19 +0000)]
Sort futimes correctly.
llvm-svn: 282773
Joerg Sonnenberger [Thu, 29 Sep 2016 21:18:05 +0000 (21:18 +0000)]
Check for sysconf(3).
llvm-svn: 282772
Joerg Sonnenberger [Thu, 29 Sep 2016 21:15:57 +0000 (21:15 +0000)]
GC HAVE_MACH_O_DYLD_H.
llvm-svn: 282771
Joerg Sonnenberger [Thu, 29 Sep 2016 21:15:23 +0000 (21:15 +0000)]
GC HAVE_UTIME_H.
llvm-svn: 282770
Joerg Sonnenberger [Thu, 29 Sep 2016 21:14:34 +0000 (21:14 +0000)]
GC HAVE_LIMITS_H.
llvm-svn: 282769
Joerg Sonnenberger [Thu, 29 Sep 2016 21:10:38 +0000 (21:10 +0000)]
Make HAVE_DECL_ARC4RANDOM always defined. Sort the entry correctly.
llvm-svn: 282768
Joerg Sonnenberger [Thu, 29 Sep 2016 21:07:57 +0000 (21:07 +0000)]
HAVE_UNWIND_BACKTRACE -> HAVE__UNWIND_BACKTRACE
Check for existance and not truth value.
llvm-svn: 282767
Kevin Enderby [Thu, 29 Sep 2016 21:07:29 +0000 (21:07 +0000)]
Next set of additional error checks for invalid Mach-O files for the
load command that uses the MachO::entry_point_command type
but not used in llvm libObject code but used in llvm tool code.
This includes just the LC_MAIN load command.
llvm-svn: 282766
Joerg Sonnenberger [Thu, 29 Sep 2016 21:00:53 +0000 (21:00 +0000)]
Remove LLVM_CONFIGTIME, left-overs from when reproducable builds where
not the default.
llvm-svn: 282765
Rui Ueyama [Thu, 29 Sep 2016 21:00:26 +0000 (21:00 +0000)]
Rename "void check(Error)".
We have a few "check" functions in Error.h. All of them are to
check for an error and strip an error object if there was no error,
except "void check(Error E)", which doesn't return anything.
This patch renames it and moves it to the .cpp file where it is used.
llvm-svn: 282764
Rui Ueyama [Thu, 29 Sep 2016 21:00:23 +0000 (21:00 +0000)]
Rename warning -> warn.
It's better because it's a verb.
llvm-svn: 282763
Joerg Sonnenberger [Thu, 29 Sep 2016 20:59:48 +0000 (20:59 +0000)]
Add FE_ALL_EXCEPT and FE_INEXACT detection macros forgotten on the cmake
side of configuration.
llvm-svn: 282762
Adrian McCarthy [Thu, 29 Sep 2016 20:28:25 +0000 (20:28 +0000)]
Clamp version number in S_COMPILE3 to avoid overflowing 16-bit field.
llvm-svn: 282761
Rafael Espindola [Thu, 29 Sep 2016 20:23:07 +0000 (20:23 +0000)]
Use > and not >> to create the script.
llvm-svn: 282760
Adam Nemet [Thu, 29 Sep 2016 20:17:37 +0000 (20:17 +0000)]
Revert "[LAA, LV] Port to new streaming interface for opt remarks. Update LV"
This reverts commit r282758.
There are some clang failures I haven't seen.
llvm-svn: 282759
Adam Nemet [Thu, 29 Sep 2016 20:12:18 +0000 (20:12 +0000)]
[LAA, LV] Port to new streaming interface for opt remarks. Update LV
OptimizationRemarkAnalysis directly takes the role of the report that is
generated by LAA.
Then we need the magic to be able to turn an LAA remark into an LV
remark. This is done via a new OptimizationRemark ctor.
llvm-svn: 282758
Douglas Katzman [Thu, 29 Sep 2016 19:59:12 +0000 (19:59 +0000)]
[Myriad] Silently ignore -fno-split-dwarf-inlining
llvm-svn: 282757
Quentin Colombet [Thu, 29 Sep 2016 19:51:46 +0000 (19:51 +0000)]
[RegisterBankInfo] Change the default mapping for Copy and PHI.
Instead of producing a mapping for all the operands, we only generate a
mapping for the definition. Indeed, the other operands are not
constrained by the instruction and thus, we should leave the choice to
the actual definition to do the right thing.
In pratice this is almost NFC, but with one advantage. We will have only
one instance of OperandsMapping for each copy and phi that map to one
register bank instead of one different instance for each different
number of operands for each copy and phi.
llvm-svn: 282756
Douglas Katzman [Thu, 29 Sep 2016 19:47:58 +0000 (19:47 +0000)]
Generalize ArgList::AddAllArgs more
llvm-svn: 282755
Enrico Granata [Thu, 29 Sep 2016 19:46:48 +0000 (19:46 +0000)]
Fix an issue where, in i386 mode, the wrong values were being copied into the pair object for a single-entry NSDictionary
Fixes rdar://
28502335
llvm-svn: 282754
Kostya Serebryany [Thu, 29 Sep 2016 19:06:09 +0000 (19:06 +0000)]
[sanitizer-coverage] a bit more docs
llvm-svn: 282752
Kostya Serebryany [Thu, 29 Sep 2016 18:58:17 +0000 (18:58 +0000)]
[sanitizer-coverage] more docs
llvm-svn: 282751
Rafael Espindola [Thu, 29 Sep 2016 18:50:34 +0000 (18:50 +0000)]
Don't error if we can't put the header in a PT_LOAD.
If there is not sufficient address space, just give up and don't put
the header in the PT_LOAD.
This matches bfd behaviour and I found at least one script that
depends on having a section at address 0.
llvm-svn: 282750
Kostya Serebryany [Thu, 29 Sep 2016 18:34:40 +0000 (18:34 +0000)]
[sanitize-coverage] doc typo
llvm-svn: 282749
Tobias Grosser [Thu, 29 Sep 2016 18:17:30 +0000 (18:17 +0000)]
www: Add Loopy publication
llvm-svn: 282747
Adam Nemet [Thu, 29 Sep 2016 18:04:47 +0000 (18:04 +0000)]
[LV] Port OptimizationRemarkAnalysisFPCommute and
OptimizationRemarkAnalysisAliasing to new streaming API for opt remarks
llvm-svn: 282742
Sean Callanan [Thu, 29 Sep 2016 17:57:33 +0000 (17:57 +0000)]
To fix TestObjCMethods2/i386, allowed messaging nil ObjC objects as in x86_64.
llvm-svn: 282741
Adam Nemet [Thu, 29 Sep 2016 17:55:13 +0000 (17:55 +0000)]
[LV] Convert processLoop to new streaming API for opt remarks
llvm-svn: 282740
Reid Kleckner [Thu, 29 Sep 2016 17:55:01 +0000 (17:55 +0000)]
[codeview] Use character types for all byte-sized integer types
The VS debugger doesn't appear to understand the 0x68 or 0x69 type
indices, which were probably intended for use on a platform where a C
'int' is 8 bits. So, use the character types instead. Clang was already
using the character types because '[u]int8_t' is usually defined in
terms of 'char'.
See the Rust issue for screenshots of what VS does:
https://github.com/rust-lang/rust/issues/36646
Fixes PR30552
llvm-svn: 282739
Sanjay Patel [Thu, 29 Sep 2016 17:48:19 +0000 (17:48 +0000)]
fix formatting; NFC
llvm-svn: 282737
Kevin Enderby [Thu, 29 Sep 2016 17:45:23 +0000 (17:45 +0000)]
Next set of additional error checks for invalid Mach-O files for the
load command that uses the Mach::source_version_command type
but not used in llvm libObject code but used in llvm tool code.
This includes just the LC_SOURCE_VERSION load command.
llvm-svn: 282736
Kostya Serebryany [Thu, 29 Sep 2016 17:43:24 +0000 (17:43 +0000)]
[sanitizer-coverage/libFuzzer] make the guards for trace-pc 32-bit; create one array of guards per function, instead of one guard per BB. reorganize the code so that trace-pc-guard does not create unneeded globals
llvm-svn: 282735
Piotr Padlewski [Thu, 29 Sep 2016 17:32:07 +0000 (17:32 +0000)]
[thinlto] Add cold-callsite import heuristic
Summary:
Not tunned up heuristic, but with this small heuristic there is about
+0.10% improvement on SPEC 2006
Reviewers: tejohnson, mehdi_amini, eraman
Subscribers: mehdi_amini, llvm-commits
Differential Revision: https://reviews.llvm.org/D24940
llvm-svn: 282733
Douglas Katzman [Thu, 29 Sep 2016 17:26:12 +0000 (17:26 +0000)]
[X86] Avoid "unused" warnings if no asserts
llvm-svn: 282732
Adam Nemet [Thu, 29 Sep 2016 17:25:00 +0000 (17:25 +0000)]
[LV] Move static createMissedAnalysis from anonymous to global namespace
This is an attempt to fix a windows bot.
llvm-svn: 282730
Adam Nemet [Thu, 29 Sep 2016 17:15:48 +0000 (17:15 +0000)]
[LV] Convert CostModel to use the new streaming opt remark API
Here we can already remove the member function emitAnalysis.
llvm-svn: 282729
Adam Nemet [Thu, 29 Sep 2016 17:05:35 +0000 (17:05 +0000)]
[LV] Split most of createMissedAnalysis into a static function. NFC
This will be shared between Legality and CostModel.
llvm-svn: 282728
Mike Aizatsky [Thu, 29 Sep 2016 16:59:04 +0000 (16:59 +0000)]
[sancov] removing html report option test, the option doesn't exist anymore
llvm-svn: 282727
Adam Nemet [Thu, 29 Sep 2016 16:49:42 +0000 (16:49 +0000)]
[LV] Convert all but one opt remark in Legality to new streaming interface
The last one remaining after which emitAnalysis can be removed is when
we convert the LAA's report to a vectorization report. This requires
converting LAA to the new interface first.
llvm-svn: 282726
Rafael Espindola [Thu, 29 Sep 2016 16:29:55 +0000 (16:29 +0000)]
Simplify. NFC.
llvm-svn: 282725
Rafael Espindola [Thu, 29 Sep 2016 16:24:17 +0000 (16:24 +0000)]
Don't handle binary output differently.
It is not clear if we need a different layout, so for now handle them
like regular ELF output.
llvm-svn: 282724
Adam Nemet [Thu, 29 Sep 2016 16:23:12 +0000 (16:23 +0000)]
[LV] Convert emitRemark to new opt remark streaming interface
Also renamed the function to emitRemarkWithHints to better reflect what
the function actually does.
llvm-svn: 282723
Adam Nemet [Thu, 29 Sep 2016 16:01:34 +0000 (16:01 +0000)]
Remove unnecessary explicit
llvm-svn: 282722
Kostya Serebryany [Thu, 29 Sep 2016 15:51:28 +0000 (15:51 +0000)]
[libFuzzer] initialize ValueBitMap::NumBits
llvm-svn: 282721
Simon Pilgrim [Thu, 29 Sep 2016 15:25:48 +0000 (15:25 +0000)]
[X86][SSE] Added common helper for shuffle mask constant pool decodes.
The shuffle mask decodes have a large amount of repeated code extracting/splitting mask values from Constant data.
This patch pulls all of this duplicated code into a single helper function to identify undef elements and combine/split constant integer data into the requested shuffle mask elements.
Updated PSHUFB/VPERMIL/VPERMIL2/VPPERM decoders to use it (VPERMV/VPERMV3 could be converted as well in the future).
llvm-svn: 282720
Simon Pilgrim [Thu, 29 Sep 2016 15:10:09 +0000 (15:10 +0000)]
[X86] Add explicit test triple to make windows/msvc builds happier
llvm-svn: 282719