- Oct 16, 2014
-
-
Sanjay Patel authored
llvm-svn: 219804
-
Sanjay Patel authored
llvm-svn: 219803
-
Dario Domizioli authored
The size of the ID field in CommandInfo was narrow, leading to potential wrap-around of command IDs, causing misinterpretation later on. The patch does the following: - It extends the ID bitfield from 8 to 20 bits. - It provides a DRY definition of the number of bits for the field to avoid using literal numbers in different files. - It introduces a new assertion that checks for the wrap-around. - It adds the testcase from PR21254. llvm-svn: 219802
-
Duncan P. N. Exon Smith authored
A number of comment cleanups: - Remove duplicated function and class names from comments. - Remove duplicated comments from source file (some of which were out-of-sync). - Move any unduplicated comments from source file to header. - Remove some noisy comments entirely (e.g., a comment for `DIDescriptor::print()` saying "print descriptor" just gets in the way of reading the code). llvm-svn: 219801 -
Rafael Espindola authored
llvm-svn: 219800
-
Rafael Espindola authored
llvm-svn: 219799
-
Duncan P. N. Exon Smith authored
Remove a strange round-trip through named metadata to assign preserved local variables to their subprograms. llvm-svn: 219798
-
- Oct 15, 2014
-
-
Rafael Espindola authored
llvm-svn: 219797
-
Rafael Espindola authored
The .note.GNU-stack section is not SystemZ/X86 specific. llvm-svn: 219796
-
Aaron Ballman authored
Did a bit of drive-by reformatting as well since it required rearranging some other static functions in the file. llvm-svn: 219795
-
Anton Yartsev authored
llvm-svn: 219794
-
Jan Vesely authored
v2: Fix function declaration Add range metadata to r600 implementation v3: change prefix to AMDGPU Reviewed-by:Tom Stellard <tom@stellard.net> Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 219793
-
Samuel Benzaquen authored
Summary: Speed up hasName() matcher by skipping the expensive generation of the fully qualified name unless we need it. In the common case of matching an unqualified name, we don't need to generate the full name. We might not even need to copy any string at all. This change speeds up our clang-tidy benchmark by ~10% Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D5776 llvm-svn: 219792
-
Viktor Kutuzov authored
Differential Revision: http://reviews.llvm.org/D5730 llvm-svn: 219791
-
Viktor Kutuzov authored
Differential Revision: http://reviews.llvm.org/D5729 llvm-svn: 219790
-
Alexander Kornienko authored
Summary: This patch makes the check work better for LLVM code: * always fix existing #endif comments * use one space before the comment (+allow customization for other styles) Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5795 llvm-svn: 219789
-
Alexander Kornienko authored
llvm-svn: 219788
-
Alexander Kornienko authored
llvm-svn: 219787
-
Alexander Kornienko authored
Summary: Some of the misc checks belong to readability/. I'm moving them there without changing check names for now. As the next step, I want to register some of these checks in the google and llvm modules with suitable settings (e.g. BracesAroundStatementsCheck). I'm not sure if we want to create a "readability" module, probably not. Reviewers: djasper Reviewed By: djasper Subscribers: curdeius, cfe-commits Differential Revision: http://reviews.llvm.org/D5792 llvm-svn: 219786
-
Marshall Clow authored
Fixes PR21157 'tuple: non-default constructible tuple hard failure' Thanks to Louis Dionne for the bug report and the patch. llvm-svn: 219785
-
Dmitry Vyukov authored
Write interceptor calls malloc, which causes a false unsafe-call-in-signal-handler report. See the test. llvm-svn: 219784
-
Dmitry Vyukov authored
build is used as gtest temp build dir, and is cleared during every build llvm-svn: 219783
-
Matthew Gardiner authored
Recognise the SHT_NOBITS property in kalimba ELF, and determine this to be of type zerofilled. Subsequently recognise this type to represent bytes on the target's DATA address space, and therefore be sized accordingly. llvm-svn: 219782
-
David Majnemer authored
Unions are initialized with the default initialization of their first named member. If that member is not zero initialized, then we should prefer that member's type. Otherwise, we might try to make an otherwise unsuitable type (like an array) which we cannot easily initialize with a pointer to member. llvm-svn: 219781
-
David Majnemer authored
No functionality change intended. llvm-svn: 219780
-
Dmitry Vyukov authored
llvm-svn: 219779
-
Matt Arsenault authored
llvm-svn: 219778
-
Matt Arsenault authored
llvm-svn: 219777
-
Juergen Ributzka authored
This breaks our internal build bots. Reverting it to get the bots green again. llvm-svn: 219776
-
David Majnemer authored
We assumed the last argument of the copy constructor was the this pointer. However, this is not the case under the MS ABI. llvm-svn: 219775
-
Richard Trieu authored
Split logic to separate checking function Refine the macro checking Catch nullptr->bool conversions Add some explanatory comments llvm-svn: 219774
-
Jingyue Wu authored
Summary: Fixes a FIXME in MachineSinking. Instead of using the simple heuristics in isPostDominatedBy, use the real MachinePostDominatorTree and MachineLoopInfo. The old heuristics caused instructions to sink unnecessarily, and might create register pressure. This is the second try of the fix. The first one (D4814) caused a performance regression due to failing to sink instructions out of loops (PR21115). This patch fixes PR21115 by sinking an instruction from a deeper loop to a shallower one regardless of whether the target block post-dominates the source. Thanks Alexey Volkov for reporting PR21115! Test Plan: Added a NVPTX codegen test to verify that our change prevents the backend from over-sinking. It also shows the unnecessary register pressure caused by over-sinking. Added an X86 test to verify we can sink instructions out of loops regardless of the dominance relationship. This test is reduced from Alexey's test in PR21115. Updated an affected test in X86. Also ran SPEC CINT2006 and llvm-test-suite for compilation time and runtime performance. Results are attached separately in the review thread. Reviewers: Jiangning, resistor, hfinkel Reviewed By: hfinkel Subscribers: hfinkel, bruno, volkalexey, llvm-commits, meheff, eliben, jholewinski Differential Revision: http://reviews.llvm.org/D5633 llvm-svn: 219773
-
Jason Molenda authored
in GetFullUnwindPlanForFrame() - the code was mostly checking that we had an active Process and ABI but not always. clang static analyzer fixit. llvm-svn: 219772
-
Jason Molenda authored
(it was checked for NULL-ness in some places, not in others) clang static analyzer fixit. llvm-svn: 219771
-
Jason Molenda authored
clang static analyzer fixit. llvm-svn: 219770
-
Jason Molenda authored
exists a code path where it could be used while uninitialized. clang static analyzer fixit. llvm-svn: 219769
-
Jason Molenda authored
constructors. clang static analyzer fixit. llvm-svn: 219768
-
Tim Northover authored
Early attempts to support AAPCS bare metal MachO targets based the decision on the CPU being compiled for. This was not a particularly great idea and we've got a better option now, but this check remained. No functional change for any target we care about. llvm-svn: 219767
-
Justin Bogner authored
The various ways to create an ASTUnit all take a refcounted pointer to a diagnostics engine as an argument, and if it isn't pointing at anything they initialize it. This is a pretty confusing API, and it really makes more sense for the caller to initialize the thing since they control the lifetime anyway. This fixes the one caller that didn't bother initializing the pointer and asserts that the argument is initialized. llvm-svn: 219752
-
Eric Christopher authored
llvm-svn: 219751
-