summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sync up InstrProfData.h -- typo fixXinliang David Li2016-01-251-1/+1
| | | | llvm-svn: 258717
* Fix a typoXinliang David Li2016-01-251-1/+1
| | | | llvm-svn: 258716
* Add support to the misc-assert-side-effect check for MSVC-style assert ↵Aaron Ballman2016-01-252-5/+21
| | | | | | macros, which use !! instead of an if statement or a conditional operator. llvm-svn: 258714
* Revert "[sanitizers] extracted process management functions"Mike Aizatsky2016-01-258-150/+30
| | | | | | This reverts commit e5b34d5a2bf4c882bc647dd26a8cea2adc76f63c. llvm-svn: 258713
* LTO via the gold plugin needs to be told about debugger tuning.Paul Robinson2016-01-252-0/+20
| | | | | | Differential Revision: http://reviews.llvm.org/D16094 llvm-svn: 258712
* fixed clang-tidy configMike Aizatsky2016-01-251-1/+1
| | | | llvm-svn: 258711
* [sanitizers] extracted process management functionsMike Aizatsky2016-01-258-30/+150
| | | | | | Differential Revision: http://reviews.llvm.org/D16542 llvm-svn: 258710
* Enable loopreroll to rerool loop with pointer induction variable.Lawrence Hu2016-01-252-50/+204
| | | | | | | | | | | | | | Example: while (buf !=end ) { S += buf[0]; S += buf[1]; buf +=2; }; Differential Revision: http://reviews.llvm.org/D13151 llvm-svn: 258709
* Undo commit 258700 due to missing commit messageLawrence Hu2016-01-252-204/+50
| | | | llvm-svn: 258708
* Fix: added assert condition to EhFrameHeader<ELFT>::assignEhFrame().George Rimar2016-01-251-2/+2
| | | | | | Thanks to David Blaikie who found that issue. llvm-svn: 258707
* [asan] Don't use sysconf(_SC_PAGESIZE) on Android.Evgeniy Stepanov2016-01-251-1/+3
| | | | | | | | | | This is broken in the current (post-MNC) master branch. Use EXEC_PAGESIZE instead, the same as on x86 Linux. This change fixes startup crashes in the existing tests on AOSP master. llvm-svn: 258706
* Reapply commit r25804 with fixMatthew Simpson2016-01-252-24/+244
| | | | | | | | | | | We were hitting an assertion because we were computing smaller type sizes for instructions that cannot be demoted. The fix first determines the instructions that will be demoted, and then applies the smaller type size to only those instructions. This should fix PR26239. llvm-svn: 258705
* Fix TestSourceManager.py on Windows.Adrian McCarthy2016-01-251-7/+6
| | | | | | | | Python 3.5 is picky about writing strings to binary files, so we now open the file in text mode, and we explicitly set the newline mode to avoid re-writing it with CR+LF on Windows (which causes git to think the file had changed). llvm-svn: 258704
* Speculatively revert r258620 as it is the likely culprid of PR26293.Quentin Colombet2016-01-257-775/+124
| | | | llvm-svn: 258703
* Temporary disable broken fuzzer/timeout tests.Ivan Krasin2016-01-251-1/+1
| | | | | | | | Reviewers: kcc Differential Revision: http://reviews.llvm.org/D16543 llvm-svn: 258702
* Add a test showing we can write a vector of floats.Rafael Espindola2016-01-251-0/+21
| | | | llvm-svn: 258701
* Differential Revision: http://reviews.llvm.org/D13151Lawrence Hu2016-01-252-50/+204
| | | | llvm-svn: 258700
* don't repeat function names in documentation comments; NFCSanjay Patel2016-01-251-34/+30
| | | | llvm-svn: 258699
* Pass --wrap=pthread_create to linker for -fsplit-stack.Rafael Espindola2016-01-252-0/+20
| | | | | | | | | | | | | From https://gcc.gnu.org/ml/gcc-patches/2010-09/msg01807.html -fsplit-stack should pass --wrap=pthread_create to linker for -fsplit-stack It is needed to initialize the stack guard. This fixes PR 20148. Patch by H.J Lu! llvm-svn: 258698
* Implement LWG#2385; remove the allocator-aware std::function::assign call. ↵Marshall Clow2016-01-253-4/+11
| | | | | | It was useless, and didn't actually *do anything* with the allocator. Now it's gone. On the off chance that someone is mistakenly calling it, it's only gone in C++1z llvm-svn: 258697
* omp_barrier.c test fixed in order to reliably and faster run on any number ↵Andrey Churbanov2016-01-251-1/+5
| | | | | | of processors llvm-svn: 258695
* [WebAssembly] Fix unbalanced register stack code in the case of late DCE.Dan Gohman2016-01-252-5/+5
| | | | | | | Instructions can be DCE'd after the RegStackify pass. If the instruction which would be the pop for what would be a push is removed, don't use a push. llvm-svn: 258694
* [WebAssembly] Add tests for negative offsets with global variable addresses.Dan Gohman2016-01-251-0/+18
| | | | llvm-svn: 258693
* [WebAssembly] Minor code formatting cleanups. NFC.Dan Gohman2016-01-253-9/+10
| | | | llvm-svn: 258692
* [SelectionDAG] Use the correct return type for memcpy, memmove, and memset.Dan Gohman2016-01-252-4/+4
| | | | | | | | | | | | | When generating calls to memcpy, memmove, and memset, use void* as the return type rather than void, to match the standard signatures for these functions. This has no practical effect for most targets, since the return values of these calls aren't being used anyway, and most calling conventions tolerate this kind of mismatch. However, this change will help support future optimizations to utilize the return value to avoid holding the argument value live across a call. llvm-svn: 258691
* [DemandedBits] Fix computation of demanded bits for ICmpsJames Molloy2016-01-252-3/+12
| | | | | | | | | | The computation of ICmp demanded bits is independent of the individual operand being evaluated. We simply return a mask consisting of the minimum leading zeroes of both operands. We were incorrectly passing "I" to ComputeKnownBits - this should be "UserI->getOperand(0)". In cases where we were evaluating the 1th operand, we were taking the minimum leading zeroes of it and itself. This should fix PR26266. llvm-svn: 258690
* [AVX512] Adding PTESTNMB/D/W/Q instructionMichael Zuckerman2016-01-256-0/+267
| | | | | | Differential Revision: http://reviews.llvm.org/D16520 llvm-svn: 258688
* Reapplying r256836 with a fix for MSVC 14 support.Aaron Ballman2016-01-251-0/+17
| | | | | | | | Enable more strict standards conformance in MSVC for rvalue casting and string literal type conversion to non-const types. Also enables generation of intrinsics for more functions. Patch by Alexander Riccio llvm-svn: 258687
* [AVX512] Adding PTESTMB/W/D/Q instruction Michael Zuckerman2016-01-255-0/+222
| | | | | | Differential Revision: http://reviews.llvm.org/D16519 llvm-svn: 258686
* [LLDB][MIPS] Fix TestPrintStackTraces.pySagar Thakur2016-01-251-0/+4
| | | | | | | | | | | Patch by Nitesh Jain. Summary: The thread_start function in libc doesn't contain any epilogue and prologue instructions. Hence unwinding fail when we are stopped in thread_start. Reviewers: ovyalov, clayborg Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan, jaydeep Differential: reviews.llvm.org/D16136 llvm-svn: 258685
* [LLDB][MIPS] Fix TestExprsChar.pySagar Thakur2016-01-251-0/+1
| | | | | | | | | | | Patch by Nitesh Jain. Summary: When incorrect type used for 'char' then (at least) one of the expression evaluates to incorrect value. Please refer to bug llvm.org/pr23069 Reviewers: ovyalov, clayborg Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan, jaydeep Differential: reviews.llvm.org/D16132 llvm-svn: 258684
* [ARM] Add DSP build attribute and extension targetingBradley Smith2016-01-2512-4/+74
| | | | | | | | This patch was originally committed as r257885, but was reverted due to windows failures. The cause of these failures has been fixed under r258677, hence re-committing the original patch. llvm-svn: 258683
* [ARM] Add new system registers to ARMv8-M Baseline/MainlineBradley Smith2016-01-258-7/+529
| | | | | | | | This patch was originally committed as r257884, but was reverted due to windows failures. The cause of these failures has been fixed under r258677, hence re-committing the original patch. llvm-svn: 258682
* [ARM] Add ARMv8-M security extension instructions to ARMv8-M Baseline/MainlineBradley Smith2016-01-259-3/+188
| | | | | | | | This patch was originally committed as r257883, but was reverted due to windows failures. The cause of these failures has been fixed under r258677, hence re-committing the original patch. llvm-svn: 258681
* [X86][IFMA] adding intrinsics and encoding for multiply and add of unsigned ↵Asaf Badouh2016-01-2510-0/+860
| | | | | | | | | | | 52bit integer VPMADD52LUQ - Packed Multiply of Unsigned 52-bit Integers and Add the Low 52-bit Products to Qword Accumulators VPMADD52HUQ - Packed Multiply of Unsigned 52-bit Unsigned Integers and Add High 52-bit Products to 64-bit Accumulators Differential Revision: http://reviews.llvm.org/D16407 llvm-svn: 258680
* Fix printing of types in initializers with suppressed tags.Benjamin Kramer2016-01-252-1/+14
| | | | | | | | | | | | | | | | | | Tag and specifier printing can be suppressed in Decl::printGroup, but these suppressions leak into the initializers. Thus int *x = ((void *)0), *y = ((void *)0); gets printed as int *x = ((void *)0), *y = ((*)0); And struct { struct Z z; } z = {(struct Z){}}; gets printed as struct { struct Z z; } z = {(){}}; The stops the suppressions from leaking into the initializers. Patch by Nick Sumner! Differential Revision: http://reviews.llvm.org/D16438 llvm-svn: 258679
* [ARM] Add ARMv8.2-A FP16 scalar instructionsOliver Stannard2016-01-2518-6/+1976
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was originally committed as r255762, but reverted as it broke windows bots. Re-commitiing the exact same patch, as the underlying cause was fixed by r258677. ARMv8.2-A adds 16-bit floating point versions of all existing VFP floating-point instructions. This is an optional extension, so all of these instructions require the FeatureFullFP16 subtarget feature. The assembly for these instructions uses S registers (AArch32 does not have H registers), but the instructions have ".f16" type specifiers rather than ".f32" or ".f64". The top 16 bits of each source register are ignored, and the top 16 bits of the destination register are set to zero. These instructions are mostly the same as the 32- and 64-bit versions, but they use coprocessor 9 rather than 10 and 11. Two new instructions, VMOVX and VINS, have been added to allow packing and extracting two 16-bit floats stored in the top and bottom halves of an S register. New fixup kinds have been added for the PC-relative load and store instructions, but no ELF relocations have been added as they have a range of 512 bytes. Differential Revision: http://reviews.llvm.org/D15038 llvm-svn: 258678
* [TableGen] Fix sort order of asm operand classesOliver Stannard2016-01-252-21/+86
| | | | | | | | | | | | | | | | | | | | | | This is a fix for https://llvm.org/bugs/show_bug.cgi?id=22796. The previous implementation of ClassInfo::operator< allowed cycles of classes such that x < y < z < x, meaning that a list of them cannot be correctly sorted, and the sort order could differ with different standard libraries. The original implementation sorted classes by ValueName if they were otherwise equal. This isn't strictly necessary, but some backends seem to accidentally rely on it. If I reverse this comparison I get 8 test failures spread across the AArch64, Mips and X86 backends, so I have left it in until those backends can be fixed. There was one case in the X86 backend where the observable behaviour of the assembler is changed by this patch. This was because some of the memory asm operands were not marked as children of X86MemAsmOperand. Differential Revision: http://reviews.llvm.org/D16141 llvm-svn: 258677
* Silence a -Wparentheses warning; NFC.Junmo Park2016-01-251-2/+2
| | | | llvm-svn: 258676
* AVX1 : Enable vector masked_load/store to AVX1.Igor Breger2016-01-254-747/+872
| | | | | | | | Use AVX1 FP instructions (vmaskmovps/pd) in place of the AVX2 int instructions (vpmaskmovd/q). Differential Revision: http://reviews.llvm.org/D16528 llvm-svn: 258675
* [Sema] Improve constnessDaniel Marjamaki2016-01-251-9/+9
| | | | llvm-svn: 258673
* [ELF] - Symbols from object files that override symbols in DSO are added to ↵George Rimar2016-01-254-2/+71
| | | | | | | | | | | .dynsym table. Main executable did not export symbols that exist both in the main executable and in DSOs before this patch. Symbols from object files that override symbols in DSO should be added to .dynsym table. Differential revision: http://reviews.llvm.org/D16405 llvm-svn: 258672
* [AVX512] [CMPPS ][ CMPPD ] Adding full Comparison Predicate names Michael Zuckerman2016-01-252-0/+222
| | | | | | | | | | | X86AsmParser.cpp is missing full comparison predicate names for CMPPD and CMPPS Instructions. X86AsmParser.cpp defines only the short names of the Comparison predicate that you can find in the following pdf: https://software.intel.com/sites/default/files/managed/07/b7/319433-023.pdf Page 5-61 table 5-3 Differential Revision: http://reviews.llvm.org/D16518 llvm-svn: 258671
* Use of assert instead of llvm_unreachable in ↵George Rimar2016-01-251-1/+1
| | | | | | EhFrameHeader<ELFT>::assignEhFrame(). llvm-svn: 258670
* Allow capture typedefs/type aliases for VLAs in lambdas/captured statements ↵Alexey Bataev2016-01-252-7/+21
| | | | | | | | chain. Previous it was allowed to capture VLAs/types with arrays of runtime bounds only inside the first lambda/capture statement in stack. Patch allows to capture these typedefs implicitly in chains of lambdas/captured statements. llvm-svn: 258669
* Fixed processing of GNU extensions to C99 designated initializersAlexey Bataev2016-01-252-6/+17
| | | | | | Clang did not handles correctly inner parts of arrays/structures initializers in GNU extensions to C99 designated initializers. llvm-svn: 258668
* [llvm-size] Use stderr instead of stdout for error messages.Davide Italiano2016-01-251-2/+2
| | | | | | This matches the behavior of other tools: objdump, readobj etc.. llvm-svn: 258667
* [Object][COFF] Revert r258665 - It doesn't do what I had intended.Lang Hames2016-01-251-1/+1
| | | | | | | I'm discussing the right approach for tracking visibility for COFF symbols on the llvm-dev list. llvm-svn: 258666
* [Object][COFF] Set the generic SF_Exported flag on COFF exported symbols.Lang Hames2016-01-241-1/+1
| | | | | | | | | | | | | | The ORC ObjectLinkingLayer uses this flag during symbol lookup. Failure to set it causes all symbols to behave as if they were non-exported, which has caused failures in the kaleidoscope tutorials on Windows. Raising the flag should un-break the tutorials. No test case yet - none of the existing command line tools for printing symbol tables (llvm-nm, llvm-objdump) show the status of this flag, and I don't want to change the format from these tools without consulting their owners. I'll send an email to the dev-list to figure out the right way forward. llvm-svn: 258665
* [COFF] Simplify SetSectionNameDavid Majnemer2016-01-241-12/+10
| | | | | | | | Consolidate the code which handles string table offsets less than 999999 with the code for offsets less than 9999999. While we are here, simplify the code by not using sprintf to generate the string. llvm-svn: 258664
OpenPOWER on IntegriCloud