Craig Topper
0f7ea93541
[X86] Add immediate range checks for many of the builtins.
...
llvm-svn: 269619
2016-05-15 22:18:00 +00:00
Craig Topper
0ed182d1de
[AVX512] Immediate argument for PALIGNR builtin should be an ICE./
...
llvm-svn: 269618
2016-05-15 22:17:57 +00:00
Craig Topper
dca1f230ae
[AVX512] Add intrinsics for 512-bit insertf32x8/insertf32x4/inserti32x4.
...
llvm-svn: 269617
2016-05-15 21:26:20 +00:00
Craig Topper
726cb506ff
[AVX512] Fix mask argument type for insertf32x4/inserti32x4.
...
llvm-svn: 269616
2016-05-15 21:24:45 +00:00
Simon Pilgrim
2d4bf1042b
[X86][SSE] Simplify zero'th index extract element matching
...
llvm-svn: 269615
2016-05-15 20:22:50 +00:00
Simon Pilgrim
fbe97bc15a
[X86][SSE] Removed duplicate variables. NFCI.
...
Removed duplicate getOperand / getSimpleValueType calls.
llvm-svn: 269614
2016-05-15 20:11:10 +00:00
Craig Topper
79d05c9b3d
[AVX512] Mark some integer builtin arguments that go to immediates in final instructions as an ICE.
...
llvm-svn: 269613
2016-05-15 20:10:06 +00:00
Craig Topper
9864c59c89
[AVX512] Move unary negations to the left side of typecasts to specific vector type. The __m128/__m256/__m512 types should be treated more opaquely and not have any operations performed on them.
...
llvm-svn: 269612
2016-05-15 20:10:03 +00:00
Craig Topper
f32e2fbe0e
[AVX512] Use the correct mask type in an intrinsic.
...
llvm-svn: 269611
2016-05-15 20:10:00 +00:00
Craig Topper
b81d430d3a
[AVX512] Fix an intrinsic that was passing -2 as a mask instead of -1.
...
llvm-svn: 269610
2016-05-15 20:09:58 +00:00
Craig Topper
7e7ab2c8b0
[AVX512] Change 512-bit insertf32x4/inserti32x4 builtin name to match gcc.
...
Clang doesn't currently use this builtin. Will fix that soon.
llvm-svn: 269609
2016-05-15 20:09:34 +00:00
Xinliang David Li
5330049cd4
[profile] Header file cleanup /NFC
...
Remove runtime specific decls from the common header.
This change also syncs up InstrProfData.inc between
llvm and compiler_rt.
llvm-svn: 269608
2016-05-15 20:06:11 +00:00
Davide Italiano
5020d2ade5
Sort includes, and don't look into system headers.
...
llvm-svn: 269607
2016-05-15 19:43:02 +00:00
Davide Italiano
c26f981da2
Remove unused include. NFC.
...
llvm-svn: 269606
2016-05-15 19:36:23 +00:00
Davide Italiano
d26c4a14ca
[LTO] Add the ability to specify a subset of passes to run.
...
Differential Revision: http://reviews.llvm.org/D20267
llvm-svn: 269605
2016-05-15 19:29:38 +00:00
Simon Pilgrim
26fbc75e93
[X86][SSE] Added constant index tests for 128-bit integer vector types
...
llvm-svn: 269604
2016-05-15 19:27:28 +00:00
Simon Pilgrim
73b496e35c
[X86][SSE] Added variable index tests for 128-bit integer vector types
...
llvm-svn: 269603
2016-05-15 19:12:39 +00:00
Simon Pilgrim
91c2839864
Fixed typo in test
...
llvm-svn: 269602
2016-05-15 18:50:22 +00:00
Sanjay Patel
399780f088
add test to show missing optimization
...
llvm-svn: 269601
2016-05-15 18:41:18 +00:00
Simon Pilgrim
5b68a0df04
[X86][SSE] Added extra extractelement tests
...
Added constant index tests for all 256-bit integer vector types (touching lower / upper 128-bits)
Added variable index tests for all 256-bit integer vector types
Added out-of-range index tests for all 256-bit integer vector types
llvm-svn: 269600
2016-05-15 18:22:21 +00:00
Saleem Abdulrasool
f431e683ee
Symbol: fix -Wcovered-switch warning
...
Add the Float128 type to the enumeration. Float128 is covered under IEEE754 as
a quad precision floating point value.
llvm-svn: 269599
2016-05-15 18:18:16 +00:00
Saleem Abdulrasool
abdfc21a8f
Fix a few -Wformat-pedantic warnings
...
Clean up some newly introduced -Wformat-pedantic warnings (%p expects a void *).
llvm-svn: 269598
2016-05-15 18:18:13 +00:00
Simon Atanasyan
4e3a15c9f3
[ELF][MIPS] Rename R_MIPS_GOT_xxx relocation expression kinds
...
New names reflect purpose of corresponding GOT entries better.
Both expression types related to entries allocated in the 'local'
part of MIPS GOT. R_MIPS_GOT_LOCAL_PAGE is for entries contain 'page'
addresses. R_MIPS_GOT_LOCAL is for entries contain 'full' address.
llvm-svn: 269597
2016-05-15 18:13:50 +00:00
Sanjay Patel
ecdd13d788
regenerate checks
...
llvm-svn: 269596
2016-05-15 18:05:10 +00:00
Simon Pilgrim
8fe1b1fd4f
[X86][SSE] Regenerate extractelement tests
...
Added SSE2/AVX2 target tests
llvm-svn: 269595
2016-05-15 18:02:39 +00:00
Simon Pilgrim
6e9898f362
[CostModel][X86] Added scalar bitreverse tests
...
llvm-svn: 269594
2016-05-15 17:40:48 +00:00
Rui Ueyama
fe65877c76
Reorganize the cpio archiver as CpioFile class. NFC.
...
This code separates the code to create cpio archive from the driver.
llvm-svn: 269593
2016-05-15 17:10:23 +00:00
Xinliang David Li
6c7bddb28b
Use __builtin_alloca with __GNUC__
...
llvm-svn: 269592
2016-05-15 16:41:58 +00:00
Benjamin Kramer
a65b610bd2
Move helper classes into anonymous namespaces. NFC.
...
llvm-svn: 269591
2016-05-15 15:18:11 +00:00
Elena Demikhovsky
ee004bc0a2
Vector GEP - fixed a crash on InstSimplify Pass.
...
Vector GEP with mixed (vector and scalar) indices failed on the InstSimplify Pass when all indices are constants.
Differential revision http://reviews.llvm.org/D20149
llvm-svn: 269590
2016-05-15 12:30:25 +00:00
Davide Italiano
e62c54375d
[PM/SCCP] Fix pass dependencies.
...
TargetLibraryInfoWrapperPass is a dependency of
SCCP but it's not listed as such. Chandler pointed
out this is an easy mistake to make which only
surfaces in weird crashes with some flag combinations.
This code will go away anyway at some point in the
future, but as long as it's (still) exercised, try
to make it correct.
llvm-svn: 269589
2016-05-15 08:04:28 +00:00
Mehdi Amini
af52f28d9d
ThinLTOCodeGenerator: fix race condition found using TSAN
...
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 269588
2016-05-15 05:49:47 +00:00
Xinliang David Li
fedb0fd907
Fix FreeBSD build failure
...
llvm-svn: 269587
2016-05-15 04:26:17 +00:00
Xinliang David Li
72616180df
Rename pass name to prepare to new PM porting /NFC
...
llvm-svn: 269586
2016-05-15 01:04:24 +00:00
Asiri Rathnayake
28383a4e03
Disable LIBCXX_ENABLE_ABI_LINKER_SCRIPT for static library builds.
...
This option is geared towards shared library builds and causes static
library builds to fail if not explicitly disabled.
This patch fixes PR27706: https://llvm.org/bugs/show_bug.cgi?id=27706
Thanks rgoodfel@isi.edu for the catch.
llvm-svn: 269585
2016-05-14 23:58:11 +00:00
Mehdi Amini
0fb2488702
Revert "Revert "Revert 220932.": "Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initialize the ManagedStatic mutex""
...
This reverts commit r269577.
Broke NetBSD, waiting for Kamil to investigate
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 269584
2016-05-14 23:44:21 +00:00
Davide Italiano
0b89ade341
[PM] Add newline at the end of the file, for consistency. NFC.
...
llvm-svn: 269583
2016-05-14 23:24:17 +00:00
Davide Italiano
b6ccd6b394
[PM] Refactor cross-registration of AM into an helper.
...
Requested by: Chandler Carruth.
llvm-svn: 269582
2016-05-14 23:21:50 +00:00
Felix Berger
9435f54167
[clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.
...
Reviewers: alexfh, sbenza
Subscribers: etienneb, aaron.ballman, cfe-commits
Differential Revision: http://reviews.llvm.org/D20170
llvm-svn: 269581
2016-05-14 22:43:50 +00:00
Craig Topper
bf8d85a0f3
[AVX512] Make the permd builtins take a 32-bit immediate to match the software spec.
...
llvm-svn: 269580
2016-05-14 21:13:31 +00:00
Craig Topper
258f874bb9
[AVX512] Make the permd intrinsics take a 32-bit immediate to match the software spec.
...
llvm-svn: 269579
2016-05-14 21:13:20 +00:00
Davide Italiano
e7c56c5c4f
[SCCP] Use range-based for loops. NFC.
...
llvm-svn: 269578
2016-05-14 20:59:09 +00:00
Mehdi Amini
c048b6c4cd
Revert "Revert 220932.": "Removing the static initializer in ManagedStatic.cpp by using llvm_call_once to initialize the ManagedStatic mutex"
...
This reverts commit r221331 and reinstate r220932 as discussed in D19271.
Original commit message was:
This patch adds an llvm_call_once which is a wrapper around
std::call_once on platforms where it is available and devoid
of bugs. The patch also migrates the ManagedStatic mutex to
be allocated using llvm_call_once.
These changes are philosophically equivalent to the changes
added in r219638, which were reverted due to a hang on Win32
which was the result of a bug in the Windows implementation
of std::call_once.
Differential Revision: http://reviews.llvm.org/D5922
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 269577
2016-05-14 20:55:52 +00:00
Xinliang David Li
23a66e45ed
[profile] Eliminate dynamic memory allocation for vp writing
...
This is part-3 of the effort to eliminate dependency on
libc allocator in instr profiler runtime. With this change,
the profile dumper is completely free of malloc/calloc.
Value profile instr API implementation is the only remaining
piece with calloc dependency.
llvm-svn: 269576
2016-05-14 20:12:42 +00:00
Oleksiy Vyalov
94854be9e1
Revert r269546 "Added support to the ASTImporter for C++ constructor initializers." as it breaks TestDataFormatterSynthVal.DataFormatterSynthValueTestCase.test_with_run_command_dwarf test - http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/14699
...
llvm-svn: 269575
2016-05-14 19:07:13 +00:00
Saleem Abdulrasool
8df2f49889
ARM: support export directives for Windows
...
It seems that cl will emit the export directives for Windows ARM targets. The
fact that it did this had originally been missed and this functionality was
never implemented. This makes it possible to rely solely on the source code for
indicating what the exported interfaces are and brings us more compatibility
with cl.
llvm-svn: 269574
2016-05-14 18:58:34 +00:00
Chad Rosier
7e8dd51d50
[AArch64] Update local variable names to conform to coding standard. NFC.
...
llvm-svn: 269573
2016-05-14 18:56:28 +00:00
Nick Lewycky
2eeddfb1ef
Warn when a reference is bound to an empty l-value (dereferenced null pointer).
...
llvm-svn: 269572
2016-05-14 17:44:14 +00:00
Daniel Sanders
962b2cda9c
[mips][ias] Two XFAIL's now pass on 32-bit MIPS.
...
llvm-svn: 269571
2016-05-14 16:18:16 +00:00
Craig Topper
77334aa996
[AVX512] Immediate for permd builtins should be an ICE.
...
llvm-svn: 269570
2016-05-14 15:27:13 +00:00