Bob Wilson
f63da12be9
Teach the DAG combiner to fold a splat of a splat. Radar 8597790.
...
Also do some minor refactoring to reduce indentation.
llvm-svn: 117558
2010-10-28 17:06:14 +00:00
Roman Divacky
41e6cebb40
Use the IDVal directly as there's no need to convert to std::string.
...
Pointed out by Chris!
llvm-svn: 117557
2010-10-28 16:57:58 +00:00
Johnny Chen
bdc5c27894
Fix the test driver as part of the fix for http://llvm.org/bugs/show_bug.cgi?id=8493
...
File name "2010-10-19-14:10:49.059609" is non-portable.
Do not use ':' in the pathname as it is not permitted on windows platforms.
llvm-svn: 117556
2010-10-28 16:32:13 +00:00
Caroline Tice
be484f413d
Add warning if no actual locations were resolved when attempting
...
to set a breakpoint.
llvm-svn: 117555
2010-10-28 16:28:56 +00:00
Johnny Chen
22b881dc34
Fix http://llvm.org/bugs/show_bug.cgi?id=8493 File name "2010-10-19-14:10:49.059609" is non-portable.
...
llvm-svn: 117554
2010-10-28 16:24:26 +00:00
Roman Divacky
fdac6365ab
Implement .equ directive as a synonym to .set.
...
llvm-svn: 117553
2010-10-28 16:22:58 +00:00
Duncan Sands
efb139130f
Testcase for PR8494 (invalid bitcode crashing the bitcode reader).
...
llvm-svn: 117552
2010-10-28 15:57:30 +00:00
Duncan Sands
89d412a140
Fix PR8494: when reading invalid bitcode, getTypeByID may return
...
a null pointer.
llvm-svn: 117551
2010-10-28 15:47:26 +00:00
Douglas Gregor
16896c45f3
Simplify ASTUnit's internal timers, by not trying to keep a pile of
...
timers to be dumped whenever the ASTUnit is destroyed. Instead, just
print the time elapsed for each operation after we perform the
operation.
llvm-svn: 117550
2010-10-28 15:44:59 +00:00
Rafael Espindola
936ba3af28
Implement R_X86_64_DTPOFF32.
...
llvm-svn: 117548
2010-10-28 15:11:03 +00:00
Rafael Espindola
2dbec3f762
Implement TLSLD.
...
llvm-svn: 117547
2010-10-28 15:02:40 +00:00
Rafael Espindola
e8f08be11c
Implement DTPOFF.
...
llvm-svn: 117546
2010-10-28 14:48:59 +00:00
Oscar Fuentes
b1f9380cac
Document LLVM_BUILD_TESTS, LLVM_INCLUDE_TESTS. New convenience target
...
UnitTests for building all the unit tests.
llvm-svn: 117545
2010-10-28 14:38:35 +00:00
Rafael Espindola
6f23eb380d
Implement TLSLDM.
...
llvm-svn: 117544
2010-10-28 14:37:09 +00:00
Rafael Espindola
b3b49bbc39
Implement VK_GOTNTPOFF and switch RelocNeedsGOT to use VariantKind.
...
llvm-svn: 117543
2010-10-28 14:22:44 +00:00
Argyrios Kyrtzidis
440ea32773
Initialize the ASTMutationListener. Thanks goes to Abramo Bagnara!
...
llvm-svn: 117541
2010-10-28 09:29:35 +00:00
Argyrios Kyrtzidis
d9f526fc2e
Switch case IDs conflict between chained PCHs; since there is no need to be global, make them local to a decl.
...
llvm-svn: 117540
2010-10-28 09:29:32 +00:00
John McCall
9de9160d55
Implement an indirect-goto optimization for goto *&&lbl and respect this
...
in the scope checker. With that done, turn an indirect goto into a
protected scope into a hard error; otherwise IR generation has to start
worrying about declarations not dominating their scopes, as exemplified
in PR8473.
If this really affects anyone, I can probably adjust this to only hard-error
on possible indirect gotos into VLA scopes rather than arbitrary scopes.
But we'll see how people cope with the aggressive change on the marginal
feature.
llvm-svn: 117539
2010-10-28 08:53:48 +00:00
Mikhail Glushenkov
080d86fecc
Reindent.
...
llvm-svn: 117538
2010-10-28 08:25:44 +00:00
Argyrios Kyrtzidis
47102d885d
Remove an assertion that hit on legitimate cases. A redeclaration may have location before the
...
first one if the redeclaration comes from a friend decl.
llvm-svn: 117537
2010-10-28 07:38:53 +00:00
Argyrios Kyrtzidis
01c2df45ff
Use the ASTMutationListener to track when a named decl gets added to a DeclContext,
...
meaning we need to rewrite its name lookup table in a chained PCH.
llvm-svn: 117536
2010-10-28 07:38:51 +00:00
Argyrios Kyrtzidis
ef80a01d04
Properly add chained template specializations.
...
llvm-svn: 117535
2010-10-28 07:38:47 +00:00
Argyrios Kyrtzidis
4729972c0f
Fix the re-serializing decls in a chained PCH mechanism.
...
llvm-svn: 117534
2010-10-28 07:38:45 +00:00
Argyrios Kyrtzidis
402dbbbd66
Use the ASTMutationListener to track added template specializations in a chained PCH.
...
llvm-svn: 117533
2010-10-28 07:38:42 +00:00
John McCall
2efaf11695
Abandon the type-visibility optimization for functions. GCC doesn't do it,
...
and it's too much trouble to push for. Fixes PR8478.
llvm-svn: 117532
2010-10-28 07:07:52 +00:00
Evan Cheng
ff310737e5
Re-commit 117518 and 117519 now that ARM MC test failures are out of the way.
...
llvm-svn: 117531
2010-10-28 06:47:08 +00:00
Evan Cheng
0165e25564
Disable most of the ARM vfp / NEON MC tests. These are too fragile to be useful.
...
I'll work with Jim, Owen, and Bill on an alternative testing strategy until
the assembly parser is available.
llvm-svn: 117530
2010-10-28 06:46:17 +00:00
NAKAMURA Takumi
959807fa37
test/Transforms/SimplifyLibCalls/floor.ll: Mark as XFAIL:win32 due to lack of nearbyintf on MSVC. [PR8466]
...
llvm-svn: 117529
2010-10-28 06:46:04 +00:00
NAKAMURA Takumi
a1d4430cc8
tools/llvm-shlib/Makefile: Support for FreeBSD and OpenBSD.
...
Thanks to Yuri Gribov and Vladimir Kirillov!
*BSD(s) have environ(7) in CRT startup and cannot resolve "environ" at linking llvm.so.
environ(7) is used inlib/System/Unix/Program.inc.
llvm-svn: 117528
2010-10-28 06:45:57 +00:00
John McCall
b7139c43ae
When computing visibility, use the latest declaration's explicit visibility
...
attribute.
Part of rdar://problem/8595231
llvm-svn: 117526
2010-10-28 04:18:25 +00:00
Ted Kremenek
eaae1adb94
Add test case for <rdar://problem/8356342>.
...
llvm-svn: 117525
2010-10-28 02:50:32 +00:00
John McCall
071df46743
Implement the newest status quo for method override checking. The idea now
...
is that we need more information to decide the exact conditions for whether
one ObjCObjectPointer is an acceptable return/parameter override for another,
so we're going to disable that entire class of warning for now. The
"forward developement" warning category, -Wmethod-signatures, can receive
unrestricted feature work, and when we're happy with how it acts, we'll
turn it on by default.
This is a pretty conservative change, and nobody's totally content with it.
llvm-svn: 117524
2010-10-28 02:34:38 +00:00
Chris Lattner
15597538ae
clarify that not having the ".o file writing" feature
...
doesn't mean that you can't get a .o file. Apparently
this is confusing :)
llvm-svn: 117523
2010-10-28 02:22:02 +00:00
Chris Lattner
4935b45d74
make it really clear that vla != flexible arrays
...
llvm-svn: 117522
2010-10-28 02:20:32 +00:00
Ted Kremenek
0abd85c7ae
Don't warn about unamed bitfield ivars in the ObjCUnusedIvarsChecker. Fixes <rdar://problem/8481311>.
...
llvm-svn: 117521
2010-10-28 02:16:22 +00:00
Evan Cheng
e2c211c1b9
Revert 117518 and 117519 for now. They changed scheduling and cause MC tests to fail. Ugh.
...
llvm-svn: 117520
2010-10-28 02:00:25 +00:00
Evan Cheng
ff1c862f8e
- Assign load / store with shifter op address modes the right itinerary classes.
...
- For now, loads of [r, r] addressing mode is the same as the
[r, r lsl/lsr/asr #] variants. ARMBaseInstrInfo::getOperandLatency() should
identify the former case and reduce the output latency by 1.
- Also identify [r, r << 2] case. This special form of shifter addressing mode
is "free".
llvm-svn: 117519
2010-10-28 01:49:06 +00:00
Evan Cheng
523fa3a2e8
Fix a major bug in operand latency computation. The use index must be adjusted
...
by the number of defs first for it to match the instruction itinerary.
llvm-svn: 117518
2010-10-28 01:46:29 +00:00
Dale Johannesen
d2b2ad093c
Ahem. Add rest of D and Q registers to ARM inline asm handling.
...
llvm-svn: 117517
2010-10-28 01:05:37 +00:00
Greg Clayton
bcf1217e28
Fixed the "frame variable -G NAME" that would print global
...
variables by name. It was accidentally getting all the globals
for the compile unit that contained the global variable named
NAME.
llvm-svn: 117516
2010-10-28 00:56:11 +00:00
Stuart Hastings
c6d136cba1
Test passes on Darwin; try to XFAIL on freebsd, linux, xp/msvc9.
...
llvm-svn: 117515
2010-10-28 00:47:58 +00:00
Dale Johannesen
9c3f6bf2bf
Fix pastos in handling of AVX cvttsd2si, PR8491.
...
Bruno, please review, but I'm pretty sure this is right.
Patch by Alex Mac!
llvm-svn: 117514
2010-10-28 00:35:54 +00:00
Owen Anderson
2ef668840a
Add correct NEON encodings for vtbl and vtbx.
...
llvm-svn: 117513
2010-10-28 00:18:46 +00:00
Owen Anderson
14be930317
Add correct NEON encodings for vext, vtrn, vuzp, and vzip.
...
llvm-svn: 117512
2010-10-27 23:56:39 +00:00
Bob Wilson
6c55007edb
Fix compiler warnings about signed/unsigned comparisons.
...
llvm-svn: 117511
2010-10-27 23:49:00 +00:00
Dale Johannesen
16bb87a90e
Teach InstCombine not to use Add and Neg on FP. PR 8490.
...
llvm-svn: 117510
2010-10-27 23:45:18 +00:00
Evan Cheng
59bbc545e0
Shifter ops are not always free. Do not fold them (especially to form
...
complex load / store addressing mode) when they have higher cost and
when they have more than one use.
llvm-svn: 117509
2010-10-27 23:41:30 +00:00
Dale Johannesen
7fd51bc1e6
Add D and Q register names to ARM inline asm handling.
...
No aliasing is needed, these work as given in the BE.
llvm-svn: 117508
2010-10-27 23:34:42 +00:00
Devang Patel
1bee63f325
Fix context info for enums.
...
Radar 8595129
llvm-svn: 117507
2010-10-27 23:23:58 +00:00
Evan Cheng
cbdf7e874a
Putting r117193 back except for the compile time cost. Rather than assuming fallthroughs uses all registers, just gather the union of all successor liveins.
...
llvm-svn: 117506
2010-10-27 23:17:17 +00:00