Bob Wilson
f96715d7f0
Remove broken command to copy tblgen tool.
...
tblgen has been renamed to llvm-tblgen so this command has been failing,
and it's no longer needed because llvm-tblgen is already installed by default.
llvm-svn: 147187
2011-12-22 22:12:40 +00:00
Eli Friedman
f70c862393
Some unittests for APInt rotates; patch by Cameron McInally.
...
llvm-svn: 147186
2011-12-22 22:11:19 +00:00
Douglas Gregor
852e6b7316
Make a note for an optimization that I'd like to implement, when the ASTs for local externs are sound
...
llvm-svn: 147185
2011-12-22 22:05:07 +00:00
Jim Grosbach
c4d8d2f155
Tidy up. Use predicate function a bit more liberally.
...
llvm-svn: 147184
2011-12-22 22:02:35 +00:00
Benjamin Kramer
d90b595599
Reenable building with -fvisibility-inlines-hidden.
...
This was disabled years ago because of a bug in GCC 4.1, which is
on our "broken compilers" list for other reasons. Saving ~500k
on a clang binary (Release+Asserts) is well worth dropping support
for it.
We currently disable it for shared libraries (where it would bring
the biggest win) because clang is broken (PR11642).
IMPORTANT: If you're doing incremental builds you may get tons of
linker warnings. make clean will fix them.
llvm-svn: 147182
2011-12-22 21:41:32 +00:00
Douglas Gregor
464b0ca61a
Serialize the AST reader's mapping from canonical declarations to the
...
set of (previously-canonical) declaration IDs to the module file, so
that future AST reader instances that load the module know which
declarations are merged. This is important in the fairly tricky case
where a declaration of an entity, e.g.,
@class X;
occurs before the import of a module that also declares that
entity. We merge the declarations, and record the fact that the
declaration of X loaded from the module was merged into the (now
canonical) declaration of X that we parsed.
llvm-svn: 147181
2011-12-22 21:40:42 +00:00
Rafael Espindola
6ca42c5be3
Fix incorrect relocation generation. Patch by Kristof Beyls.
...
Fixes PR11214.
llvm-svn: 147180
2011-12-22 21:36:43 +00:00
Kevin Enderby
fc85b1d1c5
Add missing triple to darwin clang driver test.
...
llvm-svn: 147179
2011-12-22 21:32:51 +00:00
Sean Callanan
694e244176
Added checking to prevent a rare crash when getting
...
the name for an external variable in the IR.
llvm-svn: 147178
2011-12-22 21:24:49 +00:00
Johnny Chen
a33843f5b4
Decorate the two test cases in TestReturnValue.py as i386 only expectedFailure, aka @expectedFailurei386.
...
llvm-svn: 147177
2011-12-22 21:14:31 +00:00
Chad Rosier
3ba90a1655
Add the actual code for r147175.
...
llvm-svn: 147176
2011-12-22 21:10:46 +00:00
Chad Rosier
388769427d
Reinstate r146578; it doesn't appear to be the cause of some recent execution-
...
time regressions. In general, it is beneficial to compile-time.
Original commit message:
Fix for bug #11429 : Wrong behaviour for switches. Small improvement for code
size heuristics.
llvm-svn: 147175
2011-12-22 21:06:36 +00:00
Johnny Chen
3239124460
Indentation.
...
llvm-svn: 147172
2011-12-22 20:21:46 +00:00
Nick Lewycky
097f47ce02
Fix build under -Wswitch by adding support for FK_ListConstructorOverloadFailed
...
to initialization sequence dumping.
llvm-svn: 147171
2011-12-22 20:21:32 +00:00
Jim Grosbach
f0d25117c6
ARM VFP add encoding of the bitcount to fixed-point<-->floating point. insns.
...
The value from the operands isn't right yet, but we weren't encoding it at
all previously. The parser needs to twiddle the values when building the
instruction.
Partial for: rdar://10558523
llvm-svn: 147170
2011-12-22 19:55:21 +00:00
Jim Grosbach
b65dd04923
Remove some bogus comments.
...
llvm-svn: 147169
2011-12-22 19:45:01 +00:00
Douglas Gregor
0475cd88c9
If we end up merging an Objective-C class with an existing Objective-C
...
class that comes from a different module file, make sure that we load
all of the pending declarations for the original declaration.
llvm-svn: 147168
2011-12-22 19:44:59 +00:00
Kevin Enderby
292dc080e0
Last part of support for generating dwarf for assembly source files. This gets
...
the clang driver to enable this when assembling a .s file. rdar://9275556
llvm-svn: 147167
2011-12-22 19:31:58 +00:00
Johnny Chen
025c58fc15
Patches for running some of the Linux tests from Dawn, thanks!
...
With some minor modification from me.
llvm-svn: 147160
2011-12-22 19:21:46 +00:00
Chris Lattner
a0a6d01d4d
fix typo
...
llvm-svn: 147159
2011-12-22 19:20:51 +00:00
Jim Grosbach
489ed5929e
ARM pre-UAL aliases. fcmp[sd].
...
llvm-svn: 147158
2011-12-22 19:20:45 +00:00
Jim Ingham
ef65160016
Improve the x86_64 return value decoder to handle most structure returns.
...
Switch from GetReturnValue, which was hardly ever used, to GetReturnValueObject
which is much more convenient.
Return the "return value object" as a persistent variable if requested.
llvm-svn: 147157
2011-12-22 19:12:40 +00:00
Sebastian Redl
6901c0de67
Overloading for initializer list construction.
...
llvm-svn: 147156
2011-12-22 18:58:38 +00:00
Sebastian Redl
867f228a55
Fix a parser bug that prevented it from correctly parsing explicit construct expressoins of the form T{args}.
...
llvm-svn: 147155
2011-12-22 18:58:29 +00:00
Rafael Espindola
250096233b
Fix an incomplete refactoring of the ppc backend. Thanks to rdivacky for reporting
...
it. It does need some some tests...
llvm-svn: 147154
2011-12-22 18:38:06 +00:00
Jim Grosbach
12ccf45bbb
ARM assembler should accept shift-by-zero for any shifted-immediate operand.
...
Just treat it as-if the shift wasn't there at all. 'as' compatibility.
rdar://10604767
llvm-svn: 147153
2011-12-22 18:04:04 +00:00
Jim Grosbach
21488b8839
ARM assembly parser canonicallize on 'lsl' for shift-by-zero form.
...
llvm-svn: 147152
2011-12-22 17:37:00 +00:00
Jim Grosbach
3794d82af5
Tidy up. Trailing whitespace.
...
llvm-svn: 147151
2011-12-22 17:17:10 +00:00
Jim Grosbach
62bffd8827
Nuke invalid comment from copy/paste.
...
llvm-svn: 147150
2011-12-22 17:04:50 +00:00
Jim Ingham
b7c91a27fb
Add check for non-NULL Variable with a NULL Type.
...
llvm-svn: 147149
2011-12-22 17:03:37 +00:00
Howard Hinnant
f5bde09cc1
credits adjustment
...
llvm-svn: 147148
2011-12-22 16:00:06 +00:00
Marshall Clow
1de4fc0dfa
Updated __cxa_current_exception_type to call __cxa_get_globals_fast - will not allocate globals
...
llvm-svn: 147147
2011-12-22 15:45:05 +00:00
Sebastian Redl
ed2e53222f
List-initialization via constructor part 1. Still needs: pretty-printing, overloading, initializer_list.
...
llvm-svn: 147145
2011-12-22 14:44:04 +00:00
Benjamin Kramer
f1fd6e394d
Give string constants generated by IRBuilder private linkage.
...
Fixes PR11640.
llvm-svn: 147144
2011-12-22 14:22:14 +00:00
Rafael Espindola
4977edd33d
Add configure support for kfreebsd and hurd. Patch by Sylvestre Ledru.
...
Fixes pr11620.
llvm-svn: 147143
2011-12-22 14:01:18 +00:00
Chandler Carruth
b024aa021d
Make the unreachable probability much much heavier. The previous
...
probability wouldn't be considered "hot" in some weird loop structures
or other compounding probability patterns. This makes it much harder to
confuse, but isn't really a principled fix. I'd actually like it if we
could model a zero probability, as it would make this much easier to
reason about. Suggestions for how to do this better are welcome.
llvm-svn: 147142
2011-12-22 09:26:37 +00:00
Craig Topper
1f2460ad43
Add AVX2 intrinsics for max, min, sign extend, and zero extend.
...
llvm-svn: 147141
2011-12-22 09:18:58 +00:00
Eli Friedman
843eef73dd
Delete stray semicolon.
...
llvm-svn: 147140
2011-12-22 06:36:54 +00:00
Ted Kremenek
5586354d7d
Fix typos in analyzer diagnostics pointed out by Matt Beaumont-Gay and Robert Purves.
...
llvm-svn: 147139
2011-12-22 06:35:52 +00:00
Argyrios Kyrtzidis
8a26c4de64
In Lexer::getCharAndSizeSlow[NoWarn] if we come up against
...
\<newline><newline>
don't consume the second newline.
Thanks to David Blaikie for pointing out the crash!
llvm-svn: 147138
2011-12-22 04:38:07 +00:00
Eli Friedman
803acb3ff2
Add support for bitcasts to vector type in Evaluate.
...
llvm-svn: 147137
2011-12-22 03:51:45 +00:00
Rafael Espindola
29abd977de
Kill the monstrosity that was ELFObjectWriter.h.
...
llvm-svn: 147136
2011-12-22 03:38:00 +00:00
Rafael Espindola
34a68afc05
Misc cleanups.
...
llvm-svn: 147135
2011-12-22 03:24:43 +00:00
Eli Friedman
2aae94fa70
Fix APInt::rotl and APInt::rotr so that they work correctly. Found while writing some code that tried to use them.
...
llvm-svn: 147134
2011-12-22 03:15:35 +00:00
Rafael Espindola
1dc45d8df4
Move the Mips only bits of the ELF writer to lib/Target/Mips.
...
llvm-svn: 147133
2011-12-22 03:03:17 +00:00
Rafael Espindola
84d00f11cd
Make the virtual methods in ARMELFObjectWriter public.
...
llvm-svn: 147132
2011-12-22 02:58:12 +00:00
Chad Rosier
1b7e2baf47
Speculatively revert r146578 to determine if it is the cause of a number of
...
performance regressions (both execution-time and compile-time) on our
nightly testers.
Original commit message:
Fix for bug #11429 : Wrong behaviour for switches. Small improvement for code
size heuristics.
llvm-svn: 147131
2011-12-22 02:40:57 +00:00
Nick Kledzik
38eec3d931
Add more merging/coalescing test cases and make core linking work for them
...
llvm-svn: 147130
2011-12-22 02:38:01 +00:00
Rafael Espindola
cc369ac0a2
Move the MBlaze ELF writer bits to lib/Target/MBlaze.
...
llvm-svn: 147129
2011-12-22 02:28:24 +00:00
Richard Smith
cc36f698af
PR11614: Mark defaulted special constructors as constexpr if their implicit
...
definition would satisfy the constexpr requirements.
llvm-svn: 147128
2011-12-22 02:22:31 +00:00