summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor code cleanups. NFC.Junmo Park2016-02-261-3/+3
| | | | llvm-svn: 261955
* [UnitTests] UnrollAnalyzer: make unit-test more general so that it can cover ↵Michael Zolotukhin2016-02-261-3/+5
| | | | | | more cases in future. llvm-svn: 261954
* Add the "block" keyword to "thread step-in -e", and an alias that uses it: ↵Jim Ingham2016-02-265-3/+200
| | | | | | | | | "sif <target function>" - i.e. step-into-function to allow you to step through a complex calling sequence into a particular function that may span multiple lines. Also some test cases for this and the --step-target feature. llvm-svn: 261953
* Fix Clang-tidy modernize-use-nullptr warnings in some files in ↵Eugene Zelenko2016-02-265-602/+618
| | | | | | source/Plugins/ABI; other minor fixes. llvm-svn: 261952
* Remove redundant template instantiations.Rui Ueyama2016-02-261-5/+0
| | | | | | | This class is used only in this translation unit, so no need to instantiate them explicitly. llvm-svn: 261951
* Fix all of the unannotated switch cases to annotate the fall through or do ↵Greg Clayton2016-02-2628-104/+93
| | | | | | the right thing and break. llvm-svn: 261950
* [sancov] Pruning full dominator blocks from instrumentation.Mike Aizatsky2016-02-262-4/+41
| | | | | | | | | | | | | | Summary: This is the first simple attempt to reduce number of coverage- instrumented blocks. If a basic block dominates all its successors, then its coverage information is useless to us. Ingore such blocks if santizer-coverage-prune-tree option is set. Differential Revision: http://reviews.llvm.org/D17626 llvm-svn: 261949
* [x86, SSE] add tests to show missing pcmp foldsSanjay Patel2016-02-261-0/+88
| | | | llvm-svn: 261948
* Sync up with masterXinliang David Li2016-02-261-0/+3
| | | | llvm-svn: 261947
* Add forward declarations /NFCXinliang David Li2016-02-261-0/+3
| | | | llvm-svn: 261946
* [analyzer] Shorten ObjcSuperDeallocChecker diagnostics.Devin Coughlin2016-02-262-24/+37
| | | | | | | | | Change "use of 'self' after it has been freed with call to [super dealloc]" to "use of 'self' after it has been deallocated" and "use of instance variable '_ivar' after the instance has been freed with call to [super dealloc]" to "use of instance variable '_ivar' after 'self' has been deallocated". llvm-svn: 261945
* [analyzer] Fix a memory error in r261935 caught by the Windows bots.Devin Coughlin2016-02-261-2/+2
| | | | | | It was using a temporary StringRef after its underlying storage was freed. llvm-svn: 261944
* Fix typo in comment.Rui Ueyama2016-02-261-2/+2
| | | | llvm-svn: 261943
* [WinEH] Don't remove unannotated inline-asm callsDavid Majnemer2016-02-262-2/+29
| | | | | | | | Inline-asm calls aren't annotated with funclet bundle operands because they don't throw and cannot be inlined through. We shouldn't require them to bear an funclet bundle operand. llvm-svn: 261942
* ELF: Add '*' to auto.Rui Ueyama2016-02-251-1/+1
| | | | llvm-svn: 261941
* Remove a blank line at EOF. NFCAlexander Kornienko2016-02-251-1/+0
| | | | llvm-svn: 261940
* Add a new check, readability-redundant-string-init, that checks unnecessary ↵Alexander Kornienko2016-02-259-4/+204
| | | | | | | | | | | | | | string initializations. Reviewers: hokein, alexfh Subscribers: cfe-commits Patch by Shuai Wang! Differential Revision: http://reviews.llvm.org/D17586 llvm-svn: 261939
* ELF: Create MIPS .rld_map section earlier.Rui Ueyama2016-02-251-15/+13
| | | | | | This is the usual way of instantiating a globally-visible section. llvm-svn: 261938
* Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in ↵Eugene Zelenko2016-02-251-305/+194
| | | | | | source/Commands/CommandObjectThread.cpp; other minor fixes. llvm-svn: 261936
* [analyzer] Warn on use of 'self' after call to to [super dealloc].Devin Coughlin2016-02-252-43/+200
| | | | | | | | | | | | Referring to 'self' after a call to [super dealloc] is a use-after-free in Objective-C because NSObject's -dealloc frees the memory pointed to by self. This patch extends the ObjCSuperDeallocChecker to catch this error. rdar://problem/6953275 Differential Revision: http://reviews.llvm.org/D17528 llvm-svn: 261935
* More internal details of SROA pass to library visibility.Owen Anderson2016-02-251-1/+1
| | | | llvm-svn: 261934
* Delete dead code.Rafael Espindola2016-02-251-5/+0
| | | | | | | | | When this code was first added it was compensating for the code deciding to create plt entries for directly referenced functions being too aggressive. That has since been fixed, so we don't need this anymore. llvm-svn: 261933
* Move common code out of target specific hooks.Rafael Espindola2016-02-251-8/+3
| | | | llvm-svn: 261932
* Support: Give ManagedStatic's helper object library visibilityJustin Bogner2016-02-251-5/+6
| | | | | | It doesn't make much sense to export these symbols. llvm-svn: 261931
* [ELF][MIPS] Calculate combined addend for R_MIPS_GOT16 against local symbolSimon Atanasyan2016-02-252-26/+76
| | | | | | | | | | | R_MIPS_GOT16 relocation against local symbol requires index of a local GOT entry which contains page address corresponds to sum of the symbol address and addend. The addend in that case is calculated using addends from the R_MIPS_GOT16 and paired R_MIPS_LO16 relocations. Differential Revision: http://reviews.llvm.org/D17610 llvm-svn: 261930
* [analyzer] Reapply r261917 with a fix.Devin Coughlin2016-02-255-214/+1286
| | | | | | | | This reapplies "[analyzer] Make ObjCDeallocChecker path sensitive." (r261917) with a fix for an error on some bots about specializing a template from another namespace. llvm-svn: 261929
* [ELF][MIPS] Remove redundant namespace qualifier. NFCSimon Atanasyan2016-02-251-1/+1
| | | | llvm-svn: 261928
* Reverts change r261907 and r261918Hemant Kulkarni2016-02-255-745/+265
| | | | llvm-svn: 261927
* more status updatesMarshall Clow2016-02-251-7/+7
| | | | llvm-svn: 261926
* Added tests to make sure that the categorization traits work on incomplete typesMarshall Clow2016-02-2529-15/+127
| | | | llvm-svn: 261925
* ELF: Split Writer::addPredefiendSections. NFC.Rui Ueyama2016-02-251-11/+16
| | | | llvm-svn: 261924
* ELF: Split Writer::writeHeader. NFC.Rui Ueyama2016-02-251-13/+18
| | | | llvm-svn: 261923
* Use regex in testcase, do not fail windows botsHongbin Zheng2016-02-251-10/+10
| | | | llvm-svn: 261922
* Revert "[analyzer] Make ObjCDeallocChecker path sensitive."Devin Coughlin2016-02-255-1282/+214
| | | | | | This reverts commit r261917. It broke the bots. llvm-svn: 261921
* Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in ↵Eugene Zelenko2016-02-251-412/+295
| | | | | | source/Commands/CommandObjectTarget.cpp; other minor fixes. llvm-svn: 261920
* ELF: Define log() to print out message if --verbose is given.Rui Ueyama2016-02-254-8/+11
| | | | llvm-svn: 261919
* Fix endianness issue on BE machines introduced by r261907Hemant Kulkarni2016-02-251-3/+4
| | | | llvm-svn: 261918
* [analyzer] Make ObjCDeallocChecker path sensitive.Devin Coughlin2016-02-255-214/+1282
| | | | | | | | | | | | | | Convert the ObjCDeallocChecker to be path sensitive. The primary motivation for this change is to prevent false positives when -dealloc calls helper invalidation methods to release instance variables, but it additionally improves precision when -dealloc contains control flow. It also reduces the need for pattern matching. The check for missing -dealloc methods remains AST-based. Part of rdar://problem/6927496 Differential Revision: http://reviews.llvm.org/D17511 llvm-svn: 261917
* Reformatted a comment to fit the 80 column limit. NFC.David L Kreitzer2016-02-251-2/+2
| | | | llvm-svn: 261916
* Add new OpenMP 4.5 affinity APIJonathan Peyton2016-02-258-0/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces the new OpenMP 4.5 affinity api surrounding OpenMP Places. There are six new entry points: Typically called in serial region: * omp_get_num_places - returns the number of places available to the execution environment in the place list. * omp_get_place_num_procs - returns the number of processors available to the execution environment in the specified place. * omp_get_place_proc_ids - returns the numerical identifiers of the processors available to the execution environment in the specified place. Typically called inside parallel region: * omp_get_place_num - returns the place number of the place to which the encountering thread is bound. * omp_get_partition_num_places - returns the number of places in the place partition of the innermost implicit task. * omp_get_partition_place_nums - returns the list of place numbers corresponding to the places in the place-var ICV of the innermost implicit task. Differential Revision: http://reviews.llvm.org/D17417 llvm-svn: 261915
* Rename so that the function name is consistent between ELF and COFF.Rui Ueyama2016-02-251-3/+3
| | | | llvm-svn: 261914
* Remove default values which are always overwritten.Rui Ueyama2016-02-251-2/+2
| | | | llvm-svn: 261913
* ELF: Implement ICF.Rui Ueyama2016-02-2520-6/+611
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch implements the same algorithm as LLD/COFF's ICF. I'm not going to repeat the same description about how it works, so you want to read the comment in ICF.cpp in this patch if you want to know the details. This algorithm should be more powerful than the ICF algorithm implemented in GNU gold. It can even merge mutually-recursive functions (which is harder than one might think). ICF is a fairly effective size optimization. Here are some examples. LLD: 37.14 MB -> 35.80 MB (-3.6%) Clang: 59.41 MB -> 57.80 MB (-2.7%) The lacking feature is "safe" version of ICF. This merges all identical sections. That is not compatible with a C/C++ language requirement that two distinct functions must have distinct addresses. But as long as your program do not rely on the pointer equality (which is in many cases true), your program should work with the feature. LLD works fine for example. GNU gold implements so-called "safe ICF" that identifies functions that are safe to merge by heuristics -- for example, gold thinks that constructors are safe to merge because there is no way to take an address of a constructor in C++. We have a different idea which David Majnemer suggested that we add NOPs at beginning of merged functions so that two or more pointers can have distinct values. We can do whichever we want, but this patch does not include neither. http://reviews.llvm.org/D17529 llvm-svn: 261912
* [CMake] Fixing install-clang-headers dependencies to depend on generating ↵Chris Bieneman2016-02-251-1/+1
| | | | | | the headers. llvm-svn: 261911
* Try to fix windows fail at r261902.Hongbin Zheng2016-02-251-0/+10
| | | | | | Introduce move constructor and move assignment operator to PostDominatorTree. llvm-svn: 261910
* [Sanitizer] Protect against compiler-inserted memcpy() in ↵Alexey Samsonov2016-02-251-1/+1
| | | | | | InternalMmapVector::push_back(). llvm-svn: 261909
* Add initial support for OpenMP 4.5 task priority featureJonathan Peyton2016-02-2512-8/+107
| | | | | | | | | | | The maximum task priority value is read from envirable: OMP_MAX_TASK_PRIORITY. But as of now, nothing is done with it. We just handle the environment variable and add the new api: omp_get_max_task_priority() which returns that value or zero if it is not set. Differential Revision: http://reviews.llvm.org/D17411 llvm-svn: 261908
* [llvm-readobj] Enable GNU style sections and relocations printingHemant Kulkarni2016-02-255-265/+744
| | | | | | http://reviews.llvm.org/D17523 llvm-svn: 261907
* dd new OpenMP 4.5 schedule clause modifiers (monotonic/non-monotonic) featureJonathan Peyton2016-02-253-0/+44
| | | | | | | | | | | | | | | | | The monotonic/non-monotonic flags are sent to the runtime via the sched_type by setting the 30th (non-monotonic) or 29th (monotonic) bit in the sched_type. Macros are added to probe if monotonic or non-monotonic is specified (SCHEDULE_HAS_[NON]MONOTONIC & SCHEDULE_HAS_NO_MODIFIERS) and also to to get the base sched_type (SCHEDULE_WITHOUT_MODIFIERS) Currently, nothing is done with the modifiers. Also, this patch adds some comments on the use of the enumerations in at least one place where it is subtle. Differential Revision: http://reviews.llvm.org/D17406 llvm-svn: 261906
* Adapt to LLVM head, againHongbin Zheng2016-02-252-2/+2
| | | | llvm-svn: 261905
OpenPOWER on IntegriCloud