summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clean all the mess around KMP_USE_FUTEX and kmp_lock.hPaul Osmialowski2016-05-165-13/+16
| | | | | | | | | | | | | | | | | | KMP_USE_FUTEX preprocessor definition defined in kmp_lock.h is used inconsequently throughout LLVM libomp code. * some .c files that use this define do not include kmp_lock.h file, in effect guarded part of code are never compiled * some places in code use architecture-depending preprocessor logic expressions which effectively disable use of Futex for AArch64 architecture, all these places should use '#if KMP_USE_FUTEX' instead to avoid any further confusions * some places use KMP_HAS_FUTEX which is nowhere defined, KMP_USE_FUTEX should be used instead Differential Revision: http://reviews.llvm.org/D19629 llvm-svn: 269642
* [mips][ias] Fix R_MICROMIPS_GOT16 evaluation and eliminate symbol for ↵Daniel Sanders2016-05-163-8/+84
| | | | | | | | | | | | | | | | | | | R_MICROMIPS_(GOT|HI|LO)16 Summary: The failure r269410 worked around turned out to be caused by an incorrect evaluation of R_MICROMIPS_GOT16 which then caused the GOT entries to be incorrect. This patch fixes the evaluation and reverts r269410. Reviewers: sdardis, vkalintiris, rafael Subscribers: rafael, dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D20242 llvm-svn: 269641
* Remove Mutex from NativeProcessLinuxPavel Labath2016-05-162-20/+1
| | | | | | | | NPL now assumes it is running from a single thread now, so its thread-safety is untested anyway (and if that assumption is broken, we'll have bigger problems (due to ptrace restrictions) than a couple of missing mutexes). llvm-svn: 269640
* [mips][ias] EF_MIPS_MICROMIPS should iff microMIPS code was emitted.Daniel Sanders2016-05-165-6/+34
| | | | | | | | | | | | | | | Summary: This fixes PR27682. Additionally, '.set micromips' by itself is not sufficient to raise the EF_MIPS_MICROMIPS flag. It is also necessary to emit a microMIPS instruction. This has also been fixed. Reviewers: sdardis, vkalintiris, rafael Subscribers: rafael, dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D20214 llvm-svn: 269639
* ThinLTO: fix non-determinism in bitcode writingMehdi Amini2016-05-161-1/+8
| | | | | | | | Calls are initialized from a DenseMap. We can sort them using the value id to recover some determinism during serialization. From: mehdi_amini <mehdi_amini@91177308-0d34-0410-b5e6-96231b3b80d8> llvm-svn: 269638
* Revert "ThinLTO: fix non-determinism in bitcode writing"Mehdi Amini2016-05-161-7/+1
| | | | | | | This reverts commit r269634, bots are broken. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 269637
* [mips] Addition of a third operand to the instructions [d]div, [d]divuZoran Jovanovic2016-05-1610-54/+228
| | | | | | | | | Author: obucina Reviewers: dsanders Adds support for third operand for [D]DIV[U] instructions. Additional test for case when destination reg is zero register Differential Revision: http://reviews.llvm.org/D16888 llvm-svn: 269636
* ThinLTO: fix another non-determinism in bitcode writingMehdi Amini2016-05-161-2/+9
| | | | | | | | GlobalVars Refs are initialized from a DenseSet. We can sort them using the value id to recover some determinism during serialization. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 269635
* ThinLTO: fix non-determinism in bitcode writingMehdi Amini2016-05-161-1/+7
| | | | | | | | Calls are initialized from a DenseMap. We can sort them using the value id to recover some determinism during serialization. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 269634
* [asan] Fix asan initialization failure with newer (2.23+) glibc in use.Maxim Ostapenko2016-05-161-18/+24
| | | | | | | | | | This patch tries to fix https://llvm.org/bugs/show_bug.cgi?id=27310 by using the same hack for malloc as we use for calloc: allocate corresponding memory from internal buffer when ASan is not initialized. This way we could avoid nasty '==6987==AddressSanitizer CHECK failed: ../../../../libsanitizer/asan/asan_rtl.cc:556 "((!asan_init_is_running && "ASan init calls itself!")) != (0)" (0x0, 0x0)' errors in environments with glibc 2.23+ in use, where _dl_signal_error, called from dlsym for undefined symbols calls malloc in order to get a buffer for error message. Differential Revision: http://reviews.llvm.org/D20235 llvm-svn: 269633
* [X86] Add typecasts to remove most assumptions about what __m128i/__m256i is ↵Craig Topper2016-05-1610-288/+289
| | | | | | defined as. Add similar typecasts for the fp types as well. llvm-svn: 269632
* [AVX512] Add typecasts to some intrinsics to avoid doing operations on the ↵Craig Topper2016-05-162-18/+18
| | | | | | __m512/__m512i/__m512d types. llvm-svn: 269631
* CodeGen: convert some const char * to StringRefSaleem Abdulrasool2016-05-161-33/+21
| | | | | | Convert some use of const char * to StringRef. NFC. llvm-svn: 269630
* ThinLTO: fix non-determinism in bitcode writingMehdi Amini2016-05-161-1/+7
| | | | | | | | Refs are initialized from a DenseSet. We can sort them using the value id to recover some determinism during serialization. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 269629
* test: remove use of undefined variablesSaleem Abdulrasool2016-05-161-2/+1
| | | | | | | | The variables referenced in the print message are not defined. Simply state that the requisite script is not found. Correct grammar to indicate that the tests are rather likely to fail rather than unlikely to fail. llvm-svn: 269628
* test: add missing splatSaleem Abdulrasool2016-05-161-1/+1
| | | | | | | | The parameter here is a list, not a string. Ensure that the we splat the list into arguments prior to invoke os.path.join. This would previously fail with a `startswith` is not a member of `list`. llvm-svn: 269627
* test: add missing parameterSaleem Abdulrasool2016-05-161-1/+1
| | | | | | | Add the missing required parameter to the function. This permits tests to get a bit further before failing. llvm-svn: 269626
* Make this SourceLocation getter const LLVM_READONLY like others in the same ↵Nick Lewycky2016-05-161-1/+1
| | | | | | file. llvm-svn: 269625
* [PM] RewriterStatepointForGC: add missing dependency.Davide Italiano2016-05-161-0/+1
| | | | llvm-svn: 269624
* Simple visualization of expressionsMike Spertus2016-05-161-0/+3
| | | | | | While more could be done, showing the type is a lot better than what is there now. llvm-svn: 269623
* [AVX512] Use correct types in test case.Craig Topper2016-05-161-2/+2
| | | | llvm-svn: 269622
* [X86] Remove bad cast from the 'int' return type of ↵Craig Topper2016-05-161-4/+2
| | | | | | __builtin_ia32_kortestchi to '__mask16' before return in an 'int' intrinsic. llvm-svn: 269621
* [AVX512] Fix bad typecasts on return value for 512-bit integer byte/word ↵Craig Topper2016-05-161-8/+8
| | | | | | compare builtins. llvm-svn: 269620
* [X86] Add immediate range checks for many of the builtins.Craig Topper2016-05-152-48/+250
| | | | llvm-svn: 269619
* [AVX512] Immediate argument for PALIGNR builtin should be an ICE./Craig Topper2016-05-151-3/+3
| | | | llvm-svn: 269618
* [AVX512] Add intrinsics for 512-bit insertf32x8/insertf32x4/inserti32x4.Craig Topper2016-05-155-0/+129
| | | | llvm-svn: 269617
* [AVX512] Fix mask argument type for insertf32x4/inserti32x4.Craig Topper2016-05-152-12/+12
| | | | llvm-svn: 269616
* [X86][SSE] Simplify zero'th index extract element matchingSimon Pilgrim2016-05-151-2/+3
| | | | llvm-svn: 269615
* [X86][SSE] Removed duplicate variables. NFCI.Simon Pilgrim2016-05-151-18/+10
| | | | | | Removed duplicate getOperand / getSimpleValueType calls. llvm-svn: 269614
* [AVX512] Mark some integer builtin arguments that go to immediates in final ↵Craig Topper2016-05-152-20/+16
| | | | | | instructions as an ICE. llvm-svn: 269613
* [AVX512] Move unary negations to the left side of typecasts to specific ↵Craig Topper2016-05-151-48/+48
| | | | | | vector type. The __m128/__m256/__m512 types should be treated more opaquely and not have any operations performed on them. llvm-svn: 269612
* [AVX512] Use the correct mask type in an intrinsic.Craig Topper2016-05-151-3/+3
| | | | llvm-svn: 269611
* [AVX512] Fix an intrinsic that was passing -2 as a mask instead of -1.Craig Topper2016-05-151-1/+1
| | | | llvm-svn: 269610
* [AVX512] Change 512-bit insertf32x4/inserti32x4 builtin name to match gcc.Craig Topper2016-05-151-2/+2
| | | | | | Clang doesn't currently use this builtin. Will fix that soon. llvm-svn: 269609
* [profile] Header file cleanup /NFCXinliang David Li2016-05-152-47/+2
| | | | | | | | Remove runtime specific decls from the common header. This change also syncs up InstrProfData.inc between llvm and compiler_rt. llvm-svn: 269608
* Sort includes, and don't look into system headers.Davide Italiano2016-05-151-1/+1
| | | | llvm-svn: 269607
* Remove unused include. NFC.Davide Italiano2016-05-151-1/+0
| | | | llvm-svn: 269606
* [LTO] Add the ability to specify a subset of passes to run.Davide Italiano2016-05-156-4/+97
| | | | | | Differential Revision: http://reviews.llvm.org/D20267 llvm-svn: 269605
* [X86][SSE] Added constant index tests for 128-bit integer vector typesSimon Pilgrim2016-05-151-0/+136
| | | | llvm-svn: 269604
* [X86][SSE] Added variable index tests for 128-bit integer vector typesSimon Pilgrim2016-05-151-0/+66
| | | | llvm-svn: 269603
* Fixed typo in testSimon Pilgrim2016-05-151-8/+16
| | | | llvm-svn: 269602
* add test to show missing optimizationSanjay Patel2016-05-151-0/+37
| | | | llvm-svn: 269601
* [X86][SSE] Added extra extractelement testsSimon Pilgrim2016-05-151-29/+288
| | | | | | | | | | 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
* Symbol: fix -Wcovered-switch warningSaleem Abdulrasool2016-05-151-101/+107
| | | | | | | Add the Float128 type to the enumeration. Float128 is covered under IEEE754 as a quad precision floating point value. llvm-svn: 269599
* Fix a few -Wformat-pedantic warningsSaleem Abdulrasool2016-05-152-3/+3
| | | | | | Clean up some newly introduced -Wformat-pedantic warnings (%p expects a void *). llvm-svn: 269598
* [ELF][MIPS] Rename R_MIPS_GOT_xxx relocation expression kindsSimon Atanasyan2016-05-154-11/+12
| | | | | | | | | 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
* regenerate checksSanjay Patel2016-05-151-10/+16
| | | | llvm-svn: 269596
* [X86][SSE] Regenerate extractelement testsSimon Pilgrim2016-05-151-22/+98
| | | | | | Added SSE2/AVX2 target tests llvm-svn: 269595
* [CostModel][X86] Added scalar bitreverse testsSimon Pilgrim2016-05-151-0/+51
| | | | llvm-svn: 269594
* Reorganize the cpio archiver as CpioFile class. NFC.Rui Ueyama2016-05-155-67/+81
| | | | | | This code separates the code to create cpio archive from the driver. llvm-svn: 269593
OpenPOWER on IntegriCloud