David Blaikie
62f1fea4c5
DIBuilder: allow linkage name to be specified for global variables
...
Patch by Kai Nacke (kai@redstar.de )
llvm-svn: 177547
2013-03-20 17:49:48 +00:00
David Blaikie
5e026f55e9
PR7256: Provide a fixit for incorrect destructor declarations
...
Fix by Ismail Pazarbasi (ismail.pazarbasi@gmail.com ), review by Dmitri Gribenko.
llvm-svn: 177546
2013-03-20 17:42:13 +00:00
David Blaikie
7a84d4f864
Make target-specific test case in r177474 only run when that target is built
...
llvm-svn: 177545
2013-03-20 17:39:02 +00:00
Douglas Gregor
bb1c7e358c
Fix typo and grammaro in modules documentation
...
llvm-svn: 177544
2013-03-20 17:11:13 +00:00
Eli Bendersky
83b359d4c8
Add timing of the IR parsing code with a new -time-ir-parsing flag
...
llvm-svn: 177543
2013-03-20 17:00:25 +00:00
Douglas Gregor
2bb719f3a9
Only introduce the SDKSettings.plist dependency in modules/PCH files that don't depend on any other modules or PCH files.
...
llvm-svn: 177542
2013-03-20 16:59:53 +00:00
Manman Ren
0175461296
Exploit this-return of a callsite in a this-return function.
...
For constructors/desctructors that return 'this', if there exists a callsite
that returns 'this' and is immediately before the return instruction, make
sure we are using the return value from the callsite.
We don't need to keep 'this' alive through the callsite. It also enables
optimizations in the backend, such as tail call optimization.
Updated from r177211.
rdar://12818789
llvm-svn: 177541
2013-03-20 16:59:38 +00:00
Jakob Stoklund Olesen
7a8bb72a3a
Add some missing SSE annotations.
...
llvm-svn: 177540
2013-03-20 16:56:39 +00:00
Jakob Stoklund Olesen
50bd713b5e
Annotate remaining IIC_BIN_* instructions.
...
llvm-svn: 177539
2013-03-20 16:56:36 +00:00
Alexander Kornienko
674be0a3da
Support for pointers-to-members usage via .*
...
Summary: Added support for pointers-to-members usage via .* and a few tests.
Reviewers: djasper
Reviewed By: djasper
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D556
llvm-svn: 177537
2013-03-20 16:41:56 +00:00
Daniel Jasper
291f936351
Remove assertion that can be triggered on bad input.
...
clang-format can't do anything useful, so it should leave the remainder
of the line unchanged, but it should not assert/segfault.
llvm-svn: 177530
2013-03-20 15:58:10 +00:00
Christian Konig
ed34d0ef1a
Revert "pre-RA-sched: fix TargetOpcode usage"
...
This reverts commit 06091513c283c863296f01cc7c2e86b56bb50d02.
The code is obviously wrong, but the trivial fix causes
inefficient code generation on X86. Somebody with more
knowledge of the code needs to take a look here.
Signed-off-by: Christian König <christian.koenig@amd.com>
llvm-svn: 177529
2013-03-20 15:43:00 +00:00
Andy Gibbs
36e6ca0143
Remove unnecessary explicit typing in std::make_pair
...
llvm-svn: 177528
2013-03-20 15:42:59 +00:00
Daniel Jasper
1a32a61ad4
Fix infinite-loop in unwrapped line parser.
...
Discovered when accidentally formatting a python file :-).
llvm-svn: 177527
2013-03-20 15:12:38 +00:00
Dmitry Vyukov
6120bac6e6
tsan: correct sizes of signal-related data structures
...
llvm-svn: 177526
2013-03-20 14:57:28 +00:00
Justin Holewinski
c2d2c8939c
Move SDNode order propagation to SDNodeOrdering, which also fixes a missed
...
case of order propagation during isel.
Thanks Owen for the suggestion!
llvm-svn: 177525
2013-03-20 14:51:01 +00:00
Daniel Jasper
66dc2ec30b
Do not consider comments when adjusting to local indent style.
...
Before (when only reformatting "int b"):
int a; // comment
// comment
int b;
After:
int a; // comment
// comment
int b;
This also fixes llvm.org/PR15433.
llvm-svn: 177524
2013-03-20 14:31:47 +00:00
Dmitry Vyukov
9f94dff7a6
tsan: add missing stat descriptions
...
llvm-svn: 177523
2013-03-20 14:04:23 +00:00
Dmitry Vyukov
0954e9c01d
tsan: call fflush(0) on exit again
...
llvm-svn: 177522
2013-03-20 14:01:10 +00:00
Daniel Jasper
aab220f307
Reduce penalty for breaks after "(" for functions with parameters.
...
Before:
aaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
After:
aaaaaaaaaaaaaaaaa(
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
llvm-svn: 177521
2013-03-20 13:53:11 +00:00
Dmitry Vyukov
c638a7127e
tsan: reduce size of mutexsets from 64 to 16 mutexes
...
overflow is handled anyway
saves memory because each thread holds 1024 mutexsets
llvm-svn: 177520
2013-03-20 13:50:47 +00:00
Dmitry Vyukov
3330200d92
tsan: fix incorrect test
...
llvm-svn: 177519
2013-03-20 13:49:45 +00:00
Christian Konig
9ce2d5b862
pre-RA-sched: fix TargetOpcode usage
...
TargetOpcodes need to be treaded as Machine- and not ISD-Opcodes.
Signed-off-by: Christian König <christian.koenig@amd.com>
llvm-svn: 177518
2013-03-20 13:49:22 +00:00
Dmitry Vyukov
b62c158d81
tsan: special handling of .rodata (don't try to find races, don't keep shadow, dont' put into traces)
...
llvm-svn: 177517
2013-03-20 13:21:50 +00:00
Tobias Grosser
b921e6377b
Add option -polly-code-generator=none
...
This allows us to test Polly and the Polly optimizer without actually doing
code generation at the end. By enabling this option, we can also measure the
compile time overhead due to code generation and the cost of LLVM optimizing the
newly generated code.t
llvm-svn: 177516
2013-03-20 13:03:26 +00:00
Tobias Grosser
0fbbbf6aa7
Silence 'variable unused' warning in release mode
...
llvm-svn: 177515
2013-03-20 13:03:25 +00:00
Daniel Jasper
d1ae3588c6
Add extra indentation for multiline comparisons.
...
This seems to be generally more desired.
Before:
if (aaaaaaaa &&
bbbbbbbb >
cccccccc) {}
After:
if (aaaaaaaa &&
bbbbbbbb >
cccccccc) {}
Also: Some formatting cleanup on clang-format's files.
llvm-svn: 177514
2013-03-20 12:37:50 +00:00
Dmitry Vyukov
ccbdea956f
tsan: fix build
...
llvm-svn: 177513
2013-03-20 11:22:03 +00:00
Dmitry Vyukov
79915de6af
tsan: move trace header into 0x600000000000 range
...
eliminat thread "dead info" altogether
llvm-svn: 177512
2013-03-20 10:31:53 +00:00
Andy Gibbs
caf4116c40
Update source/DataFormatters/CMakeLists.txt to reflect actual source files.
...
llvm-svn: 177511
2013-03-20 10:30:02 +00:00
Dmitry Vyukov
b6eace8a2f
tsan: add internal_unlink() function
...
llvm-svn: 177510
2013-03-20 10:28:36 +00:00
Daniel Jasper
a127512cb4
Don't remove all indentation when in #defines.
...
Otherwise, this can become hard to read.
Before: #define A \
case 1:
After: #define A \
case 1:
llvm-svn: 177509
2013-03-20 10:23:53 +00:00
Alexey Samsonov
920b3b9a0c
[ASan] Move malloc stats collection away from AsanThreadRegistry class.
...
llvm-svn: 177508
2013-03-20 10:11:24 +00:00
Daniel Jasper
ff367af17b
Fix Makefile.
...
llvm-svn: 177507
2013-03-20 10:02:35 +00:00
Daniel Jasper
9be2c5cf17
Add clang-format binary to cfe.
...
llvm-svn: 177506
2013-03-20 09:53:23 +00:00
Daniel Jasper
b8914dd471
Improve formatting of function types in template parameters.
...
Before: A<int * (int)>;
After: A<int *(int)>;
llvm-svn: 177505
2013-03-20 09:53:18 +00:00
Daniel Jasper
168ee99ffa
Remove clang-format from clang-tools-extra.
...
llvm-svn: 177504
2013-03-20 09:52:50 +00:00
Andy Gibbs
27f065af2c
Update source/Expression/CMakeLists.txt to reflect actual source files.
...
llvm-svn: 177503
2013-03-20 09:34:46 +00:00
Dmitry Vyukov
31056968fc
asan/tsan: reduce per-thread memory allocator caches
...
256 blocks (which is 512 in reallity) seems to be too big cache,
reducing the size reduces memory consumption but does not degrade performance.
llvm-svn: 177502
2013-03-20 09:26:46 +00:00
Alexey Samsonov
cf025cb2e6
[ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry
...
llvm-svn: 177501
2013-03-20 09:23:28 +00:00
Dmitry Vyukov
b7c68ee856
tsan: fix flaky test
...
llvm-svn: 177500
2013-03-20 09:22:13 +00:00
Dmitry Vyukov
f6c4a7a2f5
tsan: fix incorrect test
...
llvm-svn: 177499
2013-03-20 09:21:49 +00:00
Chandler Carruth
0fad17527b
Fix a silly search-and-replace goof with r177495 that only broke
...
non-release builds.
llvm-svn: 177498
2013-03-20 07:40:56 +00:00
Evgeniy Stepanov
52b2d13245
[sanitizer] Enable prctl interceptor on Android.
...
llvm-svn: 177497
2013-03-20 07:35:52 +00:00
Hans Wennborg
c5f4c36029
Fix redundant comparison in gcc::Common::ConstructJob.
...
We were checking "Arch == llvm::Triple::x86_64 || Arch
== llvm::Triple::x86_64", but the rhs should actually check for
powerpc64.
Found while experimenting with a potential new Clang warning.
llvm-svn: 177496
2013-03-20 07:34:27 +00:00
Chandler Carruth
d177f86124
[SROA] Don't preserve the IR names in release builds.
...
This is espcially important because the new SROA pass goes to great
lengths to provide helpful names for debugging, and as a consequence
they can become very slow to render.
Good for between 5% and 15% of the SROA runtime on some slow test cases
such as the one in PR15412.
llvm-svn: 177495
2013-03-20 07:30:36 +00:00
Chandler Carruth
0941b66283
Move the endif to the correct line so we don't have warnings about
...
unused statistics variables.
llvm-svn: 177494
2013-03-20 06:47:00 +00:00
Chandler Carruth
5f5b616344
Introduce some new statistics to help track the exact behavior of the
...
new SROA pass.
llvm-svn: 177493
2013-03-20 06:30:46 +00:00
David Blaikie
4f278f9b80
Reorder the DIFile parameter in DINameSpace
...
Moving the DIFile parameter to immediately proceed the tag so that it will be a
common prefix with other DIScopes (once the DIFile is replaced with the raw
file/directory pair).
llvm-svn: 177492
2013-03-20 06:27:06 +00:00
Douglas Gregor
e703f2dc30
Work-in-progress documentation on the experimental modules feature.
...
llvm-svn: 177491
2013-03-20 06:25:14 +00:00