- Apr 21, 2016
-
-
Adam Nemet authored
llvm-svn: 267016
-
Adam Nemet authored
These ensure that operand array has at least one element and it is the self-reference. llvm-svn: 267015
-
Adam Nemet authored
The decl is in LoopUtils.h. I think that this was added to LoopVersioningLICM.cpp by mistake. llvm-svn: 267014
-
Adam Nemet authored
"Into" was misleading. I am also planning to use this helper to look for loop metadata and return the argument, so find seems like a better name. llvm-svn: 267013
-
Rafael Espindola authored
It can be made redundant with getRelExpr. llvm-svn: 267012
-
Etienne Bergeron authored
Summary: Checker to validate string constructor parameters. A common mistake is to swap parameter for the fill-constructor. ``` std::string str('x', 4); std::string str('4', x); ``` Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19146 llvm-svn: 267011
-
Eugene Zelenko authored
llvm-svn: 267010
-
Etienne Bergeron authored
Summary: This checker is validating suspicious usage of string compare functions. Example: ``` if (strcmp(...)) // Implicitly compare to zero if (!strcmp(...)) // Won't warn if (strcmp(...) != 0) // Won't warn ``` This patch was checked over large amount of code. There is three checks: [*] Implicit comparator to zero (coding-style, many warnings found), [*] Suspicious implicit cast to non-integral (bugs!?, almost none found), [*] Comparison to suspicious constant (bugs!?, found two cases), Example: [[https://github.com/kylepjohnson/sigma/blob/master/sigma/native-installers/debian/dependencies/files/opt/sigma/E/HEURISTICS/che_to_precgen.c | https://github.com/kylepjohnson/sigma/blob/master/sigma/native-installers/debian/dependencies/files/opt/sigma/E/HEURISTICS/che_to_precgen.c]] ``` else if(strcmp(id, "select") == 0) { array->array[i].key1 = 25; } else if(strcmp(id, "sk") == 28) // BUG!? { array->array[i].key1 = 20; } ``` Reviewers: alexfh Subscribers: Eugene.Zelenko, cfe-commits Differential Revision: http://reviews.llvm.org/D18703 llvm-svn: 267009
-
Eugene Zelenko authored
Differential revision: http://reviews.llvm.org/D19348 llvm-svn: 267008
-
Davide Italiano authored
The gold plugin logic for common symbols is a little bit convoluted as the plugin API has not an explicit way to update the alignment. In gold, then, we need to keep the bitcode symbol @a around because that's the only way to get the alignment right in the final object. In lld, this is not true. We already have all the informations we need about common symbols (size/alignment) so we don't have to keep the existing symbol and pass it to the mover. llvm-svn: 267007
-
Philip Reames authored
This builds on 266999 which made FindAvailableValue do the right thing. Tests included show the newly enabled transforms and those which disabled either due to conservatism or correctness requirements. llvm-svn: 267006
-
Rafael Espindola authored
llvm-svn: 267005
-
Amjad Aboud authored
Before this fix, DILexicalBlockFile entries were skipped only in some cases and were not in other cases. Differential Revision: http://reviews.llvm.org/D18724 llvm-svn: 267004
-
Etienne Bergeron authored
Summary: Little cleanup to lift-out and to remove some frequently used ast-matchers. Some of theses matchers are candidates to be lifted to ASTMatchers.h. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19200 llvm-svn: 267003
-
Rafael Espindola authored
It was only used there. llvm-svn: 267002
-
Saleem Abdulrasool authored
expr_log is only conditionally used via preprocessing. Ensure that we guard the definition accordingly. NFC. llvm-svn: 267001
-
Saleem Abdulrasool authored
Add explicit casts for function pointer to void * for %p conversion. NFC. llvm-svn: 267000
-
Philip Reames authored
This change adds a couple of test cases to make sure FindAvailableLoadedValue does the right thing. At the moment, the code added is dead, but separating it makes follow on changes far more obvious. llvm-svn: 266999
-
Chad Rosier authored
llvm-svn: 266998
-
Philip Reames authored
llvm-svn: 266997
-
Rafael Espindola authored
Because of X86 instead of x86 is was masked as unsupported everywhere. llvm-svn: 266996
-
Rafael Espindola authored
We were assuming that only linkonce_odr GVs were lazy linked. llvm-svn: 266995
-
Kuba Brecka authored
The field "pid" in ReportThread is used to store the OS-provided thread ID (pthread_self or gettid). The name "pid" suggests it's a process ID, which it isn't. Let's rename it. Differential Revision: http://reviews.llvm.org/D19365 llvm-svn: 266994
-
Renato Golin authored
llvm-svn: 266993
-
Alexander Kornienko authored
Summary: Clang-tidy modernize-raw-string-literal check crashes on run-time assert while it is evaluating compiler predefined identifiers such as - __FUNCTION__ - __func__ - __PRETTY_FUNCTION__ Check is asserting because it cannot find opening quote for such string literal. It occurs only on debug build config. I think that it would be good to prune such cases by crossing off predefined expressions - there is no need to evaluate such matches. Reviewers: LegalizeAdulthood, alexfh Subscribers: cfe-commits Patch by Marek Jenda! Differential Revision: http://reviews.llvm.org/D19331 llvm-svn: 266992
-
Kuba Brecka authored
Let's use pthread_threadid_np which returns a more reasonable ID than pthread_self (which is actually a stack pointer). The numbers from pthread_threadid_np are already used in other tools, e.g. in LLDB, and often appear in logs, so it's much more useful than pthread_self. Differential Revision: http://reviews.llvm.org/D18951 llvm-svn: 266991
-
Zoran Jovanovic authored
Differential Revision: http://reviews.llvm.org/D15009 llvm-svn: 266990
-
Krzysztof Parzyszek authored
llvm-svn: 266989
-
Zoran Jovanovic authored
Differential Revision: http://reviews.llvm.org/D14915 llvm-svn: 266988
-
Chad Rosier authored
Differential Revision: http://reviews.llvm.org/D19330 llvm-svn: 266987
-
Aaron Ballman authored
Patch by Clement Courbet llvm-svn: 266986
-
Zoran Jovanovic authored
Differential Revision: http://reviews.llvm.org/D14822 llvm-svn: 266985
-
Sam Kolton authored
Reviewers: nhaustov, tstellarAMD Subscribers: arsenm Differential Revision: http://reviews.llvm.org/D19317 llvm-svn: 266984
-
Michael Zuckerman authored
[Clang][AVX512][BuiltIn] Adding intrinsics of VGATHER{DPS|DPD} , VPGATHER{QD|QQ|DD|DQ} and VGATHERPF{0|1}{DPS|QPS|DPD|QPD} instruction set . Differential Revision: http://reviews.llvm.org/D19224 llvm-svn: 266983
-
Rafael Espindola authored
llvm-svn: 266982
-
Rafael Espindola authored
A DenseMap doesn't store the hashes, so it needs to recompute them when the table is resized. In some applications the hashing cost is noticeable. That is the case for example in lld for symbol names (StringRef). This patch adds a templated structure that can wraps any value that can go in a DenseMap and caches the hash. llvm-svn: 266981
-
Zlatko Buljan authored
Differential Revision: http://reviews.llvm.org/D18855 llvm-svn: 266980
-
George Rimar authored
llvm-svn: 266979
-
George Rimar authored
llvm-svn: 266978
-
Zlatko Buljan authored
[mips][microMIPS] Implement LL, SC, MOVEP, ROTR, ROTRV and SYSCALL instructions and add tests for LWM32 and SWM32 Differential Revision: http://reviews.llvm.org/D19150 llvm-svn: 266977
-