summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update variable name and reuse existing variable. NFC.Rafael Espindola2015-03-231-5/+5
| | | | llvm-svn: 233014
* [AArch64] Add FileCheck that was missing from test in r232967.Chad Rosier2015-03-231-1/+1
| | | | llvm-svn: 233013
* Fix incorrect error handling of call to mbrtowc. This is PR#13759. Leaving ↵Marshall Clow2015-03-231-1/+1
| | | | | | the bug open because (1) I'm not sure that we're correct here, only better than before, and (2) no tests llvm-svn: 233012
* [UBSan] Introduce "ubsan_standalone" library (compiler-rt part).Alexey Samsonov2015-03-232-13/+27
| | | | | | | | | | | | Get rid of "libclang_rt.san" library that used to contain sanitizer_common pieces required by UBSan if it's used in a standalone mode. Instead, build two variants of UBSan runtime: "ubsan" and "ubsan_standalone" (same for "ubsan_cxx" and "ubsan_standalone_cxx"). Later "ubsan" and "ubsan_cxx" libraries will go away, as they will embedded it into corresponding ASan runtimes. llvm-svn: 233011
* [UBSan] Introduce "ubsan_standalone" library (Clang part).Alexey Samsonov2015-03-232-29/+17
| | | | | | | | | | | | Get rid of "libclang_rt.san" library that used to contain sanitizer_common pieces required by UBSan if it's used in a standalone mode. Instead, build two variants of UBSan runtime: "ubsan" and "ubsan_standalone" (same for "ubsan_cxx" and "ubsan_standalone_cxx"). Later "ubsan" and "ubsan_cxx" libraries will go away, as they will embedded it into corresponding ASan runtimes. llvm-svn: 233010
* Re-land: Generate targets for each lit suite.Chris Bieneman2015-03-232-0/+27
| | | | | | | | | | | | | | | | | | | | | Summary: This change makes CMake scan for lit suites and generate a target for each lit test suite. The targets follow the format check-<project>-<suite path>. For example: check-llvm-unit - Runs the LLVM unit tests check-llvm-codegen-arm - Runs the ARM codeine tests Note: These targets are not generated during multi-configuration generators (i.e. Xcode and Visual Studio) because target clutter impacts UI usability. * Also fixed a minor issue that Duncan pointed out to me I was passing the suite to lit twice Reviewers: chandlerc Subscribers: aemerson, llvm-commits Differential Revision: http://reviews.llvm.org/D8380 llvm-svn: 233009
* Raising minimum required CMake version to 2.8.12.2.Chris Bieneman2015-03-235-18/+8
| | | | | | This commit is in reference to the llvm-dev thread: http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/083672.html llvm-svn: 233008
* [modules] Fix an iterator invalidation bug found by the modules selfhost bot.Richard Smith2015-03-231-4/+8
| | | | llvm-svn: 233007
* Make Oveflow tracking more legible (CR feedback from Richard Smith on r232999)David Blaikie2015-03-231-1/+2
| | | | llvm-svn: 233006
* Refactor: Simplify boolean expressions in llvm IRDavid Blaikie2015-03-231-28/+22
| | | | | | | | | | | Simplify boolean expressions using `true` and `false` with `clang-tidy` Patch by Richard Thomson with a few other simplifications to fix else-after-returns in the surrounding code. Differential Revision: http://reviews.llvm.org/D8527 llvm-svn: 233005
* Refactor: Simplify boolean expressions in llvm SupportDavid Blaikie2015-03-231-1/+1
| | | | | | | | | | | | | Simplify boolean expressions using `true` and `false` with `clang-tidy` Patch by Richard Thomson - I dropped the parens and != 0 test, for consistency with other patches/tests like this, but I'm open to the notion that we should add the explicit non-zero test in all these sort of cases (non-bool assigned to a bool). Differential Revision: http://reviews.llvm.org/D8526 llvm-svn: 233004
* [Sanitizers] Fix internal_ftruncate() to work on FreeBSDViktor Kutuzov2015-03-231-1/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D8551 llvm-svn: 233003
* Refactor: Simplify boolean expressions in x86 targetDavid Blaikie2015-03-233-8/+5
| | | | | | | | | | Simplify boolean expressions with `true` and `false` with `clang-tidy` Patch by Richard Thomson. Differential Revision: http://reviews.llvm.org/D8519 llvm-svn: 233002
* [Tsan] Fix the mmap_large.cc test to build on FreeBSDViktor Kutuzov2015-03-231-0/+7
| | | | | | Differential Revision: http://reviews.llvm.org/D8545 llvm-svn: 233001
* Refactor: Simplify boolean expression in modularizeDavid Blaikie2015-03-231-1/+1
| | | | | | | | | | Simplify boolean expressions using `true` and `false` with `clang-tidy` Patch by Richard Thomson. Differential Revision: http://reviews.llvm.org/D8534 llvm-svn: 233000
* Refactor: Simplify boolean expresssions in lib/LexDavid Blaikie2015-03-231-1/+1
| | | | | | | | | | Simplify boolean expressions using `true` and `false` with `clang-tidy` Patch by Richard Thomson. Differential Revision: http://reviews.llvm.org/D8531 llvm-svn: 232999
* Re-sort includes with sort-includes.py and insert raw_ostream.h where it's used.Benjamin Kramer2015-03-2383-61/+111
| | | | llvm-svn: 232998
* Fix and update comments and a small reformatting.Eric Christopher2015-03-231-4/+3
| | | | llvm-svn: 232997
* Refactor: Simplify boolean expressions in libclangDmitri Gribenko2015-03-231-1/+1
| | | | | | | | Simplify boolean expresions using true and false with clang-tidy. Patch by Richard. llvm-svn: 232996
* [ctorutils] Update and sort includes. NFC.Benjamin Kramer2015-03-231-1/+2
| | | | llvm-svn: 232995
* [winehprepare] Update and sort includes. NFC.Benjamin Kramer2015-03-231-1/+2
| | | | llvm-svn: 232994
* Another set of missing raw_ostream.h. Still no functional change.Benjamin Kramer2015-03-233-1/+4
| | | | llvm-svn: 232993
* R600/SI: Merge tables for commutingMatt Arsenault2015-03-233-32/+3
| | | | | | | Don't use a separate table for compares anymore, and use the same VOP2_REV class. llvm-svn: 232992
* R600/SI: Only use one range of isCommutable for comparesMatt Arsenault2015-03-231-38/+2
| | | | | | Also don't count the class instructions as isCompare anymore. llvm-svn: 232991
* R600/SI: Remove redundant unsetting of hasSideEffectsMatt Arsenault2015-03-231-2/+0
| | | | | | These are already set in the base class for the instruction. llvm-svn: 232990
* R600/SI: Move hasSideEffects setting into VOPCX classesMatt Arsenault2015-03-232-23/+19
| | | | llvm-svn: 232989
* R600/SI: Allow commuting comparesMatt Arsenault2015-03-2319-154/+919
| | | | | | | | | | | | | | | | | This enables very common cases to switch to the smaller encoding. All of the standard LLVM canonicalizations of comparisons are the opposite of what we want. Compares with constants are moved to the RHS, but the first operand can be an inline immediate, literal constant, or SGPR using the 32-bit VOPC encoding. There are additional bad canonicalizations that should also be fixed, such as canonicalizing ge x, k to gt x, (k + 1) if this makes k no longer an inline immediate value. llvm-svn: 232988
* R600/SI: Use right class for cmpsx f64 instructionsMatt Arsenault2015-03-231-20/+20
| | | | | | Use VOPCX_F64 to not need the let Defs = [EXEC] llvm-svn: 232987
* R600/SI: Remove cond operand to VOPCX classesMatt Arsenault2015-03-231-8/+8
| | | | | | It isn't used, and these will probably never be directly selected. llvm-svn: 232986
* [ELF] Remove extraneous semicolon in DefaultLayoutRafael Auler2015-03-231-1/+1
| | | | llvm-svn: 232985
* Refactor: simplify boolean expressions in llvm-objdumpDavid Blaikie2015-03-232-236/+227
| | | | | | | | | | | | | | | | Simplify boolean expressions involving `true` and `false` with `clang-tidy`. Actually upon inspection a bunch of these boolean variables could be factored away entirely anyway - using find_if and then testing the result before using it. This also helps reduce indentation in the code anyway - and a bunch of other related simplification fell out nearby so I just committed all of that. Patch by Richard Thomson (legalize@xmission.com) Differential Revision: http://reviews.llvm.org/D8517 llvm-svn: 232984
* Initialize ObjC runtime at the right location.Stephane Sezer2015-03-232-18/+18
| | | | | | | | | | | | | | | | Summary: Saw this while reading some code in DynamicLoader classes. Looks like this has been a FIXME since 2011 at least. Test Plan: Run unit tests. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8558 llvm-svn: 232983
* Add missing ELFObjectWriter::reset() override, like other MC classes.Yaron Keren2015-03-231-0/+14
| | | | | | | | | | | | | See detailed discussion at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140915/235418.html and r217907, r217948: http://llvm.org/viewvc/llvm-project?view=revision&revision=217907 http://llvm.org/viewvc/llvm-project?view=revision&revision=217948 llvm-svn: 232982
* More missing includes only visible to MSVC.Benjamin Kramer2015-03-233-0/+3
| | | | | | NFC. llvm-svn: 232981
* Add missing include that MSVC complains about.Benjamin Kramer2015-03-231-2/+4
| | | | | | Also reorder includes a bit, NFC. llvm-svn: 232980
* Add a missing null pointer check in CommandObjectThread.cpp.Stephane Sezer2015-03-231-1/+1
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8554 llvm-svn: 232979
* Implement fast_distance builtinTom Stellard2015-03-236-0/+104
| | | | | | | This implementation was ported from the AMD builtin library and has been tested with piglit, OpenCV, and the ocl conformance tests. llvm-svn: 232978
* Implement fast_length builtinTom Stellard2015-03-235-0/+109
| | | | | | | This implementation was ported from the AMD builtin library and has been tested with piglit, OpenCV, and the ocl conformance tests. llvm-svn: 232977
* Purge unused includes throughout libSupport.Benjamin Kramer2015-03-2364-89/+50
| | | | | | NFC. llvm-svn: 232976
* Explicitly include raw_ostream.h instead of relying on transitive inclusion.Benjamin Kramer2015-03-231-0/+1
| | | | | | NFC. llvm-svn: 232975
* Rely on Makefile.rules in lldb/test/driver/batch_mode.Zachary Turner2015-03-231-26/+3
| | | | | | | | | | | This was hardcoding some make rules instead of relying on Makefile.rules, which was causing some of the logic to be incorrect for Windows. Patch by: Adrian McCarthy Differential Revision: http://reviews.llvm.org/D8363 llvm-svn: 232974
* Remove non-standard Environment header sectionEd Maste2015-03-236-29/+1
| | | | llvm-svn: 232973
* [sanitizer] Fix file access modes in SanitizerCommon.InternalMmapWithOffset ↵Alexander Potapenko2015-03-231-2/+2
| | | | | | and SanitizerCommon.FileOps llvm-svn: 232972
* [CodeGen] Properly support the half FP type with non-native operations.Ahmed Bougacha2015-03-232-168/+208
| | | | | | | | | | | | | | | | | | | | | | On AArch64, the -fallow-half-args-and-returns option is the default. With it, the half type is considered legal (rather than the i16 used normally for __fp16), but no operation is, except conversions and load/stores and such. The previous behavior was tantamount to saying LangOpts.NativeHalfType was implied by LangOpts.HalfArgsAndReturns, which isn't true. Instead, teach the various parts of CodeGen that already know about half (using the intrinsics or not) about this weird in-between case, where the "half" type is legal, but operations on it aren't. This is a smaller intermediate step to the end-goal of removing the intrinsic, always using "half", and letting the backend legalize. Builds on r232968. rdar://20045970, rdar://17468714 Differential Revision: http://reviews.llvm.org/D8367 llvm-svn: 232971
* Use .so library extension by default if platform is not Windows or DarwinEd Maste2015-03-231-3/+3
| | | | llvm-svn: 232970
* Fix whitespace in finishSwigWrapperClasses.pyEd Maste2015-03-231-659/+659
| | | | | | | - replace hard tabs with 4-space indents - delete EOL whitespace llvm-svn: 232969
* [CodeGen] Convert double -> __fp16 in one step.Ahmed Bougacha2015-03-232-14/+39
| | | | | | | | | | | | | | Fix the CodeGen so that for types bigger than float, instead of converting to fp16 via the sequence "InTy -> float -> fp16", we perform conversions in just one step. This avoids the double rounding which potentially changes results from a natural IEEE-754 operation. rdar://17594379, rdar://17468714 Differential Revision: http://reviews.llvm.org/D4602 Part of: http://reviews.llvm.org/D8367 llvm-svn: 232968
* [AArch64] Enable rematerialization of float 0 values.Chad Rosier2015-03-232-2/+27
| | | | | | Patch by Geoff Berry<gberry@codeaurora.org>. llvm-svn: 232967
* Do not assert on POSIXDYLD double-eAdd.Stephane Sezer2015-03-231-1/+6
| | | | | | | | | | | | | | | | Summary: This has been discovered while experimenting with the gecko linker on android. In general, assert()'ing on "user input" is a bad idea. Test Plan: Run unit tests. Reviewers: clayborg, tfiala Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8495 llvm-svn: 232966
* Implement half_sqrt builtin v2Tom Stellard2015-03-235-0/+88
| | | | | | | | | | This is a generic implementation which just calls sqrt. Targets should override this if they want a faster implementation. v2: - Alphabetize SOURCES llvm-svn: 232965
OpenPOWER on IntegriCloud