summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [ASan] Hoist blacklisting globals from init-order checking to Clang.Alexey Samsonov2014-05-291-2/+0
| | | | | | | | | Clang knows about the sanitizer blacklist and it makes no sense to add global to the list of llvm.asan.dynamically_initialized_globals if it will be blacklisted in the instrumentation pass anyway. Instead, we should do as much blacklisting as possible (if not all) in the frontend. llvm-svn: 209790
* [ASan] Hoist blacklisting globals from init-order checking to Clang.Alexey Samsonov2014-05-292-6/+14
| | | | | | | | | Clang knows about the sanitizer blacklist and it makes no sense to add global to the list of llvm.asan.dynamically_initialized_globals if it will be blacklisted in the instrumentation pass anyway. Instead, we should do as much blacklisting as possible (if not all) in the frontend. llvm-svn: 209789
* [x86] Fold extract_vector_elt of a load into the Load's address computation.Michael J. Spencer2014-05-292-91/+143
| | | | | | | | An address only use of an extract element of a load can be simplified to a load. Without this the result of the extract element is spilled to the stack so that an address is available. llvm-svn: 209788
* R600/SI: Fix pattern variable names.Matt Arsenault2014-05-291-2/+2
| | | | | | | These are confusing enough since the order swaps, so give them more useful names. llvm-svn: 209787
* PR19878: If a pack expansion appears within another pack expansion, correctlyRichard Smith2014-05-293-199/+204
| | | | | | deduce any packs that are expanded by both expansions. llvm-svn: 209786
* Fix a problem exposed by r208825, which caused bind (and other bits of ↵Marshall Clow2014-05-292-7/+82
| | | | | | libc++) to stop working. And tests llvm-svn: 209785
* Fix typo in variable nameAlexey Samsonov2014-05-291-3/+3
| | | | llvm-svn: 209784
* Add __extenddftf2 and __extendsftf2 for IEEE quad precision.Joerg Sonnenberger2014-05-294-0/+211
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2802 llvm-svn: 209783
* Implement __trunctfdf2 and __trunctfsf2 for IEEE quad precision.Joerg Sonnenberger2014-05-294-0/+195
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2803 llvm-svn: 209782
* Refactor extendsfdf2.Joerg Sonnenberger2014-05-293-124/+187
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3887 llvm-svn: 209781
* [ASan] Use llvm.global_ctors to insert init-order checking calls into ASan ↵Alexey Samsonov2014-05-292-34/+25
| | | | | | | | | | | | runtime. Don't assume that dynamically initialized globals are all initialized from _GLOBAL__<module_name>I_ function. Instead, scan the llvm.global_ctors and insert poison/unpoison calls to each function there. Patch by Nico Weber! llvm-svn: 209780
* Refactor truncdfsf2.Joerg Sonnenberger2014-05-293-155/+204
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3888 llvm-svn: 209779
* Moved the builtins documentation to lib/builtins/Greg Fitzgerald2014-05-283-336/+346
| | | | | | | | And fixed typos in the ASan readme. Differential Revision: http://reviews.llvm.org/D3927 llvm-svn: 209778
* Add a simple helper function to create a 64-bit integer.Reid Kleckner2014-05-281-0/+6
| | | | | | | | | | | | Add a function to combine two 32-bit integers into a 64-bit integer. There are no calls to this function yet, although a subsequent change will add some in LLDB. Reviewers: rnk Differential Revision: http://reviews.llvm.org/D3941 llvm-svn: 209777
* Revert "Revert "InstCombine: Improvement to check if signed addition ↵Rafael Espindola2014-05-282-6/+100
| | | | | | | | overflows."" This reverts commit r209762, bringing back r209746. It was not responsible for the libc++ build failure llvm-svn: 209776
* Revert "Add support for combining GEPs across PHI nodes"Rafael Espindola2014-05-282-135/+0
| | | | | | | | This reverts commit r209755. it was the real cause of the libc++ build failure. llvm-svn: 209775
* Thread Safety Analysis: update TIL traversal mechanism to allow arbitraryDeLesley Hutchins2014-05-287-358/+594
| | | | | | local contexts. Also includes some minor refactoring. llvm-svn: 209774
* [Sanitizer] Always prefer cached contents of /proc/self/exe if it's availableAlexey Samsonov2014-05-281-13/+12
| | | | llvm-svn: 209773
* Fix wrong setcc result type when legalizing uaddo/usuboMatt Arsenault2014-05-281-5/+11
| | | | | | | | | No test because no in-tree targets change the bitwidth of the setcc type depending on the bitwidth of the compared type. Patch by Ke Bai llvm-svn: 209771
* Update CREDITS to be at least moderately more current.Jim Grosbach2014-05-281-0/+2
| | | | llvm-svn: 209770
* added Intel's BMI intrinsic variants Sanjay Patel2014-05-282-2/+120
| | | | | | (fixes PR19431 - http://llvm.org/bugs/show_bug.cgi?id=19431) llvm-svn: 209769
* fixed a few typosSanjay Patel2014-05-281-3/+3
| | | | llvm-svn: 209768
* Expose CUDA function attributes to the C interface.Eli Bendersky2014-05-285-2/+38
| | | | | | | | Until now all CUDA-specific attributes were represented with CXCursor_UnexposedAttr; now they are actually implemented, including the Python bindings. llvm-svn: 209767
* Reverting 209503 - Breaks asan blacklistsWarren Hunt2014-05-282-10/+1
| | | | | | | | I opened a discussion on cfe-commits. Ideally we've got a few things that need to happen. CompilerRT should probably have blacklists tests. Asan should probably not depend on that specific field. llvm-svn: 209766
* Debug Info: Fix the source range for IfStmt's ConditionScope.Adrian Prantl2014-05-282-1/+21
| | | | | | | | | | Since the continuation block of the if statement is emitted within the condition scope this had the undesirable effect of creating a line table entry at the end of the then or else statement, a line that may have never been executed. PR19864 / rdar://problem/17052973 llvm-svn: 209764
* test check-in: added missing parenthesis in commentSanjay Patel2014-05-281-1/+1
| | | | llvm-svn: 209763
* Revert "InstCombine: Improvement to check if signed addition overflows."Rafael Espindola2014-05-282-100/+6
| | | | | | | | | This reverts commit r209746. It looks it is causing a crash while building libcxx. I am trying to get a reduced testcase. llvm-svn: 209762
* Move misplaced Documentation note in Attr.tdReid Kleckner2014-05-281-3/+2
| | | | llvm-svn: 209761
* Fix standard integer definitions for MSVC in DataTypes.hReid Kleckner2014-05-282-194/+46
| | | | | | | | | | | | | | | | | | | | | Previously, DataTypes.h would #define a variety of symbols any time they weren't already defined. However, some versions of Visual Studio do provide the appropriate headers, so if those headers are included after DataTypes.h, it can lead to macro redefinition warnings. The fix is to include the appropriate headers if they exist, and only #define the symbols if the required header does not exist. Patch by Zachary Turner! --- The big change here is that we no longer have our own stdint.h typedefs because now all supported toolchains have stdint.h. Hooray! llvm-svn: 209760
* [pr19844] Add thread local mode to aliases.Rafael Espindola2014-05-2818-111/+143
| | | | | | | | | | This matches gcc's behavior. It also seems natural given that aliases contain other properties that govern how it is accessed (linkage, visibility, dll storage). Clang still has to be updated to expose this feature to C. llvm-svn: 209759
* Objective-C. Diagnose use of properties in functions nested in, Fariborz Jahanian2014-05-283-1/+36
| | | | | | | now deprecated, ObjC containers instead of crashing. // rdar://16859666 llvm-svn: 209758
* tsan: refactor suppressions machineryDmitry Vyukov2014-05-288-43/+41
| | | | | | | | | | The refactoring makes suppressions more flexible and allow to suppress based on arbitrary number of stacks. In particular it fixes: https://code.google.com/p/thread-sanitizer/issues/detail?id=64 "Make it possible to suppress deadlock reports by any stack (not just first)" llvm-svn: 209757
* Disabled warning C4251 on MSVC builds.Todd Fiala2014-05-281-0/+1
| | | | | | | | | See http://reviews.llvm.org/D3934 for more details. This is only the CMakeLists.txt portion of that change. Change by Zachary Turner. llvm-svn: 209756
* Add support for combining GEPs across PHI nodesLouis Gerbarg2014-05-282-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | Currently LLVM will generally merge GEPs. This allows backends to use more complex addressing modes. In some cases this is not happening because there is PHI inbetween the two GEPs: GEP1--\ |-->PHI1-->GEP3 GEP2--/ This patch checks to see if GEP1 and GEP2 are similiar enough that they can be cloned (GEP12) in GEP3's BB, allowing GEP->GEP merging (GEP123): GEP1--\ --\ --\ |-->PHI1-->GEP3 ==> |-->PHI2->GEP12->GEP3 == > |-->PHI2->GEP123 GEP2--/ --/ --/ This also breaks certain use chains that are preventing GEP->GEP merges that the the existing instcombine would merge otherwise. Tests included. llvm-svn: 209755
* Trim trailing whitespace in cindex.pyEli Bendersky2014-05-281-6/+6
| | | | llvm-svn: 209754
* Added option for n-dimensional rectangular tilingJohannes Doerfert2014-05-284-9/+135
| | | | | | | | | | | | | | + CL-option --polly-tile-sizes=<int,...,int> The i'th value is used as a tile size for dimension i, if there is no i'th value, the value of --polly-default-tile-size is used + CL-option --polly-default-tile-size=int Used if no tile size is given for a dimension i + 3 Simple testcases llvm-svn: 209753
* Cmake build changes.Todd Fiala2014-05-281-11/+19
| | | | | | | | | | | | | Disables exception handling in LLDB, using appropriate compiler flags depending on the platform. This is consistent with the build of LLVM, should improve performance, and also removes a substantial number of warnings from the Windows build. See http://reviews.llvm.org/D3929 for more details. Change by Zachary Turner llvm-svn: 209752
* Objective-C. Deprecate use of function definitionsFariborz Jahanian2014-05-284-0/+35
| | | | | | | in Objective-C container declarations (but not in their definitions. // rdar://10414277 llvm-svn: 209751
* Reorder cmake include folders (polly source first)Johannes Doerfert2014-05-281-0/+1
| | | | llvm-svn: 209750
* Fix Windows warnings.Todd Fiala2014-05-287-14/+12
| | | | | | | | | | This fixes a number of trivial warnings in the Windows build. This is part of a larger effort to make the Windows build warning-free. See http://reviews.llvm.org/D3914 for more details. Change by Zachary Turner llvm-svn: 209749
* Revert "[DAGCombiner] Split up an indexed load if only the base pointer ↵Hal Finkel2014-05-282-30/+10
| | | | | | | | | | value is live" This reverts r208640 (I've just XFAILed the test) because it broke ppc64/Linux self-hosting. Because nearly every regression test triggers a segfault, I hope this will be easy to fix. llvm-svn: 209747
* InstCombine: Improvement to check if signed addition overflows.Rafael Espindola2014-05-282-6/+100
| | | | | | | | | | | | | | | | | | This patch implements two things: 1. If we know one number is positive and another is negative, we return true as signed addition of two opposite signed numbers will never overflow. 2. Implemented TODO : If one of the operands only has one non-zero bit, and if the other operand has a known-zero bit in a more significant place than it (not including the sign bit) the ripple may go up to and fill the zero, but won't change the sign. e.x - (x & ~4) + 1 We make sure that we are ignoring 0 at MSB. Patch by Suyog Sarda. llvm-svn: 209746
* Revert "[PPC] Use alias symbols in address computation."Hal Finkel2014-05-283-46/+34
| | | | | | | | | This reverts commit r209638 because it broke self-hosting on ppc64/Linux. (the Clang-compiled TableGen would segfault because it jumped to an invalid address from within _ZNK4llvm17ManagedStaticBase21RegisterManagedStaticEPFPvvEPFvS1_E (which is within the command-line parameter registration process)). llvm-svn: 209745
* tsan: do not use 64-bit atomics in allocator codeDmitry Vyukov2014-05-283-34/+32
| | | | | | 64-bit atomics make porting of asan to 32-bits platforms problematic. llvm-svn: 209744
* Renamed runClangTidy argument Ranges to InputFiles, removed a TODO comment.Alexander Kornienko2014-05-282-5/+3
| | | | | | No functional changes. llvm-svn: 209743
* Don't hard-code ld when extracting host linker version, use ${LD} ifJoerg Sonnenberger2014-05-282-2/+2
| | | | | | it is set. llvm-svn: 209742
* Refactor muldf3 and mulsf3.Joerg Sonnenberger2014-05-283-196/+122
| | | | | | | Patch from: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3886 llvm-svn: 209741
* Refactor addsf3.c and adddf3.c.Joerg Sonnenberger2014-05-283-266/+150
| | | | | | Differential Revision: http://reviews.llvm.org/D3885 llvm-svn: 209740
* Avoid passing null signal name for Log %s argumentEd Maste2014-05-281-3/+7
| | | | llvm-svn: 209739
* [DOC] Documentation for #pragma clang optimize on/offDario Domizioli2014-05-281-0/+79
| | | | llvm-svn: 209738
OpenPOWER on IntegriCloud