summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Account for calling convention specifiers in function definitions in IR test ↵David Blaikie2015-06-2981-366/+366
| | | | | | | | | | | | | cases Several tests wouldn't pass when executed on an armv7a_pc_linux triple due to the non-default arm_aapcs calling convention produced on the function definitions in the IR output. Account for this with the application of a little regex. Patch by Ying Yi. llvm-svn: 240971
* Fix OMPT state maintenance for barriers and missing init of implicit task id.Jonathan Peyton2015-06-292-7/+18
| | | | | | | | | | | | | | | | | | Fix OMPT support for barriers so that state changes occur even if OMPT_TRACE turned off. These state changes are needed by performance tools that use callbacks for either ompt_event_wait_barrier_begin or ompt_event_wait_barrier_end. Change ifdef flag to OMPT_BLAME for callbacks ompt_event_wait_barrier_begin or ompt_event_wait_barrier_end rather than OMPT_TRACE -- they were misclassified. Without this patch, when the runtime is compiled with LIBOMP_OMPT_SUPPORT=true, LIBOMP_OMPT_BLAME=true, and LIBOMP_OMPT_TRACE=false, and a callback is registered for either ompt_event_wait_barrier_begin or ompt_event_wait_barrier_end, then an assertion will trip. Fix the scoping of one OMPT_TRACE ifdef, which should not have surrounded an update of an OMPT state. Add a missing initialization of an OMPT task id for an implicit task. Patch by John Mellor-Crummey Differential Revision: http://reviews.llvm.org/D10759 llvm-svn: 240970
* Make __has_extension(assume_nonnull) always true.Douglas Gregor2015-06-292-0/+5
| | | | llvm-svn: 240969
* [Modules] Test lock file removed on signalBen Langmuir2015-06-293-0/+15
| | | | | | | | For r240967. rdar://problem/21512307 llvm-svn: 240968
* Clean up unique lock files on signal and always release the lockBen Langmuir2015-06-291-1/+40
| | | | | | | | | | | | | | Make sure to remove the unique lock file, which is what the .lock symlink points to, if there is a signal while the lock is held. This will release the lock, since the symlink will point to nothing (already tested in unit tests). For good measure, also clean up the unique lock file if there is an error or signal before the lock is acquired. I will add a clang test. rdar://problem/21512307 llvm-svn: 240967
* MIR Serialization: Serialize the register mask machine operands.Alex Lorenz2015-06-295-3/+134
| | | | | | | | | | | | | | | | | This commit implements serialization of the register mask machine operands. This commit serializes only the call preserved register masks that are defined by a target, it doesn't serialize arbitrary register masks. This commit also extends the TargetRegisterInfo class and TableGen so that the users of TRI can get the list of all the call preserved register masks and their names. Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10673 llvm-svn: 240966
* sanitizer_common: fix and re-enable signal_segv_handler testDmitry Vyukov2015-06-291-2/+3
| | | | | | | | | struct sigaction was not initialized. As the result if SA_RESETHAND is set in sa_flags, then the handler is reset after first invocation leading to crash. Initialize struct sigaction to zero. Reviewed in http://reviews.llvm.org/D10803 llvm-svn: 240965
* Mark test_sb_api_listener_event_process_state as flakeyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240964
* Remove unnecessary include.Adrian Prantl2015-06-291-1/+0
| | | | llvm-svn: 240963
* Mark AttachResumeTestCase as flakyTamas Berghammer2015-06-291-0/+1
| | | | llvm-svn: 240962
* [SymbolSize] Skip sorting by index, just assign by index.Benjamin Kramer2015-06-291-7/+3
| | | | | | No functional change intended. llvm-svn: 240961
* [libsanitizer] Replace ReadBinaryName() with ReadBinaryNameCached(),Alexander Potapenko2015-06-294-3/+16
| | | | | | | | | which caches the executable name upon the first invocation. This is necessary because Google Chrome (and potentially other programs) restrict the access to /proc/self/exe on linux. This change should fix https://code.google.com/p/chromium/issues/detail?id=502974 llvm-svn: 240960
* clang-format: Add option to break after definition return type for top-level ↵Birunthan Mohanathas2015-06-296-25/+85
| | | | | | | | functions only Differential Revision: http://reviews.llvm.org/D10774 llvm-svn: 240959
* Correct failure decorator in test_fd_leak_multitargetEd Maste2015-06-291-1/+1
| | | | | | | | | | | | | | The random module in Python 2.7.8 and later leaks /dev/[u]random into children. The test is expected to fail, not be flakey. This will be fixed in Python 2.7.10 for some operating systems, but not all e.g. OS X 10.4. llvm.org/pr23983 bugs.freebsd.org/197376 bugs.python.org/issue23458 llvm-svn: 240958
* clang-format: Adjust Mozilla style defaultsBirunthan Mohanathas2015-06-291-3/+5
| | | | | | | | Summary: This makes the Mozilla style defaults more compliant with the Mozilla style guide. A few options were removed in order to use the LLVM style defaults. Differential Revision: http://reviews.llvm.org/D10771 llvm-svn: 240957
* Upgrade JIT listeners for changes in the libObject API.Benjamin Kramer2015-06-292-22/+19
| | | | llvm-svn: 240956
* Add first support to delinearize A[t%2][i][j]Tobias Grosser2015-06-292-4/+130
| | | | | | | This is very preliminary support, but it seems to work for the most common case. When observing more/different test cases, we can work on generalizing this. llvm-svn: 240955
* Fix delinearization after it's move to ScalarEvoltionTobias Grosser2015-06-291-5/+4
| | | | llvm-svn: 240954
* COFF: Handle mangled entry symbol name.Rui Ueyama2015-06-292-0/+43
| | | | | | | | | | Compilers recognize "main" function and don't mangle its name. But if you use a different function as a user-defined entry name, and if you didn't define that function with extern C, your entry point function name is mangled. And the linker has to be able to find that. This is relatively rare but can happen. llvm-svn: 240953
* Move delinearization from SCEVAddRecExpr to ScalarEvolutionTobias Grosser2015-06-295-99/+105
| | | | | | | | | | The expressions we delinearize do not necessarily have to have a SCEVAddRecExpr at the outermost level. At this moment, the additional flexibility is not exploited in LLVM itself, but in Polly we will soon soonish use this functionality. For LLVM, this change should not affect existing functionality (which is covered by test/Analysis/Delinearization/) llvm-svn: 240952
* Update for llvm api change.Rafael Espindola2015-06-291-1/+5
| | | | llvm-svn: 240951
* Factor out the checking of string tables.Rafael Espindola2015-06-298-38/+67
| | | | | | | | | | This moves the error checking for string tables to getStringTable which returns an ErrorOr<StringRef>. This improves error checking, makes it uniform across all string tables and makes it possible to check them once instead of once per name. llvm-svn: 240950
* tsan: implement suppressions for top frame onlyDmitry Vyukov2015-06-294-13/+83
| | | | | | | | | | The new suppression type is called "race_top" and is matched only against top frame in report stacks. This is required for situations when we want to suppress a race in a "thread pool" or "event loop" implementation. If we simply use "race:ThreadPool::Execute" suppression, that can suppress everything in the program. Reviewed in http://reviews.llvm.org/D10686 llvm-svn: 240949
* COFF: Create an empty file for /pdb.Rui Ueyama2015-06-293-0/+13
| | | | | | | | Most build system depends on existence or time stamp of a file. This patch is to create an empty file for /pdb:<filename> option just to satisfy some build rules. llvm-svn: 240948
* COFF: Fix /export.Rui Ueyama2015-06-293-0/+46
| | | | | | | Mangled dllexported symbols may be defined in a library. If that's the case, we have to read a member file from the library. llvm-svn: 240947
* dosep.py: Add ability to set default test timout based on targetPavel Labath2015-06-291-2/+16
| | | | | | | | | | | | | | | | | Summary: Current default is 10 minutes, which causes the test suite to run very long in case of test timeouts. On local linux, each test completes in under 90 seconds in the slowest configuration (debug build of lldb, using debug clang to build inferiors). I am changing the default to 4m on local targets, while retaining the 10m timeout for remote ones. Reviewers: sivachandra, vharron Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10527 llvm-svn: 240946
* Add a testcase for an invalid file.Rafael Espindola2015-06-292-0/+3
| | | | | | We were already checking this, but had no tests. llvm-svn: 240945
* Convert an assert that can fail into error checking.Rafael Espindola2015-06-293-1/+3
| | | | llvm-svn: 240944
* tsan: fix flaky testDmitry Vyukov2015-06-291-4/+24
| | | | | | See the comment for explanation. llvm-svn: 240943
* Ignore the .svn directory when building swig wrappers (bug #23917)Pavel Labath2015-06-292-0/+6
| | | | llvm-svn: 240942
* [x86][AVX512CD] Add conflict and lzcnt intrinsics in their 512bit versionsAsaf Badouh2015-06-295-0/+200
| | | | | | | | | include tests review http://reviews.llvm.org/D10795 llvm-svn: 240941
* Update for llvm change.Rafael Espindola2015-06-293-9/+10
| | | | llvm-svn: 240940
* Remove Elf_Sym_Iter.Rafael Espindola2015-06-296-189/+124
| | | | | | | | | | | | | | | | | | | It was a fairly broken concept for an ELF only class. An ELF file can have two symbol tables, but they have exactly the same format. There is no concept of a dynamic or a static symbol. Storing this on the iterator also makes us do more work per symbol than necessary. To fetch a name we would: * Find if we had a static or a dynamic symbol. * Look at the corresponding symbol table and find the string table section. * Look at the string table section to fetch its contents. * Compute the name as a substring of the string table. All but the last step can be done per symbol table instead of per symbol. This is a step in that direction. llvm-svn: 240939
* [clang-tidy] Fix false positives in the macro parentheses checkerDaniel Marjamaki2015-06-292-2/+14
| | | | | | | | | | | Summary: There were false positives in C++ code where macro argument was a type. Reviewers: alexfh Differential Revision: http://reviews.llvm.org/D10801 llvm-svn: 240938
* [X86][AVX512BW] Add more intrinsics support:Asaf Badouh2015-06-293-0/+1185
| | | | | | | | | | Blend, abs, packs, adds, subs, avg, max, min, permute. all the intrinsics are covered by tests review: http://reviews.llvm.org/D10799 llvm-svn: 240937
* AVX-512: all forms of SCATTER instruction on SKX,Elena Demikhovsky2015-06-297-32/+567
| | | | | | encoding, intrinsics and tests. llvm-svn: 240936
* Add Support for LLVM_INSTALL_TOOLCHAIN_ONLY (bug #23784)Pavel Labath2015-06-293-15/+21
| | | | | | | | | Support for LLVM_INSTALL_TOOLCHAIN_ONLY is modeled on same functionality from LLVM and Clang CMake files. Patch by: Eugene Zelenko llvm-svn: 240935
* clang-format: Don't indent relative to unary operators (some more).Daniel Jasper2015-06-292-5/+7
| | | | | | | | | | | | | | | | Before: long aaaaaaaa = !aaaa( // break aaaaaa); long aaaaaaaa = !aa.aa( // break aaaaaa); After: long aaaaaaaa = !aaaa( // break aaaaaa); long aaaaaaaa = !aa.aa( // break aaaaaa); llvm-svn: 240934
* fix lldb-server linking on RHEL 6 (bug #23774)Pavel Labath2015-06-291-1/+3
| | | | | | Patch by: Eugene Zelenko llvm-svn: 240933
* [ARM]: Extend -mfpu options for half-precision and vfpv3xdJaved Absar2015-06-291-2/+0
| | | | | | | | removing default label in switch as it results. This is part of earlier commit http://reviews.llvm.org/D1064 Subscribers: llvm-commits llvm-svn: 240932
* This is a comment-only change to test commit accessIgor Breger2015-06-291-1/+1
| | | | llvm-svn: 240931
* [ARM]: Extend -mfpu options for half-precision and vfpv3xdJaved Absar2015-06-296-26/+123
| | | | | | | | | | | | | | | Some of the the permissible ARM -mfpu options, which are supported in GCC, are currently not present in llvm/clang.This patch adds the options: 'neon-fp16', 'vfpv3-fp16', 'vfpv3-d16-fp16', 'vfpv3xd' and 'vfpv3xd-fp16. These are related to half-precision floating-point and single precision. Reviewers: rengolin, ranjeet.singh Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10645 llvm-svn: 240930
* [ARM]: Extend -mfpu options for half-precision and vfpv3xdJaved Absar2015-06-291-0/+55
| | | | | | | | | | | | | | | Some of the the permissible ARM -mfpu options, which are supported in GCC, are currently not present in llvm/clang.This patch adds the options: 'neon-fp16', 'vfpv3-fp16', 'vfpv3-d16-fp16', 'vfpv3xd' and 'vfpv3xd-fp16. These are related to half-precision floating-point and single precision. Reviewers: rengolin, ranjeet.singh Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10764 llvm-svn: 240929
* AVX-512: Implemented AVX-512 FMA intrinsics and tests.Elena Demikhovsky2015-06-295-46/+2378
| | | | | | | | by Igor Breger http://reviews.llvm.org/D10797 llvm-svn: 240928
* [linux] Use cmake to detect support process_vm_readv (bug #23918)Pavel Labath2015-06-295-11/+57
| | | | | | | | | | | | | | | | | | Summary: Some old linux versions do not have process_vm_readv function defined. Even older versions do not have even the __NR_process_vm_readv syscall number. We use cmake to detect these situations and fallback appropriately: in the first case, we can issue the syscall manually, while it the latter case, we need to drop fast memory read support completely. Test Plan: linux test suite passes Reviewers: ovyalov, Eugene.Zelenko Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10727 llvm-svn: 240927
* AVX-512: Implemented missing encoding and intrinsics for FMA instructionsIgor Breger2015-06-299-636/+8675
| | | | | | | | Added tests for DAG lowering ,encoding and intrinsics Differential Revision: http://reviews.llvm.org/D10796 llvm-svn: 240926
* Whitespace.NAKAMURA Takumi2015-06-291-15/+15
| | | | llvm-svn: 240924
* Delete unused variables.Frederic Riss2015-06-291-3/+0
| | | | llvm-svn: 240923
* COFF: Fix logic to find default entry name or subsystem.Rui Ueyama2015-06-2941-263/+294
| | | | | | | | | | | | | | | | | | | The previous logic to find default entry name or subsystem does not seem correct (i.e. was not compatible with MSVC linker). Previously, default entry name was inferred from CRT functions and user-defined entry functions. Subsystem was inferred from CRT functions. Default entry name and subsystem are now inferred based on the following table. Note that we no longer use CRT functions to infer them. Entry name Subsystem main mainCRTStartup console wmain wmainCRTStartup console WinMain WinMainCRTStartup windows wWinMain wWinMainCRTStartup windows llvm-svn: 240922
* [MS ABI] Unify constant and non-constant member pointer conversionDavid Majnemer2015-06-291-138/+51
| | | | | | | | | | | We had two separate paths for member pointer conversion: one which takes a constant and another which takes an arbitrary value. In the latter case, we are permitted to construct arbitrary instructions. It turns out that the bulk of the member pointer conversion is sharable if we construct an artificial IRBuilder. llvm-svn: 240921
OpenPOWER on IntegriCloud