oota-llvm.git
14 years agoSimplify some code.
Owen Anderson [Mon, 19 Oct 2009 21:14:57 +0000 (21:14 +0000)]
Simplify some code.

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

14 years agowire up some basic printOperand goodness, giving us stuff like this before
Chris Lattner [Mon, 19 Oct 2009 20:59:55 +0000 (20:59 +0000)]
wire up some basic printOperand goodness, giving us stuff like this before
we abort:

_main:
stm ,
mov r7, sp
sub sp, sp,
mov r0,
str r0,

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

14 years agoadd the files that go with the previous rev
Chris Lattner [Mon, 19 Oct 2009 20:21:05 +0000 (20:21 +0000)]
add the files that go with the previous rev

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

14 years agowire up skeletal support for having llc print instructions
Chris Lattner [Mon, 19 Oct 2009 20:20:46 +0000 (20:20 +0000)]
wire up skeletal support for having llc print instructions
through mcinst lowering -> mcinstprinter, when llc is passed
the -enable-arm-mcinst-printer flag.  Currently this
is very "aborty".

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

14 years agoBanish ConstantsLock. It's serving no purpose other than slowing things down
Owen Anderson [Mon, 19 Oct 2009 20:11:52 +0000 (20:11 +0000)]
Banish ConstantsLock.  It's serving no purpose other than slowing things down
at the moment.

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

14 years agowire up ARM's printMCInst method. Now llvm-mc should be able to produce
Chris Lattner [Mon, 19 Oct 2009 19:59:05 +0000 (19:59 +0000)]
wire up ARM's printMCInst method.  Now llvm-mc should be able to produce
"something" when printing MCInsts, it will just be missing all the
operand info.

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

14 years agostub out a minimal ARMInstPrinter.
Chris Lattner [Mon, 19 Oct 2009 19:56:26 +0000 (19:56 +0000)]
stub out a minimal ARMInstPrinter.

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

14 years agoremove strings from instructions who are never asmprinted.
Chris Lattner [Mon, 19 Oct 2009 19:51:42 +0000 (19:51 +0000)]
remove strings from instructions who are never asmprinted.
All of these "subreg32" modifier instructions are handled
explicitly by the MCInst lowering phase.  If they got to
the asmprinter, they would explode.  They should eventually
be replace with correct use of subregs.

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

14 years agoClean up the JITResolver stub/callsite<->function maps.
Jeffrey Yasskin [Mon, 19 Oct 2009 18:49:59 +0000 (18:49 +0000)]
Clean up the JITResolver stub/callsite<->function maps.

The JITResolver maps Functions to their canonical stubs and all callsites for
lazily-compiled functions to their target Functions. To make Function
destruction work, I'm going to need to remove all callsites on destruction, so
this patch also adds the reverse mapping for that.

There was an incorrect assumption in here that the only stub for a function
would be the one caused by needing to lazily compile it, while x86-64 far calls
and dlsym-stubs could also cause such stubs, but I didn't look for a test case
that the assumption broke.

This also adds DenseMapInfo<AssertingVH> so I can use DenseMaps instead of
std::maps.

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

14 years agosimplify code, reducing string thrashing.
Chris Lattner [Mon, 19 Oct 2009 18:49:14 +0000 (18:49 +0000)]
simplify code, reducing string thrashing.

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

14 years agoswitch hidden gv stubs to use MachineModuleInfoMachO instead of a custom map.
Chris Lattner [Mon, 19 Oct 2009 18:44:38 +0000 (18:44 +0000)]
switch hidden gv stubs to use MachineModuleInfoMachO instead of a custom map.

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

14 years agouse MachineModuleInfoMachO for non-lazy gv stubs instead of a private map.
Chris Lattner [Mon, 19 Oct 2009 18:38:33 +0000 (18:38 +0000)]
use MachineModuleInfoMachO for non-lazy gv stubs instead of a private map.

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

14 years agoconvert to filecheck syntax and make a lot more aggressive.
Chris Lattner [Mon, 19 Oct 2009 18:27:56 +0000 (18:27 +0000)]
convert to filecheck syntax and make a lot more aggressive.

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

14 years agoRevert r84295, this unbreaks llvm-gcc bootstrap on x86-64/linux
Anton Korobeynikov [Mon, 19 Oct 2009 18:21:09 +0000 (18:21 +0000)]
Revert r84295, this unbreaks llvm-gcc bootstrap on x86-64/linux

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

14 years agorename test
Chris Lattner [Mon, 19 Oct 2009 18:18:07 +0000 (18:18 +0000)]
rename test

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

14 years agoremove dead map
Chris Lattner [Mon, 19 Oct 2009 18:11:25 +0000 (18:11 +0000)]
remove dead map

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

14 years agodon't bother trying to avoid emitting redundant constant pool alignment directives.
Chris Lattner [Mon, 19 Oct 2009 18:08:02 +0000 (18:08 +0000)]
don't bother trying to avoid emitting redundant constant pool alignment directives.

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

14 years agoremove accidental comment.
Chris Lattner [Mon, 19 Oct 2009 18:03:41 +0000 (18:03 +0000)]
remove accidental comment.

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

14 years agoemit .subsections_via_symbols through MCStreamer instead of textually.
Chris Lattner [Mon, 19 Oct 2009 18:03:08 +0000 (18:03 +0000)]
emit .subsections_via_symbols through MCStreamer instead of textually.

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

14 years agocleanup doFinalization -> EmitEndOfAsmFile.
Chris Lattner [Mon, 19 Oct 2009 17:59:19 +0000 (17:59 +0000)]
cleanup doFinalization -> EmitEndOfAsmFile.

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

14 years agoTweak top-level Makefile to facilitate Apple-style build.
Stuart Hastings [Mon, 19 Oct 2009 17:53:54 +0000 (17:53 +0000)]
Tweak top-level Makefile to facilitate Apple-style build.

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

14 years agoPR 5245 - The imediate size target flag was not set on 3A-prefixed SSSE3 instructions.
Nate Begeman [Mon, 19 Oct 2009 17:31:16 +0000 (17:31 +0000)]
PR 5245 - The imediate size target flag was not set on 3A-prefixed SSSE3 instructions.

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

14 years agoFix SplitBlockPredecessors' LoopInfo updating code to handle the case
Dan Gohman [Mon, 19 Oct 2009 16:04:50 +0000 (16:04 +0000)]
Fix SplitBlockPredecessors' LoopInfo updating code to handle the case
where a loop's header is being split and it has predecessors which are not
contained by the most-nested loop which contains the loop.
This fixes PR5235.

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

14 years agoFix a typo in a comment.
Dan Gohman [Mon, 19 Oct 2009 14:56:05 +0000 (14:56 +0000)]
Fix a typo in a comment.

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

14 years agoChange a few instance variables to be local variables.
Dan Gohman [Mon, 19 Oct 2009 14:52:05 +0000 (14:52 +0000)]
Change a few instance variables to be local variables.

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

14 years agoChange instnamer to name arguments "arg" instead of "tmp" for clarity, and
Dan Gohman [Mon, 19 Oct 2009 14:47:32 +0000 (14:47 +0000)]
Change instnamer to name arguments "arg" instead of "tmp" for clarity, and
to name basic blocks "bb" instead of "BB", for consistency.

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

14 years agoNNT: Add -parallel-test option, which runs llvm-test with
Daniel Dunbar [Mon, 19 Oct 2009 13:20:56 +0000 (13:20 +0000)]
NNT: Add -parallel-test option, which runs llvm-test with
ENABLE_PARALLEL_REPORT.

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

14 years agoNNT: Don't hard code -l3.0 argument to make, this is very server dependent. Users...
Daniel Dunbar [Mon, 19 Oct 2009 13:20:50 +0000 (13:20 +0000)]
NNT: Don't hard code -l3.0 argument to make, this is very server dependent. Users who care can use -compileflags for this.

Also, fix make clean call and a few other tweaks.

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

14 years agoNNT: Fix refactoro, I dropped the list of all (llvm-test) tests. I'm sure it was...
Daniel Dunbar [Mon, 19 Oct 2009 13:20:44 +0000 (13:20 +0000)]
NNT: Fix refactoro, I dropped the list of all (llvm-test) tests. I'm sure it was named dejagnu_test_list for a good reason.

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

14 years agoNNT: Lift conditional logic out of test steps.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:38 +0000 (13:20 +0000)]
NNT: Lift conditional logic out of test steps.

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

14 years agoNNT: Now that build & test steps are factored out, coalesce all the logic together.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:31 +0000 (13:20 +0000)]
NNT: Now that build & test steps are factored out, coalesce all the logic together.

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

14 years agoNNT: Sink code for running nightly test into subroutine.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:25 +0000 (13:20 +0000)]
NNT: Sink code for running nightly test into subroutine.

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

14 years agoNNT: Tweaks and simplifications.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:19 +0000 (13:20 +0000)]
NNT: Tweaks and simplifications.
 - Split out configure log.
 - Kill off GetRegexNum.
 - Fix GetRegex to not return previous match on failure.
 - Remove dead code.

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

14 years agoNNT: Move build code into subroutine.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:13 +0000 (13:20 +0000)]
NNT: Move build code into subroutine.

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

14 years agoNNT: Move source checkout code into subroutine.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:06 +0000 (13:20 +0000)]
NNT: Move source checkout code into subroutine.

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

14 years agoNNT: Remove .{o,a} size info, this is better tracked elsewhere.
Daniel Dunbar [Mon, 19 Oct 2009 13:20:00 +0000 (13:20 +0000)]
NNT: Remove .{o,a} size info, this is better tracked elsewhere.

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

14 years agoNNT: Remove code to track build warnings, the buildbots cover this.
Daniel Dunbar [Mon, 19 Oct 2009 13:19:53 +0000 (13:19 +0000)]
NNT: Remove code to track build warnings, the buildbots cover this.

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

14 years agoFix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.
Torok Edwin [Mon, 19 Oct 2009 11:00:58 +0000 (11:00 +0000)]
Fix PR5247, "lock addq" pattern (and other atomics), it DOES modify EFLAGS.
LLC was scheduling compares before the adds causing wrong branches to be taken
in programs, resulting in misoptimized code wherever atomic adds where used.

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

14 years agoAlso check for __POWERPC__ when skipping these tests.
Daniel Dunbar [Mon, 19 Oct 2009 09:19:32 +0000 (09:19 +0000)]
Also check for __POWERPC__ when skipping these tests.

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

14 years agoNNT: Remove hard coded BuildDir and WebDir, users should have to specify these.
Daniel Dunbar [Mon, 19 Oct 2009 09:19:19 +0000 (09:19 +0000)]
NNT: Remove hard coded BuildDir and WebDir, users should have to specify these.

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

14 years agoNNT: Remove "CVS Stats", this isn't particularly useful and can be better done by...
Daniel Dunbar [Mon, 19 Oct 2009 09:19:09 +0000 (09:19 +0000)]
NNT: Remove "CVS Stats", this isn't particularly useful and can be better done by the server or user.

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

14 years agoNNT: Remove now-unused -cvstag argument and CVSROOT code.
Daniel Dunbar [Mon, 19 Oct 2009 09:18:54 +0000 (09:18 +0000)]
NNT: Remove now-unused -cvstag argument and CVSROOT code.

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

14 years agoNNT: Remove -usecvs option, this is very old.
Daniel Dunbar [Mon, 19 Oct 2009 09:18:46 +0000 (09:18 +0000)]
NNT: Remove -usecvs option, this is very old.

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

14 years agoNNT: Remove -debug argument, it is unused.
Daniel Dunbar [Mon, 19 Oct 2009 09:18:37 +0000 (09:18 +0000)]
NNT: Remove -debug argument, it is unused.

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

14 years agoRegroup NewNightlyTest.pl options
Daniel Dunbar [Mon, 19 Oct 2009 09:18:24 +0000 (09:18 +0000)]
Regroup NewNightlyTest.pl options

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

14 years agovarious cleanups.
Chris Lattner [Mon, 19 Oct 2009 07:10:59 +0000 (07:10 +0000)]
various cleanups.

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

14 years agosimplify.
Chris Lattner [Mon, 19 Oct 2009 05:51:03 +0000 (05:51 +0000)]
simplify.

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

14 years agoeliminate md_on_instruction.ll, md_on_instruction2.ll is a superset of it.
Chris Lattner [Mon, 19 Oct 2009 05:34:14 +0000 (05:34 +0000)]
eliminate md_on_instruction.ll, md_on_instruction2.ll is a superset of it.

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

14 years agoclean up after metadata changes.
Chris Lattner [Mon, 19 Oct 2009 05:31:10 +0000 (05:31 +0000)]
clean up after metadata changes.

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

14 years agolit: When running Tcl scripts via shell, try harder to find 'bash', but fall
Daniel Dunbar [Mon, 19 Oct 2009 03:54:21 +0000 (03:54 +0000)]
lit: When running Tcl scripts via shell, try harder to find 'bash', but fall
back to running them internally if that fails. PR5240.

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

14 years agoAdd link to 'lit' from CommandGuide.
Daniel Dunbar [Mon, 19 Oct 2009 03:54:13 +0000 (03:54 +0000)]
Add link to 'lit' from CommandGuide.

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

14 years agoTeach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' aren't tests.
Daniel Dunbar [Mon, 19 Oct 2009 03:53:55 +0000 (03:53 +0000)]
Teach lit that the .c files in 'test/CodeGen/CellSPU/useful-harnesses' aren't tests.

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

14 years agoAdd support for matching shuffle patterns with palignr.
Nate Begeman [Mon, 19 Oct 2009 02:17:23 +0000 (02:17 +0000)]
Add support for matching shuffle patterns with palignr.

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

14 years agoRefactoring, no functionality change.
Mikhail Glushenkov [Sun, 18 Oct 2009 22:51:30 +0000 (22:51 +0000)]
Refactoring, no functionality change.

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

14 years agoSpill slots cannot alias.
Evan Cheng [Sun, 18 Oct 2009 19:58:47 +0000 (19:58 +0000)]
Spill slots cannot alias.

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

14 years agoTurn on post-alloc scheduling for x86.
Evan Cheng [Sun, 18 Oct 2009 19:57:27 +0000 (19:57 +0000)]
Turn on post-alloc scheduling for x86.

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

14 years agoOops. I forgot to change the tests first. Disable post-alloc scheduling.
Evan Cheng [Sun, 18 Oct 2009 18:31:31 +0000 (18:31 +0000)]
Oops. I forgot to change the tests first. Disable post-alloc scheduling.

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

14 years ago-Revert parts of 84326 and 84411. Distinquishing between fixed and non-fixed
Evan Cheng [Sun, 18 Oct 2009 18:16:27 +0000 (18:16 +0000)]
-Revert parts of 84326 and 84411. Distinquishing between fixed and non-fixed
stack slots and giving them different PseudoSourceValue's did not fix the
problem of post-alloc scheduling miscompiling llvm itself.
- Apply Dan's conservative workaround by assuming any non fixed stack slots can
alias other memory locations. This means a load from spill slot #1 cannot
move above a store of spill slot #2.
- Enable post-alloc scheduling for x86 at optimization leverl Default and above.

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

14 years agoOnly fixed stack objects and spill slots should be get FixedStack PseudoSourceValue.
Evan Cheng [Sun, 18 Oct 2009 06:27:36 +0000 (06:27 +0000)]
Only fixed stack objects and spill slots should be get FixedStack PseudoSourceValue.

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

14 years agoremove some nonascii weird stuff
Chris Lattner [Sun, 18 Oct 2009 05:27:44 +0000 (05:27 +0000)]
remove some nonascii weird stuff

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

14 years agoremove a now-pointless regtest
Chris Lattner [Sun, 18 Oct 2009 05:20:17 +0000 (05:20 +0000)]
remove a now-pointless regtest

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

14 years agoadd some fixme's
Chris Lattner [Sun, 18 Oct 2009 05:09:15 +0000 (05:09 +0000)]
add some fixme's

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

14 years agopunctuate properly
Chris Lattner [Sun, 18 Oct 2009 05:08:07 +0000 (05:08 +0000)]
punctuate properly

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

14 years agoremove testcase for dead pass
Chris Lattner [Sun, 18 Oct 2009 05:03:41 +0000 (05:03 +0000)]
remove testcase for dead pass

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

14 years agofix test
Chris Lattner [Sun, 18 Oct 2009 05:03:00 +0000 (05:03 +0000)]
fix test

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

14 years agoremove the IndMemRemPass, which only made sense for when malloc/free were intrinsic
Chris Lattner [Sun, 18 Oct 2009 05:02:09 +0000 (05:02 +0000)]
remove the IndMemRemPass, which only made sense for when malloc/free were intrinsic
instructions.

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

14 years agofix the other issue with ID's, hopefully really fixing the linux build.
Chris Lattner [Sun, 18 Oct 2009 04:58:34 +0000 (04:58 +0000)]
fix the other issue with ID's, hopefully really fixing the linux build.

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

14 years agotighten up test3, add test3a for the converse
Chris Lattner [Sun, 18 Oct 2009 04:55:26 +0000 (04:55 +0000)]
tighten up test3, add test3a for the converse
transform, which isn't happening yet.

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

14 years agotighten test2, add a test that it doesn't get transformed in the invalid edge case.
Chris Lattner [Sun, 18 Oct 2009 04:50:18 +0000 (04:50 +0000)]
tighten test2, add a test that it doesn't get transformed in the invalid edge case.

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

14 years agoMerge tests into modref.ll. Also add a test for r84174 at Chris' behest!
Nick Lewycky [Sun, 18 Oct 2009 04:41:36 +0000 (04:41 +0000)]
Merge tests into modref.ll. Also add a test for r84174 at Chris' behest!

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

14 years agofix some problems with ID definitions, which will hopefully fix the build bots.
Chris Lattner [Sun, 18 Oct 2009 04:27:14 +0000 (04:27 +0000)]
fix some problems with ID definitions, which will hopefully fix the build bots.

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

14 years agoadd function passes for printing various dominator datastructures
Chris Lattner [Sun, 18 Oct 2009 04:10:40 +0000 (04:10 +0000)]
add function passes for printing various dominator datastructures
accessible through opt.  Patch by Tobias Grosser!

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

14 years agomake DOTGraphTraits public, patch by Tobias Grosser!
Chris Lattner [Sun, 18 Oct 2009 04:09:11 +0000 (04:09 +0000)]
make DOTGraphTraits public, patch by Tobias Grosser!

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

14 years agoadd nodes_begin/end/iterator for dominfo, patch by Tobias Grosser!
Chris Lattner [Sun, 18 Oct 2009 04:05:53 +0000 (04:05 +0000)]
add nodes_begin/end/iterator for dominfo, patch by Tobias Grosser!

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

14 years agoSupport GoogleTest's "typed tests"
Jeffrey Yasskin [Sun, 18 Oct 2009 02:05:42 +0000 (02:05 +0000)]
Support GoogleTest's "typed tests"
(http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Typed_Tests)
in lit.py.  These tests have names like "ValueMapTest/0.Iteration", which broke
when lit.py os.path.join()ed them onto the path and then assumed it could
os.path.split() them back off.  This patch shifts path components from the
testPath to the testName until the testPath exists.

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

14 years agoAdd a couple new testcases.
Nick Lewycky [Sun, 18 Oct 2009 00:42:07 +0000 (00:42 +0000)]
Add a couple new testcases.

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

14 years agoreplace a useless test with a useful one
Chris Lattner [Sat, 17 Oct 2009 23:59:51 +0000 (23:59 +0000)]
replace a useless test with a useful one

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

14 years agoMore warnings patrol: Another unused argument and more implicit
Eric Christopher [Sat, 17 Oct 2009 23:56:18 +0000 (23:56 +0000)]
More warnings patrol: Another unused argument and more implicit
conversions.

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

14 years agoFix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,
Nick Lewycky [Sat, 17 Oct 2009 23:52:26 +0000 (23:52 +0000)]
Fix test/Bindings/Ocaml/vmcore.ml. When IRBuilder::CreateMalloc was removed,
LLVMBuildMalloc was reimplemented but with the bug that it didn't insert the
resulting instruction.

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

14 years agoinline isGEP away.
Chris Lattner [Sat, 17 Oct 2009 23:48:54 +0000 (23:48 +0000)]
inline isGEP away.

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

14 years agoFix my -Asserts warning fix.
Daniel Dunbar [Sat, 17 Oct 2009 23:15:04 +0000 (23:15 +0000)]
Fix my -Asserts warning fix.

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

14 years agoTeach vm core to more aggressively fold 'trunc' constantexprs,
Chris Lattner [Sat, 17 Oct 2009 21:53:27 +0000 (21:53 +0000)]
Teach vm core to more aggressively fold 'trunc' constantexprs,
allowing it to simplify the crazy constantexprs in the testcases
down to something sensible.  This allows -std-compile-opts to
completely "devirtualize" the pointers to member functions in
the testcase from PR5176.

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

14 years agoremove # uses from FileCheck lines.
Chris Lattner [Sat, 17 Oct 2009 21:51:19 +0000 (21:51 +0000)]
remove # uses from FileCheck lines.

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

14 years agorename test
Chris Lattner [Sat, 17 Oct 2009 21:31:19 +0000 (21:31 +0000)]
rename test

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

14 years agoMove UnescapeString to a static function for its sole client; its inefficient and...
Daniel Dunbar [Sat, 17 Oct 2009 20:43:42 +0000 (20:43 +0000)]
Move UnescapeString to a static function for its sole client; its inefficient and broken.

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

14 years agoRemove llvm::EscapeString, raw_ostream::write_escaped is much faster.
Daniel Dunbar [Sat, 17 Oct 2009 20:43:29 +0000 (20:43 +0000)]
Remove llvm::EscapeString, raw_ostream::write_escaped is much faster.

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

14 years agoUse raw_ostream::write_escaped instead of EscapeString.
Daniel Dunbar [Sat, 17 Oct 2009 20:43:19 +0000 (20:43 +0000)]
Use raw_ostream::write_escaped instead of EscapeString.

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

14 years agoAdd raw_ostream::write_escaped, for writing escaped strings.
Daniel Dunbar [Sat, 17 Oct 2009 20:43:08 +0000 (20:43 +0000)]
Add raw_ostream::write_escaped, for writing escaped strings.

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

14 years agoFirst draft of the OptionPreprocessor.
Mikhail Glushenkov [Sat, 17 Oct 2009 20:09:29 +0000 (20:09 +0000)]
First draft of the OptionPreprocessor.

More to follow...

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

14 years agoThis variable is never used.
Mikhail Glushenkov [Sat, 17 Oct 2009 20:08:47 +0000 (20:08 +0000)]
This variable is never used.

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

14 years agoDisallow multiple instances of PluginPriority.
Mikhail Glushenkov [Sat, 17 Oct 2009 20:08:30 +0000 (20:08 +0000)]
Disallow multiple instances of PluginPriority.

Several instances of PluginPriority in a single file most probably signifies a
programming error.

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

14 years ago-O[0-3] options should be also forwarded to opt and llc.
Mikhail Glushenkov [Sat, 17 Oct 2009 20:07:49 +0000 (20:07 +0000)]
-O[0-3] options should be also forwarded to opt and llc.

This will require implementing OptionPreprocessor to forbid invalid invocations
such as 'llvmc -O1 -O2'.

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

14 years agoEmit newlines at the end of instructions too.
Nick Lewycky [Sat, 17 Oct 2009 19:43:45 +0000 (19:43 +0000)]
Emit newlines at the end of instructions too.

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

14 years agoMove StringMap's string has function into StringExtras.h
Daniel Dunbar [Sat, 17 Oct 2009 18:21:06 +0000 (18:21 +0000)]
Move StringMap's string has function into StringExtras.h

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

14 years agoRemove unnecessary include.
Daniel Dunbar [Sat, 17 Oct 2009 18:11:57 +0000 (18:11 +0000)]
Remove unnecessary include.

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

14 years agoSuppress -Asserts warning.
Daniel Dunbar [Sat, 17 Oct 2009 09:33:00 +0000 (09:33 +0000)]
Suppress -Asserts warning.

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

14 years agoDistinquish stack slots from other stack objects. They (and fixed objects) get FixedS...
Evan Cheng [Sat, 17 Oct 2009 09:20:14 +0000 (09:20 +0000)]
Distinquish stack slots from other stack objects. They (and fixed objects) get FixedStack PseudoSourceValues.

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

14 years agoRe-arrange some fields.
Evan Cheng [Sat, 17 Oct 2009 08:57:09 +0000 (08:57 +0000)]
Re-arrange some fields.

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

14 years agoAdd another required #include for freestanding .h files.
Daniel Dunbar [Sat, 17 Oct 2009 08:12:36 +0000 (08:12 +0000)]
Add another required #include for freestanding .h files.

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

14 years agoRevert 84315 for now. Re-thinking the patch.
Evan Cheng [Sat, 17 Oct 2009 07:53:04 +0000 (07:53 +0000)]
Revert 84315 for now. Re-thinking the patch.

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