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
Pete Cooper
1c3b1efa58
Hoisted some loop invariant smallvector lookups out of a MachineLICM loop
...
llvm-svn: 147127
2011-12-22 02:13:25 +00:00
Rafael Espindola
428b9ee036
Fix cmake.
...
llvm-svn: 147126
2011-12-22 02:06:17 +00:00
Pete Cooper
1eed5b51e8
Changed MachineLICM to use a worklist list MachineCSE instead of recursion.
...
Fixes <rdar://problem/10584116>
llvm-svn: 147125
2011-12-22 02:05:40 +00:00
Rafael Espindola
38a400df3b
Move PPC bits to lib/Target/PowerPC.
...
llvm-svn: 147124
2011-12-22 01:57:09 +00:00
Douglas Gregor
022857e03d
When deserializing an Objective-C class, check whether we have another
...
declaration of that same class that either came from some other module
or occurred in the translation unit loading the module. In this case,
we need to merge the two redeclaration chains immediately so that all
such declarations have the same canonical declaration in the resulting
AST (even though they don't in the module files we've imported).
Focusing on Objective-C classes until I'm happy with the design, then
I'll both (1) extend this notion to other kinds of declarations, and
(2) optimize away this extra checking when we're not dealing with
modules. For now, doing this checking for PCH files/preambles gives us
better testing coverage.
llvm-svn: 147123
2011-12-22 01:48:48 +00:00
Ted Kremenek
299cfb7a02
Enhance AnalysisDeclContext::getReferencedBlockVars() to understand PseudoObjExprs. It turns out
...
that the information collected by this method is a super set of the captured variables in BlockDecl.
llvm-svn: 147122
2011-12-22 01:30:46 +00:00
Rafael Espindola
2da9777cef
Hopefully fix the cmake build.
...
llvm-svn: 147121
2011-12-22 01:11:01 +00:00
Richard Smith
ca2cfbf5ce
PR11637: implement special-case constant evaluation for char arrays initialized
...
by string literals.
llvm-svn: 147120
2011-12-22 01:07:19 +00:00
Rafael Espindola
4449b21294
Fix name in comments.
...
llvm-svn: 147119
2011-12-22 01:06:53 +00:00
Akira Hatanaka
e2eed9649e
Local dynamic TLS model for direct object output. Create the correct TLS MIPS
...
ELF relocations.
Patch by Jack Carter.
llvm-svn: 147118
2011-12-22 01:05:17 +00:00
Richard Smith
32a756b7ce
Unbreak cmake build after r147115.
...
llvm-svn: 147117
2011-12-22 01:03:35 +00:00
Ted Kremenek
c177d9faf5
Fix regression in LiveVariables when reasoning about variables captured by blocks.
...
llvm-svn: 147116
2011-12-22 00:46:32 +00:00
Rafael Espindola
a0124055b1
Move the ARM specific parts of the ELF writer to Target/ARM.
...
llvm-svn: 147115
2011-12-22 00:37:50 +00:00
Rafael Espindola
6faa1533fb
getEFlags is const.
...
llvm-svn: 147114
2011-12-22 00:21:50 +00:00
Lang Hames
fc8a4bc969
Fixed typo.
...
llvm-svn: 147113
2011-12-22 00:12:51 +00:00
Eli Friedman
1148b0f13c
Fix a silly mistake in this test that somehow slipped into my last commit.
...
llvm-svn: 147112
2011-12-22 00:06:39 +00:00
Eli Friedman
5c9cd7a8a3
Fix a failure (which led to a crash) in constant emission code with vector compound literals.
...
llvm-svn: 147111
2011-12-22 00:04:00 +00:00
Howard Hinnant
2aa433398a
Updated spec.html regarding __cxa_uncaught_exception.
...
llvm-svn: 147110
2011-12-22 00:03:36 +00:00
Jim Grosbach
2b80dad572
ARM NEON mnemonic aliase for vrecpeq.
...
llvm-svn: 147109
2011-12-21 23:52:37 +00:00
Howard Hinnant
22f28b2d52
Forgot to increment uncaughtExceptions in __cxa_rethrow_primary_exception
...
llvm-svn: 147108
2011-12-21 23:48:05 +00:00
Sean Callanan
960534c866
Made IRForTarget error out correctly when it can't
...
complete the result type, preventing crashes later.
llvm-svn: 147107
2011-12-21 23:44:05 +00:00
Howard Hinnant
e04f51662c
Added __cxa_increment_exception_refcount, __cxa_decrement_exception_refcount, __cxa_current_primary_exception, __cxa_rethrow_primary_exception
...
llvm-svn: 147106
2011-12-21 23:32:11 +00:00
Nick Kledzik
f46669c828
Cleaned up Atom attribues some more. Added lots of doxygen comments
...
llvm-svn: 147105
2011-12-21 23:29:36 +00:00
Jim Grosbach
7869d8c01e
ARM VFP optional data type on VMOV GPR<-->SPR.
...
llvm-svn: 147104
2011-12-21 23:24:15 +00:00
Jim Grosbach
260b4b336a
ARM NEON optional data type on VSWP instructions.
...
llvm-svn: 147103
2011-12-21 23:09:28 +00:00
Jim Grosbach
a50e24fcb3
ARM NEON mnemonic aliases for vzipq and vswpq.
...
llvm-svn: 147102
2011-12-21 23:04:33 +00:00
Jakub Staszak
9061616f9e
Revert patch from 147090. There is not point to make code less readable if we
...
don't get any serious benefit there.
llvm-svn: 147101
2011-12-21 23:02:08 +00:00
Jim Grosbach
1152cc0cad
ARM asm parser should be more lenient w/ .thumb_func directive.
...
Rather than require the symbol to be explicitly an argument of the directive,
allow it to look ahead and grab the symbol from the next non-whitespace
line.
rdar://10611140
llvm-svn: 147100
2011-12-21 22:30:16 +00:00
Sean Callanan
20bb3aa53a
The "desired result type" code in the expression
...
parser has hitherto been an implementation waiting
for a use. I have now tied the '-o' option for
the expression command -- which indicates that the
result is an Objective-C object and needs to be
printed -- to the ExpressionParser, which
communicates the desired type to Clang.
Now, if the result of an expression is determined
by an Objective-C method call for which there is
no type information, that result is implicitly
cast to id if and only if the -o option is passed
to the expression command. (Otherwise if there
is no explicit cast Clang will issue an error.
This behavior is identical to what happened before
r146756.)
Also added a testcase for -o enabled and disabled.
llvm-svn: 147099
2011-12-21 22:22:58 +00:00
Dan Gohman
51c81685a8
Fix a copy+pasto. No testcase, because the symptoms of dereferencing
...
an invalid iterator aren't reproducible. rdar://10614085.
llvm-svn: 147098
2011-12-21 21:43:50 +00:00
Sean Callanan
b952354d58
I accidentally committed some changes to the
...
Xcode workspace that aren't actually desirable.
Reverted.
llvm-svn: 147097
2011-12-21 21:30:33 +00:00
Jim Grosbach
8c59bbc1ed
Thumb2 assembly parsing of 'mov rd, rn, rrx'.
...
Maps to the RRX instruction. Missed this case earlier.
rdar://10615373
llvm-svn: 147096
2011-12-21 21:04:19 +00:00
Chad Rosier
3172488cc0
Fix 80-column violations.
...
llvm-svn: 147095
2011-12-21 20:59:09 +00:00
Jim Grosbach
b3ef713e44
Thumb2 assembly parsing of 'mov(register shifted register)' aliases.
...
These map to the ASR, LSR, LSL, ROR instruction definitions.
rdar://10615373
llvm-svn: 147094
2011-12-21 20:54:00 +00:00
Nick Lewycky
c186d07bbe
Continue counting intrinsics as instructions (except when they aren't, such as
...
debug info) and for being vector operations. Fixes regression from r147037.
llvm-svn: 147093
2011-12-21 20:26:03 +00:00
Nick Lewycky
281e2747e0
Fix typo and spacing, no functionality change.
...
llvm-svn: 147092
2011-12-21 20:21:55 +00:00
Argyrios Kyrtzidis
e5cdd080ba
In Lexer::getCharAndSizeSlow[NoWarn] make sure we don't go over the end of the buffer
...
when the end of the buffer is immediately after an escaped newline.
Fixes http://llvm.org/PR10153 .
llvm-svn: 147091
2011-12-21 20:19:55 +00:00
Jakub Staszak
df5133455f
- Change a few operator[] to lookup which is cheaper.
...
- Add some constantness.
llvm-svn: 147090
2011-12-21 20:18:54 +00:00
Lang Hames
e49fbd0755
Oops - LiveIntervalUnion.cpp file does use std::find. Moving STL header include to LiveIntervalUnion.cpp file.
...
llvm-svn: 147089
2011-12-21 20:16:11 +00:00
Lang Hames
93176d72e7
Remove disused STL header include.
...
llvm-svn: 147088
2011-12-21 20:12:54 +00:00
Rafael Espindola
f61ff34252
Switch from WriteEFlags to getEFlags in preparation for moving it
...
to Target/.
llvm-svn: 147087
2011-12-21 20:09:46 +00:00
Johnny Chen
4b730a73a2
Fix wrong test method name.
...
llvm-svn: 147072
2011-12-21 19:56:51 +00:00
Jakob Stoklund Olesen
3588a43e3a
Move common code into an MRI function.
...
llvm-svn: 147071
2011-12-21 19:50:05 +00:00
Fariborz Jahanian
a4b2a86353
objc, objc rewriter. Fixes couple of bugs one
...
because of recent refactoring and one in the
rewriter.
llvm-svn: 147070
2011-12-21 19:48:07 +00:00