oota-llvm.git
14 years agoTest commit.
Tanya Lattner [Tue, 11 May 2010 16:47:42 +0000 (16:47 +0000)]
Test commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103478 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTest commit.
Tanya Lattner [Tue, 11 May 2010 16:46:45 +0000 (16:46 +0000)]
Test commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103477 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove the TargetLowering::getSubtarget() virtual function, which
Dan Gohman [Tue, 11 May 2010 16:21:03 +0000 (16:21 +0000)]
Remove the TargetLowering::getSubtarget() virtual function, which
was unused. TargetMachine::getSubtarget() is used instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103474 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMake SPU backend not assert on jump tables.
Kalle Raiskila [Tue, 11 May 2010 11:00:02 +0000 (11:00 +0000)]
Make SPU backend not assert on jump tables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103466 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSelect @llvm.trap to the special B with 1111 condition (i.e. trap) instruction.
Evan Cheng [Tue, 11 May 2010 07:26:32 +0000 (07:26 +0000)]
Select @llvm.trap to the special B with 1111 condition (i.e. trap) instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103459 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFixes for Microsoft Visual Studio 2010, from Steven Watanabe!
Douglas Gregor [Tue, 11 May 2010 06:17:44 +0000 (06:17 +0000)]
Fixes for Microsoft Visual Studio 2010, from Steven Watanabe!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103457 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDon't create a StringRef with a NULL value.
Bill Wendling [Tue, 11 May 2010 01:33:39 +0000 (01:33 +0000)]
Don't create a StringRef with a NULL value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103455 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoExtended the edis "IsBranch" property to call
Sean Callanan [Tue, 11 May 2010 01:27:08 +0000 (01:27 +0000)]
Extended the edis "IsBranch" property to call
instructions as well.  Added support for checking
this to the llvm-mc tester as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103454 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoModel some vst3 and vst4 with reg_sequence.
Evan Cheng [Tue, 11 May 2010 01:19:40 +0000 (01:19 +0000)]
Model some vst3 and vst4 with reg_sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103453 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoThe getDefaultSubtargetFeatures method of SubtargetFeature did actually return a
Bill Wendling [Tue, 11 May 2010 00:30:02 +0000 (00:30 +0000)]
The getDefaultSubtargetFeatures method of SubtargetFeature did actually return a
string of features for that target. However LTO was using that string to pass
into the "create target machine" stuff. That stuff needed the feature string to
be in a particular form. In particular, it needed the CPU specified first and
then the attributes. If there isn't a CPU specified, it required it to be blank
-- e.g., ",+altivec". Yuck.

Modify the getDefaultSubtargetFeatures method to be a non-static member
function. For all attributes for a specific subtarget, it will add them in like
normal. It will also take a CPU string so that it can satisfy this horrible
syntax.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103451 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoIt's not safe eliminate copies where src and dst have different sub-register indices.
Evan Cheng [Tue, 11 May 2010 00:20:03 +0000 (00:20 +0000)]
It's not safe eliminate copies where src and dst have different sub-register indices.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103450 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEnsure REG_SEQUENCE source operands are unique.
Evan Cheng [Tue, 11 May 2010 00:04:31 +0000 (00:04 +0000)]
Ensure REG_SEQUENCE source operands are unique.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103449 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMC/Mach-O: Fix another mismatch with .weak_definition, we shouldn't use a
Daniel Dunbar [Mon, 10 May 2010 23:15:20 +0000 (23:15 +0000)]
MC/Mach-O: Fix another mismatch with .weak_definition, we shouldn't use a
scattered relocation entry with a .weak_definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103443 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMC/Mach-O: Factor out doesSymbolRequireExternRelocation.
Daniel Dunbar [Mon, 10 May 2010 23:15:13 +0000 (23:15 +0000)]
MC/Mach-O: Factor out doesSymbolRequireExternRelocation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103442 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoIndentation.
Evan Cheng [Mon, 10 May 2010 23:08:19 +0000 (23:08 +0000)]
Indentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103441 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEnable multiple Compile Units in one module.
Devang Patel [Mon, 10 May 2010 22:49:55 +0000 (22:49 +0000)]
Enable multiple Compile Units in one module.
This means now 'llvm-ld a.bc b.bc' will preserve debug info appropriately.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103439 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMC/Mach-O: Explicitly track atoms, as represented by their defining symbol, for each...
Daniel Dunbar [Mon, 10 May 2010 22:45:09 +0000 (22:45 +0000)]
MC/Mach-O: Explicitly track atoms, as represented by their defining symbol, for each fragment (not yet used).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103438 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoModel some vld3 instructions with REG_SEQUENCE.
Evan Cheng [Mon, 10 May 2010 21:26:24 +0000 (21:26 +0000)]
Model some vld3 instructions with REG_SEQUENCE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103437 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoIt's not safe to propagate implicit_def that defines part of a register.
Evan Cheng [Mon, 10 May 2010 21:25:30 +0000 (21:25 +0000)]
It's not safe to propagate implicit_def that defines part of a register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103436 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClear RegSequences vector after eliminating REG_SEQUENCE instructions.
Evan Cheng [Mon, 10 May 2010 21:24:55 +0000 (21:24 +0000)]
Clear RegSequences vector after eliminating REG_SEQUENCE instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103435 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agothis really is needed. :(
Chris Lattner [Mon, 10 May 2010 21:23:48 +0000 (21:23 +0000)]
this really is needed. :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103434 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agojust remove this, it isn't needed.
Chris Lattner [Mon, 10 May 2010 21:01:47 +0000 (21:01 +0000)]
just remove this, it isn't needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103432 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agosimplify more.
Chris Lattner [Mon, 10 May 2010 20:59:18 +0000 (20:59 +0000)]
simplify more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103431 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSimplify by using startswith instead of substr.
Chris Lattner [Mon, 10 May 2010 20:58:42 +0000 (20:58 +0000)]
Simplify by using startswith instead of substr.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103430 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix PR7105 by enumerating MDNodes on all @llvm.foo
Chris Lattner [Mon, 10 May 2010 20:53:17 +0000 (20:53 +0000)]
fix PR7105 by enumerating MDNodes on all @llvm.foo
function calls, not just recognized intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103428 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix a pretty obvious typo. We test things before committing them, right?
Chris Lattner [Mon, 10 May 2010 20:51:06 +0000 (20:51 +0000)]
fix a pretty obvious typo.  We test things before committing them, right?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103427 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR6875:
David Greene [Mon, 10 May 2010 20:24:27 +0000 (20:24 +0000)]
Fix PR6875:

This includes a patch by Roman Divacky to fix the initial crash.

Move the actual addition of passes from *PassManager::add to
*PassManager::addImpl.  That way, when adding printer passes we won't
recurse infinitely.

Finally, check to make sure that we are actually adding a FunctionPass
to a FunctionPassManager before doing a print before or after it.
Immutable passes are strange in this way because they aren't
FunctionPasses yet they can be and are added to the FunctionPassManager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103425 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd an explicit keyword.
Dan Gohman [Mon, 10 May 2010 20:14:02 +0000 (20:14 +0000)]
Add an explicit keyword.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103424 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd new configure option, --disable-timestamps, intended to turn off anything which...
Daniel Dunbar [Mon, 10 May 2010 20:11:56 +0000 (20:11 +0000)]
Add new configure option, --disable-timestamps, intended to turn off anything which would mess up binary/object comparisons. Currently:
 - Disables 'Built on ...' in 'foo --version'.
 - Disables timestamps from being embedded into .dir files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103423 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix whitespace in debug output to be consistent.
Dan Gohman [Mon, 10 May 2010 20:07:44 +0000 (20:07 +0000)]
Fix whitespace in debug output to be consistent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103422 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDelete an obsolete comment.
Dan Gohman [Mon, 10 May 2010 19:47:21 +0000 (19:47 +0000)]
Delete an obsolete comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103420 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoBe careful with operand promotion. For a binary operation, the source operands may...
Evan Cheng [Mon, 10 May 2010 19:03:57 +0000 (19:03 +0000)]
Be careful with operand promotion. For a binary operation, the source operands may be the same. PR7018. rdar://7939869.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103419 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTest case for 103414.
Devang Patel [Mon, 10 May 2010 17:49:40 +0000 (17:49 +0000)]
Test case for 103414.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103415 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoModel vld2 / vst2 with reg_sequence.
Evan Cheng [Mon, 10 May 2010 17:34:18 +0000 (17:34 +0000)]
Model vld2 / vst2 with reg_sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103411 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRe-defined valno is always valno even for partial re-def's.
Evan Cheng [Mon, 10 May 2010 17:33:49 +0000 (17:33 +0000)]
Re-defined valno is always valno even for partial re-def's.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103410 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR7096. When a block containing multiple defs is tail duplicated, the
Bob Wilson [Mon, 10 May 2010 17:14:26 +0000 (17:14 +0000)]
Fix PR7096.  When a block containing multiple defs is tail duplicated, the
SSAUpdater for the value from the first def may see uses of undefined values,
because the later defs will not have been updated yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103407 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix encoding of 'sf' and 'sfh' instructions.
Kalle Raiskila [Mon, 10 May 2010 08:13:49 +0000 (08:13 +0000)]
Fix encoding of 'sf' and 'sfh' instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103399 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd command line option --gcc to bugpoint.
Kalle Raiskila [Mon, 10 May 2010 07:38:37 +0000 (07:38 +0000)]
Add command line option --gcc to bugpoint.
Remove sending duplicate of the --gcc-tool-args parameters to gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103397 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd an assertion to catch attempts to access off the end of the array.
Duncan Sands [Mon, 10 May 2010 04:54:28 +0000 (04:54 +0000)]
Add an assertion to catch attempts to access off the end of the array.
Based on a patch by Javier Martinez.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103391 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoremove a dead file.
Chris Lattner [Sun, 9 May 2010 17:34:13 +0000 (17:34 +0000)]
remove a dead file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103383 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoupdated handling dllexport in X86AsmPrinter
Nathan Jeffords [Sun, 9 May 2010 08:40:06 +0000 (08:40 +0000)]
updated handling dllexport in X86AsmPrinter

changed dllexport code to use EmitBytes instead of EmitRawText, and changed the export option to use /EXPORT: instead of -export: on the windows platform

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103377 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomade COFF target dllexport logic apply to all subtargets
Nathan Jeffords [Sun, 9 May 2010 05:52:28 +0000 (05:52 +0000)]
made COFF target dllexport logic apply to all subtargets

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103373 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agotest commit, added a comment to MCSectionCOFF::PrintSwitchToSection function
Nathan Jeffords [Sun, 9 May 2010 05:49:00 +0000 (05:49 +0000)]
test commit, added a comment to MCSectionCOFF::PrintSwitchToSection function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103372 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agomake simplifycfg insert an llvm.trap before the 'unreachable' it introduces
Chris Lattner [Sat, 8 May 2010 22:15:59 +0000 (22:15 +0000)]
make simplifycfg insert an llvm.trap before the 'unreachable' it introduces
when it detects undefined behavior.  llvm.trap generally codegens into some
thing really small (e.g. a 2 byte ud2 instruction on x86) and debugging this
sort of thing is "nontrivial".  For example, we now compile:

void foo() { *(int*)0 = 42; }

into:

_foo:
pushl %ebp
movl %esp, %ebp
ud2

Some may even claim that this is a security hole, though that seems dubious
to me.  This addresses rdar://7958343 - Optimizing away null dereference
potentially allows arbitrary code execution

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103356 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTeach instcombine to transform a bitcast/(zext|trunc)/bitcast sequence
Chris Lattner [Sat, 8 May 2010 21:50:26 +0000 (21:50 +0000)]
Teach instcombine to transform a bitcast/(zext|trunc)/bitcast sequence
with a vector input and output into a shuffle vector.  This sort of
sequence happens when the input code stores with one type and reloads
with another type and then SROA promotes to i96 integers, which make
everyone sad.

This fixes rdar://7896024

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103354 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR7052, patch by Jakub Staszak!
Chris Lattner [Sat, 8 May 2010 20:01:44 +0000 (20:01 +0000)]
Fix PR7052, patch by Jakub Staszak!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103347 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agobreak coff symbol definition stuff out into proper MCStreamer callbacks,
Chris Lattner [Sat, 8 May 2010 19:54:22 +0000 (19:54 +0000)]
break coff symbol definition stuff out into proper MCStreamer callbacks,
patch by Nathan Jeffords!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103346 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoReadd testcase.
Bill Wendling [Sat, 8 May 2010 04:47:54 +0000 (04:47 +0000)]
Readd testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103335 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRun interrupt routines as part of report_fatal_error, since we are failing
Daniel Dunbar [Sat, 8 May 2010 02:10:36 +0000 (02:10 +0000)]
Run interrupt routines as part of report_fatal_error, since we are failing
ungracefully.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103334 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanup
Daniel Dunbar [Sat, 8 May 2010 02:10:34 +0000 (02:10 +0000)]
Add llvm::sys::RunInterruptHandlers(), which runs the registered SIGINT cleanup
stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103333 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoWhen pruning candidate formulae out of an LSRUse, update the
Dan Gohman [Fri, 7 May 2010 23:36:59 +0000 (23:36 +0000)]
When pruning candidate formulae out of an LSRUse, update the
LSRUse's Regs set after all pruning is done, rather than trying
to do it on the fly, which can produce an incomplete result.

This fixes a case where heuristic pruning was stripping all
formulae from a use, which led the solver to enter an infinite
loop.

Also, add a few asserts to diagnose this kind of situation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103328 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoInstead of just verifying compile unit, verify entire type, variable, namespace etc..
Devang Patel [Fri, 7 May 2010 23:33:41 +0000 (23:33 +0000)]
Instead of just verifying compile unit, verify entire type, variable, namespace etc..

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103327 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove DIGlobal.
Devang Patel [Fri, 7 May 2010 23:19:07 +0000 (23:19 +0000)]
Remove DIGlobal.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103325 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove. Don't XFAIL.
Bill Wendling [Fri, 7 May 2010 23:09:17 +0000 (23:09 +0000)]
Remove. Don't XFAIL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103321 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd DINameSpace::Verify().
Devang Patel [Fri, 7 May 2010 23:04:32 +0000 (23:04 +0000)]
Add DINameSpace::Verify().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103318 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTemorarily revert r101984.
Bill Wendling [Fri, 7 May 2010 22:45:36 +0000 (22:45 +0000)]
Temorarily revert r101984.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103314 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClang is dying on this with an ambiguous conversion sequence. We're working on it
Douglas Gregor [Fri, 7 May 2010 22:28:25 +0000 (22:28 +0000)]
Clang is dying on this with an ambiguous conversion sequence. We're working on it

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103312 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoSDDbgValues are apparently not being legalized. Fix a symptom of the problem,
Dan Gohman [Fri, 7 May 2010 22:19:08 +0000 (22:19 +0000)]
SDDbgValues are apparently not being legalized. Fix a symptom of the problem,
and not the real problem itself, by dropping debug info for i128 values.
rdar://7958162.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103310 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMinimally fix this code to not abort on mdnodes with integer data
Dan Gohman [Fri, 7 May 2010 22:15:24 +0000 (22:15 +0000)]
Minimally fix this code to not abort on mdnodes with integer data
wider than 64 bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103309 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoVerify variable directly.
Devang Patel [Fri, 7 May 2010 22:04:20 +0000 (22:04 +0000)]
Verify variable directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103305 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoadd COFF support for COMDAT sections, patch by Nathan Jeffords!
Chris Lattner [Fri, 7 May 2010 21:49:09 +0000 (21:49 +0000)]
add COFF support for COMDAT sections, patch by Nathan Jeffords!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103304 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoVerify entire type descriptor not just tag.
Devang Patel [Fri, 7 May 2010 21:45:47 +0000 (21:45 +0000)]
Verify entire type descriptor not just tag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103303 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix i386 relocations to Weak Definitions. The relocation entries should be
Kevin Enderby [Fri, 7 May 2010 21:44:23 +0000 (21:44 +0000)]
Fix i386 relocations to Weak Definitions.  The relocation entries should be
external and the item to be relocated should not have the address of the
symbol added in.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103302 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoVerify compile unit also.
Devang Patel [Fri, 7 May 2010 21:42:24 +0000 (21:42 +0000)]
Verify compile unit also.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103300 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix PR 7087, and probably other things, by extending
Dale Johannesen [Fri, 7 May 2010 21:35:53 +0000 (21:35 +0000)]
Fix PR 7087, and probably other things, by extending
getConstantFP to accept the two supported long double
target types.  This was not the original intent, but
there are other places that assume this works and it's
easy enough to do.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103299 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoWrap const MDNode * inside DIDescriptor.
Devang Patel [Fri, 7 May 2010 20:54:48 +0000 (20:54 +0000)]
Wrap const MDNode * inside DIDescriptor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103295 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate test to use valid debug info.
Devang Patel [Fri, 7 May 2010 20:34:00 +0000 (20:34 +0000)]
Update test to use valid debug info.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103287 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoremove DIDescriptor::getNode()
Devang Patel [Fri, 7 May 2010 18:36:34 +0000 (18:36 +0000)]
remove DIDescriptor::getNode()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103278 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoClean up the conditional for handling of sign_extend_inreg based on
Jim Grosbach [Fri, 7 May 2010 18:34:55 +0000 (18:34 +0000)]
Clean up the conditional for handling of sign_extend_inreg based on
whether the extract instructions are available.

rdar://7956878

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103277 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse overloaded operators instead of DIDescriptor::getNode()
Devang Patel [Fri, 7 May 2010 18:19:32 +0000 (18:19 +0000)]
Use overloaded operators instead of DIDescriptor::getNode()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103276 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAvoid DIDescriptor::getNode(). Use overloaded operators instead.
Devang Patel [Fri, 7 May 2010 18:11:54 +0000 (18:11 +0000)]
Avoid DIDescriptor::getNode(). Use overloaded operators instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103272 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTesting svn access with a note added to documentation.
Kalle Raiskila [Fri, 7 May 2010 18:06:28 +0000 (18:06 +0000)]
Testing svn access with a note added to documentation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103271 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate CMake build.
Ted Kremenek [Fri, 7 May 2010 17:29:48 +0000 (17:29 +0000)]
Update CMake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103269 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoswitch MCSectionCOFF from a syntactic to semantic representation,
Chris Lattner [Fri, 7 May 2010 17:17:41 +0000 (17:17 +0000)]
switch MCSectionCOFF from a syntactic to semantic representation,
patch by Peter Housel!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103267 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUpdate CMake build.
Ted Kremenek [Fri, 7 May 2010 17:13:20 +0000 (17:13 +0000)]
Update CMake build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103266 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCorrect some bogus target triples.
Duncan Sands [Fri, 7 May 2010 17:03:48 +0000 (17:03 +0000)]
Correct some bogus target triples.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103265 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd some words to this output to indicate what the numbers mean.
Dan Gohman [Fri, 7 May 2010 16:39:27 +0000 (16:39 +0000)]
Add some words to this output to indicate what the numbers mean.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103264 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agodon't pass -f to llc, it doesn't have it anymore. Patch by Kevin Fan (PR7090)
Chris Lattner [Fri, 7 May 2010 16:27:04 +0000 (16:27 +0000)]
don't pass -f to llc, it doesn't have it anymore.  Patch by Kevin Fan (PR7090)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103263 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd a simple module-level debug info printer. It just sets up a
Dan Gohman [Fri, 7 May 2010 16:22:32 +0000 (16:22 +0000)]
Add a simple module-level debug info printer. It just sets up a
DebugInfoFinder and iterates over all the contents calling print.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103262 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoFix the new print functions to call print instead of dump.
Dan Gohman [Fri, 7 May 2010 16:17:22 +0000 (16:17 +0000)]
Fix the new print functions to call print instead of dump.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103261 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdd an LLVM IR version of code sinking. This uses the same simple algorithm
Dan Gohman [Fri, 7 May 2010 15:40:13 +0000 (15:40 +0000)]
Add an LLVM IR version of code sinking. This uses the same simple algorithm
as MachineSink, but it isn't constrained by MachineInstr-level details.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103257 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConst-ify some stuff.
Dan Gohman [Fri, 7 May 2010 15:36:10 +0000 (15:36 +0000)]
Const-ify some stuff.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103256 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoConvert the DebugInfo classes dump() methods into print(raw_ostream &)
Dan Gohman [Fri, 7 May 2010 15:30:29 +0000 (15:30 +0000)]
Convert the DebugInfo classes dump() methods into print(raw_ostream &)
methods, and add dump functions implemented in terms of the print.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103254 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDocument graphviz passes for the (post) dominator tree.
Tobias Grosser [Fri, 7 May 2010 09:33:18 +0000 (09:33 +0000)]
Document graphviz passes for the (post) dominator tree.

Add documentation for:
  -dot-dom
  -dot-dom-only
  -dot-postdom
  -dot-postdom-only
  -view-dom
  -view-dom-only
  -view-postdom
  -view-postdom-only

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103251 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse VLD2q32 / VST2q32 to reload / spill QQ (pair of Q) registers when stack slot...
Evan Cheng [Fri, 7 May 2010 02:04:02 +0000 (02:04 +0000)]
Use VLD2q32 / VST2q32 to reload / spill QQ (pair of Q) registers when stack slot is sufficiently aligned. Use VLDMD / VSTMD otherwise.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103235 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoUse VSTMD / VLDMD for spills and reloads of Q registers instead of VSTMQ / VLDQ....
Evan Cheng [Fri, 7 May 2010 01:54:08 +0000 (01:54 +0000)]
Use VSTMD / VLDMD for spills and reloads of Q registers instead of VSTMQ / VLDQ. The later are aliases which ought to be eliminated but we can't because they are used for storing and loading v2f64 values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103234 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r103133 and add testcase from PR7066.
Nick Lewycky [Fri, 7 May 2010 01:45:38 +0000 (01:45 +0000)]
Revert r103133 and add testcase from PR7066.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103233 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoWhen rematerializing, use the debug location of the original
Dan Gohman [Fri, 7 May 2010 01:28:10 +0000 (01:28 +0000)]
When rematerializing, use the debug location of the original
instruction, rather than a location near where the new instruction
is being inserted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103232 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoAdjust tests affected by llvm-gcc 103229.
Dale Johannesen [Fri, 7 May 2010 01:11:31 +0000 (01:11 +0000)]
Adjust tests affected by llvm-gcc 103229.
All results here match gcc-4.2.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103230 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoTransfer debug location information from PHI nodes to resulting
Dan Gohman [Fri, 7 May 2010 01:10:20 +0000 (01:10 +0000)]
Transfer debug location information from PHI nodes to resulting
lowered copies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103228 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoPrint debug information for SDNodes.
Dan Gohman [Fri, 7 May 2010 01:09:21 +0000 (01:09 +0000)]
Print debug information for SDNodes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103227 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDisable the new unknown-location code for now. It causes a major
Dan Gohman [Fri, 7 May 2010 01:08:53 +0000 (01:08 +0000)]
Disable the new unknown-location code for now. It causes a major
increase in the debug line info section, and it's causing
regressions in a gdb testsuite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103226 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRevert r103213. It broke several sections of live website.
mike-m [Fri, 7 May 2010 00:28:04 +0000 (00:28 +0000)]
Revert r103213. It broke several sections of live website.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103219 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoRemove VLD1q and VST1q for reloading and spilling Q registers. Just use VLD1q64 ...
Evan Cheng [Fri, 7 May 2010 00:24:52 +0000 (00:24 +0000)]
Remove VLD1q and VST1q for reloading and spilling Q registers. Just use VLD1q64 / VST1q64 and reference sub-registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103218 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoDisable man->postscript and man->pdf doc generation unless explicitly
mike-m [Fri, 7 May 2010 00:13:23 +0000 (00:13 +0000)]
Disable man->postscript and man->pdf doc generation unless explicitly
configured via --enable-doxygen. It seems some systems have broken pdfroff
so automatic use of it is not safe.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103217 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoCleanup unneeded dirs after docs overhaul.
mike-m [Thu, 6 May 2010 23:48:37 +0000 (23:48 +0000)]
Cleanup unneeded dirs after docs overhaul.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103215 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoOverhauled llvm/clang docs builds. Closes PR6613.
mike-m [Thu, 6 May 2010 23:45:43 +0000 (23:45 +0000)]
Overhauled llvm/clang docs builds. Closes PR6613.

NOTE: 2nd part changeset for cfe trunk to follow.

*** PRE-PATCH ISSUES ADDRESSED

- clang api docs fail build from objdir
- clang/llvm api docs collide in install PREFIX/
- clang/llvm main docs collide in install
- clang/llvm main docs have full of hard coded destination
  assumptions and make use of absolute root in static html files;
  namely CommandGuide tools hard codes a website destination
  for cross references and some html cross references assume
  website root paths

*** IMPROVEMENTS

- bumped Doxygen from 1.4.x -> 1.6.3
- splits llvm/clang docs into 'main' and 'api' (doxygen) build trees
- provide consistent, reliable doc builds for both main+api docs
- support buid vs. install vs. website intentions
- support objdir builds
- document targets with 'make help'
- correct clean and uninstall operations
- use recursive dir delete only where absolutely necessary
- added call function fn.RMRF which safeguards against botched 'rm -rf';
  if any target (or any variable is evaluated) which attempts
  to remove any dirs which match a hard-coded 'safelist', a verbose
  error will be printed and make will error-stop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103213 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoMC/X86: X86AbsMemAsmOperand is subclass of X86NoSegMemAsmOperand.
Daniel Dunbar [Thu, 6 May 2010 22:39:14 +0000 (22:39 +0000)]
MC/X86: X86AbsMemAsmOperand is subclass of X86NoSegMemAsmOperand.
 - This fixes "leal 0, %eax", for example.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103205 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agofix rdar://7947167 - llvm-mc doesn't match movsq
Chris Lattner [Thu, 6 May 2010 21:48:14 +0000 (21:48 +0000)]
fix rdar://7947167 - llvm-mc doesn't match movsq

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103199 91177308-0d34-0410-b5e6-96231b3b80d8

14 years agoEliminated the classification of control registers into %ecr_
Sean Callanan [Thu, 6 May 2010 20:59:00 +0000 (20:59 +0000)]
Eliminated the classification of control registers into %ecr_
and %rcr_, leaving just %cr_ which is what people expect.
Updated the disassembler to support this unified register set.
Added a testcase to verify that the registers continue to be
decoded correctly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103196 91177308-0d34-0410-b5e6-96231b3b80d8