David Blaikie
431153cf2a
refactoring file/directory for namespace debug info
...
(this is a paired commit with an LLVM change to DIBuilder - expect some
buildbot skew/fallout)
llvm-svn: 177565
2013-03-20 19:38:29 +00:00
Michael J. Spencer
417c19923b
[ELF][Reader] Add debug message to print all inputs the linker actually read.
...
llvm-svn: 177564
2013-03-20 19:26:10 +00:00
Michael J. Spencer
da384eebe5
[ELF][Reader][Perf] Only do loookup once.
...
llvm-svn: 177563
2013-03-20 19:25:58 +00:00
Michael J. Spencer
602ffc13b8
[ELF][Reader] Refactor how relocations are read. Improves performance.
...
This changes from reading each relocation individually for each section to just
storing the range of relocations. It also counts the relocations to preallocate
the _references array.
llvm-svn: 177562
2013-03-20 19:25:47 +00:00
Michael J. Spencer
55a7070bea
[ELF][Reader] Remove static ordinal.
...
llvm-svn: 177561
2013-03-20 19:25:34 +00:00
David Blaikie
a354eedcdb
Enhance debug info namespace test to check for context/scope reference
...
The differing file (due to the #line directive in the original source) is for
future testing improvements coming soon.
llvm-svn: 177560
2013-03-20 19:14:16 +00:00
David Blaikie
9e38bde14d
Enhance debug info namespace test to check for context/scope reference
...
The #line directive is mostly for backend testing (keeping these files matching
should simplify maintenance somewhat) though the corresponding backend test
improvement/update doesn't verify the file information directly just yet.
Coming in a later iteration.
llvm-svn: 177559
2013-03-20 19:10:57 +00:00
Enrico Granata
bdbda93f35
Cleanup to the ObjC runtime to remove the now useless ClassDescriptor_Invalid
...
llvm-svn: 177558
2013-03-20 19:04:28 +00:00
Michael J. Spencer
9dc5489441
memcpy instead of copy_n. Faster than copy_n on MSVC :(.
...
llvm-svn: 177557
2013-03-20 18:58:07 +00:00
Michael J. Spencer
fa405277cb
Devirtualize Reference::kind.
...
Improves performance.
llvm-svn: 177556
2013-03-20 18:57:52 +00:00
Michael J. Spencer
0f3dd616bd
Devirtualize File::kind.
...
This is the standard way of implementing LLVM RTTI.
llvm-svn: 177555
2013-03-20 18:57:27 +00:00
Michael J. Spencer
6580d1f226
Set ordinals correctly.
...
This actually doesn't change behavior with the current LinkerInvocation, but
it's needed when you make reading parallel.
llvm-svn: 177554
2013-03-20 18:56:57 +00:00
Fariborz Jahanian
0b171939dc
Do the error recovery for @end only.
...
I am not sure how much we can improve for
when a randon ObjC keyword is thrown into the
ivar decl. block. // rdar://6854840
llvm-svn: 177553
2013-03-20 18:45:49 +00:00
Sean Silva
99c9d9810b
[docs] Point inquisitive users to existing module.map files.
...
llvm-svn: 177552
2013-03-20 18:37:47 +00:00
Sean Silva
28e0def9f3
[docs] Prominently note that modules are expemental.
...
And ask for people to try it out and send us bug reports!
llvm-svn: 177551
2013-03-20 18:37:42 +00:00
Eric Christopher
71fad78ff4
Remove blank line before block comment.
...
llvm-svn: 177550
2013-03-20 18:25:12 +00:00
Fariborz Jahanian
089f39ec06
Objective-C [qoi] more gracefull recovery when
...
'}' is missing for the ivar declarations.
// rdar://6854840
llvm-svn: 177549
2013-03-20 18:09:33 +00:00
Tobias Grosser
ecfe21b792
Remove dependence on canonical induction variable
...
When using the scev based code generation, we now do not rely on the presence
of a canonical induction variable any more. This commit prepares the path to
(conditionally) disable the induction variable canonicalization pass.
llvm-svn: 177548
2013-03-20 18:03:18 +00:00
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