oota-llvm.git
15 years agoFix a subtle bug in "return;" generation which caused us to miss
Chris Lattner [Wed, 9 Sep 2009 23:09:29 +0000 (23:09 +0000)]
Fix a subtle bug in "return;" generation which caused us to miss
a return in one case.  Instead of sprinking return handling code
throughout the asmprinter generator, just treat it like any other
normal statement.

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

15 years agoAdd comment re: clang dependency.
Daniel Dunbar [Wed, 9 Sep 2009 23:01:25 +0000 (23:01 +0000)]
Add comment re: clang dependency.

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

15 years agoAdded an abstract superclass, MCDisassembler, for
Sean Callanan [Wed, 9 Sep 2009 22:49:13 +0000 (22:49 +0000)]
Added an abstract superclass, MCDisassembler, for
all disassemblers.

Modified the MemoryObject to support 64-bit address
spaces, regardless of the LLVM process's address
width.

Modified the Target class to allow extraction of a
MCDisassembler.

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

15 years agoUse the EOL that takes the encoding and translates it into DWARF-English.
Bill Wendling [Wed, 9 Sep 2009 21:26:19 +0000 (21:26 +0000)]
Use the EOL that takes the encoding and translates it into DWARF-English.

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

15 years agoEarly exit from function.
Bill Wendling [Wed, 9 Sep 2009 21:08:12 +0000 (21:08 +0000)]
Early exit from function.

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

15 years agoSmall amount of code clean-up: Don't use ".size()" when not necessary.
Bill Wendling [Wed, 9 Sep 2009 21:06:24 +0000 (21:06 +0000)]
Small amount of code clean-up: Don't use ".size()" when not necessary.

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

15 years agoadd a gross hack to get "SrcLine" comments to show up with the
Chris Lattner [Wed, 9 Sep 2009 20:45:42 +0000 (20:45 +0000)]
add a gross hack to get "SrcLine" comments to show up with the
new asmprinter.  Differently gross hack coming next.

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

15 years agohoist the call to processDebugLoc out of the generated
Chris Lattner [Wed, 9 Sep 2009 20:34:59 +0000 (20:34 +0000)]
hoist the call to processDebugLoc out of the generated
asm printer into the "printInstruction" routine.  This
fixes a problem where the experimental asmprinter would
drop debug labels in some cases, and fixes issues on ppc/xcore
where pseudo instructions like "mr" didn't get debug locs properly.

It is annoying that this moves the call from one place into each
target, but a future set of more invasive refactorings will fix
that problem.

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

15 years agoRemoved static qualifier from a few index related methods. These methods may require...
Lang Hames [Wed, 9 Sep 2009 20:14:17 +0000 (20:14 +0000)]
Removed static qualifier from a few index related methods. These methods may require a LiveIntervals instance in future.

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

15 years agoReverted r81358.
Andreas Neustifter [Wed, 9 Sep 2009 18:19:35 +0000 (18:19 +0000)]
Reverted r81358.

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

15 years agoFix SplitCriticalEdge to properly update LCSSA form when splitting a
Dan Gohman [Wed, 9 Sep 2009 18:18:18 +0000 (18:18 +0000)]
Fix SplitCriticalEdge to properly update LCSSA form when splitting a
loop exit edge -- new PHIs may be needed not only for the additional
splits that are made to preserve LoopSimplify form, but also for the
original split. Factor out the code that inserts new PHIs so that it
can be used for both. Remove LoopRotation.cpp's code for manually
updating LCSSA form, as it is now redundant. This fixes PR4934.

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

15 years agoFix build, add missing simicolon.
Benjamin Kramer [Wed, 9 Sep 2009 18:03:46 +0000 (18:03 +0000)]
Fix build, add missing simicolon.

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

15 years agoReflow comment.
Mike Stump [Wed, 9 Sep 2009 17:57:16 +0000 (17:57 +0000)]
Reflow comment.

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

15 years agoPreserve ProfileInfo.
Andreas Neustifter [Wed, 9 Sep 2009 17:53:39 +0000 (17:53 +0000)]
Preserve ProfileInfo.

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

15 years agoAdd the first functions for updating ProfileInfo.
Andreas Neustifter [Wed, 9 Sep 2009 17:52:57 +0000 (17:52 +0000)]
Add the first functions for updating ProfileInfo.

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

15 years agoCleaned up code by factoring out common portions of edge loading into funcion.
Andreas Neustifter [Wed, 9 Sep 2009 17:51:39 +0000 (17:51 +0000)]
Cleaned up code by factoring out common portions of edge loading into funcion.

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

15 years agoTake lock before removing a node from MDNodeSet.
Devang Patel [Wed, 9 Sep 2009 17:44:26 +0000 (17:44 +0000)]
Take lock before removing a node from MDNodeSet.

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

15 years agoEnable MDNode uniquing.
Devang Patel [Wed, 9 Sep 2009 17:30:04 +0000 (17:30 +0000)]
Enable MDNode uniquing.

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

15 years agoFix an 80-column violation.
Dan Gohman [Wed, 9 Sep 2009 17:17:19 +0000 (17:17 +0000)]
Fix an 80-column violation.

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

15 years agoGracefully destroy MDNodes.
Devang Patel [Wed, 9 Sep 2009 17:07:07 +0000 (17:07 +0000)]
Gracefully destroy MDNodes.

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

15 years agoHide all cscope files.
Andreas Neustifter [Wed, 9 Sep 2009 16:47:12 +0000 (16:47 +0000)]
Hide all cscope files.

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

15 years agoUpdated svn:ignore to hide *.cmx files.
Andreas Neustifter [Wed, 9 Sep 2009 16:45:41 +0000 (16:45 +0000)]
Updated svn:ignore to hide *.cmx files.

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

15 years agorevert r81335, which breaks the build.
Chris Lattner [Wed, 9 Sep 2009 16:00:57 +0000 (16:00 +0000)]
revert r81335, which breaks the build.

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

15 years agoWhen widening a vector load, use the correct chain. This fixes PR4891.
Dan Gohman [Wed, 9 Sep 2009 14:22:57 +0000 (14:22 +0000)]
When widening a vector load, use the correct chain. This fixes PR4891.

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

15 years agoFixed wrong storage option for ProfileVerifierDisableAssertions.
Andreas Neustifter [Wed, 9 Sep 2009 13:01:03 +0000 (13:01 +0000)]
Fixed wrong storage option for ProfileVerifierDisableAssertions.
Fixed non working -profile-verifier-noassert option.
Fixed missing newline in debugEntry().
Cleaned up assert messages. (assert(0 && Message) is still shown, but the message is printed before.)
When verifiying loaded profiles the ProfileVerifier got confused when block was a setjmp target, this is checked now.
When verifiying loaded profiles the ProfileVerifier got confused when block eventually reaching an exit(), this is checked now.

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

15 years agoUpdated ProfileInfo to have clean seperation between different sentinels.
Andreas Neustifter [Wed, 9 Sep 2009 12:48:26 +0000 (12:48 +0000)]
Updated ProfileInfo to have clean seperation between different sentinels.

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

15 years agoAdd a shortcut for OS X to Path::GetMainExecutable. This gives a nice speedup on
Benjamin Kramer [Wed, 9 Sep 2009 12:09:08 +0000 (12:09 +0000)]
Add a shortcut for OS X to Path::GetMainExecutable. This gives a nice speedup on
clang's testsuite.

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

15 years agoCopy-pasto.
Mikhail Glushenkov [Wed, 9 Sep 2009 10:14:55 +0000 (10:14 +0000)]
Copy-pasto.

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

15 years agoRevert 81248 for now.
Mikhail Glushenkov [Wed, 9 Sep 2009 09:52:04 +0000 (09:52 +0000)]
Revert 81248 for now.

Program objects have ownership semantics on Windows.

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

15 years agoCheck that the 'kill' call succeeded.
Mikhail Glushenkov [Wed, 9 Sep 2009 09:51:47 +0000 (09:51 +0000)]
Check that the 'kill' call succeeded.

Thanks to Duncan Sands for spotting this.

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

15 years agoAdd testcase for r81322 (PR4933).
Torok Edwin [Wed, 9 Sep 2009 09:34:43 +0000 (09:34 +0000)]
Add testcase for r81322 (PR4933).

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

15 years agoProvide proper section flags for various BSS flavours
Anton Korobeynikov [Wed, 9 Sep 2009 08:48:53 +0000 (08:48 +0000)]
Provide proper section flags for various BSS flavours

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

15 years agoWhitespace cleanup
Anton Korobeynikov [Wed, 9 Sep 2009 08:41:20 +0000 (08:41 +0000)]
Whitespace cleanup

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

15 years agoadd a testacse for the objc problem that required required r81305
Chris Lattner [Wed, 9 Sep 2009 06:19:34 +0000 (06:19 +0000)]
add a testacse for the objc problem that required required r81305
to be temporarily disabled.

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

15 years agodisable the new asmprinter by default. Both the Mangler and MCSymbol
Chris Lattner [Wed, 9 Sep 2009 06:11:14 +0000 (06:11 +0000)]
disable the new asmprinter by default.  Both the Mangler and MCSymbol
printing stuff are quoting symbols now, breaking objc testcases.

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

15 years agoCast MO.getImm() to unsigned before comparing with an unsigned limit.
Evan Cheng [Wed, 9 Sep 2009 06:05:16 +0000 (06:05 +0000)]
Cast MO.getImm() to unsigned before comparing with an unsigned limit.

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

15 years agoMake TypeBuilder's result depend on the LLVMContext it's passed.
Jeffrey Yasskin [Wed, 9 Sep 2009 05:04:01 +0000 (05:04 +0000)]
Make TypeBuilder's result depend on the LLVMContext it's passed.
TypeBuilder was using a local static variable to cache its result. This made it
ignore changes in its LLVMContext argument and always return a type constructed
from the argument to the first call.

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

15 years agoUpdate test.
Daniel Dunbar [Wed, 9 Sep 2009 02:41:50 +0000 (02:41 +0000)]
Update test.

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

15 years agoCount test correctly with -q.
Daniel Dunbar [Wed, 9 Sep 2009 02:41:42 +0000 (02:41 +0000)]
Count test correctly with -q.

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

15 years agoFix another refactoro.
Daniel Dunbar [Wed, 9 Sep 2009 02:41:32 +0000 (02:41 +0000)]
Fix another refactoro.

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

15 years agoMake sure to make stub region writable before emission, executable after emission.
Evan Cheng [Wed, 9 Sep 2009 01:56:29 +0000 (01:56 +0000)]
Make sure to make stub region writable before emission, executable after emission.

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

15 years agoFix arm jit encoding bug introduced by 75048. Some instructions', e.g. MOVi, bit...
Evan Cheng [Wed, 9 Sep 2009 01:47:07 +0000 (01:47 +0000)]
Fix arm jit encoding bug introduced by 75048. Some instructions', e.g. MOVi, bit 25 should be set.

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

15 years agoMake sure the memory range is writable before memset'ing it.
Evan Cheng [Wed, 9 Sep 2009 01:45:24 +0000 (01:45 +0000)]
Make sure the memory range is writable before memset'ing it.

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

15 years agoCorrect __cxa_end_catch documentation to reflect that it doesn't take any arguments.
Eric Christopher [Wed, 9 Sep 2009 01:44:53 +0000 (01:44 +0000)]
Correct __cxa_end_catch documentation to reflect that it doesn't take any arguments.

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

15 years agoRemove comments which don't add much to .s readibility.
Evan Cheng [Wed, 9 Sep 2009 01:38:23 +0000 (01:38 +0000)]
Remove comments which don't add much to .s readibility.

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

15 years agoturn the mcinst asmprinter on by default for x86, tweaking two tests to
Chris Lattner [Wed, 9 Sep 2009 00:41:36 +0000 (00:41 +0000)]
turn the mcinst asmprinter on by default for x86, tweaking two tests to
expect the slight syntax differences in the generated code.

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

15 years agotidy up
Chris Lattner [Wed, 9 Sep 2009 00:40:31 +0000 (00:40 +0000)]
tidy up

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

15 years agoRemove failing test...
Bill Wendling [Wed, 9 Sep 2009 00:30:25 +0000 (00:30 +0000)]
Remove failing test...

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

15 years agoAdd an svn:ignore.
Dan Gohman [Wed, 9 Sep 2009 00:23:52 +0000 (00:23 +0000)]
Add an svn:ignore.

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

15 years agomake sure to send external symbols through the mangler,
Chris Lattner [Wed, 9 Sep 2009 00:23:32 +0000 (00:23 +0000)]
make sure to send external symbols through the mangler,
this fixes mingw-alloca.ll with the new asmprinter.

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

15 years agoUse "opt < %s" instead of "opt %s" to keep the testname away from the grep.
Dan Gohman [Wed, 9 Sep 2009 00:22:49 +0000 (00:22 +0000)]
Use "opt < %s" instead of "opt %s" to keep the testname away from the grep.

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

15 years agothis got merged into lea.ll
Chris Lattner [Wed, 9 Sep 2009 00:22:31 +0000 (00:22 +0000)]
this got merged into lea.ll

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

15 years agofilecheckize
Chris Lattner [Wed, 9 Sep 2009 00:19:46 +0000 (00:19 +0000)]
filecheckize

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

15 years agoallow @ in symbol names without quoting the identifier. This
Chris Lattner [Wed, 9 Sep 2009 00:14:09 +0000 (00:14 +0000)]
allow @ in symbol names without quoting the identifier.  This
allows things like @PLT without quotes.

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

15 years agoFix PR4865. This syncs up the JIT's DWARF emitter with what's in the
Bill Wendling [Wed, 9 Sep 2009 00:11:02 +0000 (00:11 +0000)]
Fix PR4865. This syncs up the JIT's DWARF emitter with what's in the
'DwarfException.cpp' file, which changed how CIEs were emitted, the sizes of
some fields, etc.

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

15 years agoadd support for @PLT and friends on external symbols, fixes
Chris Lattner [Wed, 9 Sep 2009 00:10:14 +0000 (00:10 +0000)]
add support for @PLT and friends on external symbols, fixes
x86-64-pic-11.ll with the new asmprinter.

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

15 years agoEliminate more uses of llvm-as and llvm-dis.
Dan Gohman [Wed, 9 Sep 2009 00:09:15 +0000 (00:09 +0000)]
Eliminate more uses of llvm-as and llvm-dis.

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

15 years agoEliminate more uses of llvm-as and llvm-dis.
Dan Gohman [Tue, 8 Sep 2009 23:54:48 +0000 (23:54 +0000)]
Eliminate more uses of llvm-as and llvm-dis.

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

15 years agoupdate various tests for signedness changes in .s file.
Chris Lattner [Tue, 8 Sep 2009 23:51:06 +0000 (23:51 +0000)]
update various tests for signedness changes in .s file.

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

15 years agoadjust for signedness change. I'd appreciate it if an ARM flavored person
Chris Lattner [Tue, 8 Sep 2009 23:44:53 +0000 (23:44 +0000)]
adjust for signedness change.  I'd appreciate it if an ARM flavored person
could look at this: the top undefined bits of an immediate shouldn't affect
isel (cmp vs cmp.w)

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

15 years agoMerge Archive/extract* tests into one; this avoids a race when tests are run in
Daniel Dunbar [Tue, 8 Sep 2009 23:44:24 +0000 (23:44 +0000)]
Merge Archive/extract* tests into one; this avoids a race when tests are run in
parallel (the test should really use temps for the output, though).

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

15 years agomerge thumb2-bic2.ll into thumb2-bic.ll and update for signedness changes.
Chris Lattner [Tue, 8 Sep 2009 23:41:06 +0000 (23:41 +0000)]
merge thumb2-bic2.ll into thumb2-bic.ll and update for signedness changes.

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

15 years agoAdd Triple::getArchTypeForDarwinArchName, which converts a "Darwin" architecture
Daniel Dunbar [Tue, 8 Sep 2009 23:32:51 +0000 (23:32 +0000)]
Add Triple::getArchTypeForDarwinArchName, which converts a "Darwin" architecture
name (e.g. "ppc") to the appropriate constant.

Also, StringRefize additional Triple constructor.

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

15 years agotweak this to pass on linux.
Chris Lattner [Tue, 8 Sep 2009 23:32:40 +0000 (23:32 +0000)]
tweak this to pass on linux.

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

15 years agoImprove JIT error message for users crazy enough to use -march with JIT, and
Daniel Dunbar [Tue, 8 Sep 2009 23:32:35 +0000 (23:32 +0000)]
Improve JIT error message for users crazy enough to use -march with JIT, and
mention -version in messages about missing targets.

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

15 years agoparenthesize symbol names that start with $, fixing X86/dollar-name.ll with
Chris Lattner [Tue, 8 Sep 2009 23:20:50 +0000 (23:20 +0000)]
parenthesize symbol names that start with $, fixing X86/dollar-name.ll with
the new asmprinter.

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

15 years agoconvert to filecheck syntax
Chris Lattner [Tue, 8 Sep 2009 23:16:26 +0000 (23:16 +0000)]
convert to filecheck syntax

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

15 years agochange selectiondag to add the sign extended versions of immediate operands
Chris Lattner [Tue, 8 Sep 2009 23:05:44 +0000 (23:05 +0000)]
change selectiondag to add the sign extended versions of immediate operands
to instructions instead of zero extended ones.  This makes the asmprinter
print signed values more consistently.  This apparently only really affects
the X86 backend.

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

15 years agoUse "opt < %s" instead of "opt %s" so that opt doesn't print the test
Dan Gohman [Tue, 8 Sep 2009 22:57:49 +0000 (22:57 +0000)]
Use "opt < %s" instead of "opt %s" so that opt doesn't print the test
filename in the output, which interferes with the tests' grep lines.

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

15 years agoUnbreak getOnesVector() / getZeroVector() to use valid ARM extended imm's.
Anton Korobeynikov [Tue, 8 Sep 2009 22:51:43 +0000 (22:51 +0000)]
Unbreak getOnesVector() / getZeroVector() to use valid ARM extended imm's.

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

15 years agoConvert a few more opt | llvm-dis to opt -S.
Dan Gohman [Tue, 8 Sep 2009 22:41:33 +0000 (22:41 +0000)]
Convert a few more opt | llvm-dis to opt -S.

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

15 years agofilecheckize some tests
Chris Lattner [Tue, 8 Sep 2009 22:38:46 +0000 (22:38 +0000)]
filecheckize some tests

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

15 years agoUse opt -S instead of piping bitcode output through llvm-dis.
Dan Gohman [Tue, 8 Sep 2009 22:34:10 +0000 (22:34 +0000)]
Use opt -S instead of piping bitcode output through llvm-dis.

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

15 years agoUse MemoryBuffer::getBufferIdentifier() in the AsmPrinter instead
Dan Gohman [Tue, 8 Sep 2009 22:20:35 +0000 (22:20 +0000)]
Use MemoryBuffer::getBufferIdentifier() in the AsmPrinter instead
of requiring a name be passed in. This makes it use "<stdin>"
instead of "-" and makes it more consistent with the Bitcode reader.

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

15 years agoThis should unbreak the build on 64-bit Linux.
Mikhail Glushenkov [Tue, 8 Sep 2009 20:31:27 +0000 (20:31 +0000)]
This should unbreak the build on 64-bit Linux.

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

15 years agoFix PR4909, patch by Jakub Staszak.
Owen Anderson [Tue, 8 Sep 2009 19:53:15 +0000 (19:53 +0000)]
Fix PR4909, patch by Jakub Staszak.

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

15 years agoConst-correctness.
Mikhail Glushenkov [Tue, 8 Sep 2009 19:51:39 +0000 (19:51 +0000)]
Const-correctness.

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

15 years agoSince Program is basically a PID, it should be copyable.
Mikhail Glushenkov [Tue, 8 Sep 2009 19:51:12 +0000 (19:51 +0000)]
Since Program is basically a PID, it should be copyable.

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

15 years agoGet rid of the Pid_ member in the Program class.
Mikhail Glushenkov [Tue, 8 Sep 2009 19:50:55 +0000 (19:50 +0000)]
Get rid of the Pid_ member in the Program class.

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

15 years agoAdd a Kill() function to the Program class.
Mikhail Glushenkov [Tue, 8 Sep 2009 19:50:27 +0000 (19:50 +0000)]
Add a Kill() function to the Program class.

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

15 years agoanother typo
Chris Lattner [Tue, 8 Sep 2009 19:45:34 +0000 (19:45 +0000)]
another typo

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

15 years agoDo not specify -mmacosx-version-min if building for arm-apple-darwin.
Evan Cheng [Tue, 8 Sep 2009 18:52:20 +0000 (18:52 +0000)]
Do not specify -mmacosx-version-min if building for arm-apple-darwin.

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

15 years agoremove an extremely dubious instcombine transformation of
Chris Lattner [Tue, 8 Sep 2009 18:48:01 +0000 (18:48 +0000)]
remove an extremely dubious instcombine transformation of
extractelement(load).

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

15 years agoRemove dead code.
Devang Patel [Tue, 8 Sep 2009 18:14:36 +0000 (18:14 +0000)]
Remove dead code.

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

15 years agoTrim unnecessary declarations.
Dan Gohman [Tue, 8 Sep 2009 17:03:05 +0000 (17:03 +0000)]
Trim unnecessary declarations.

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

15 years agoChange these tests to feed the assembly files to opt directly, instead
Dan Gohman [Tue, 8 Sep 2009 16:50:01 +0000 (16:50 +0000)]
Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this.

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

15 years agoFix may-be-used-uninitialized warning.
Daniel Dunbar [Tue, 8 Sep 2009 16:14:54 +0000 (16:14 +0000)]
Fix may-be-used-uninitialized warning.

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

15 years agollvm-as is no longer needed here, now that opt can read assembly
Dan Gohman [Tue, 8 Sep 2009 15:52:56 +0000 (15:52 +0000)]
llvm-as is no longer needed here, now that opt can read assembly
files directly.

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

15 years agoRe-apply r80926, with fixes: keep the domtree informed of new blocks
Dan Gohman [Tue, 8 Sep 2009 15:45:00 +0000 (15:45 +0000)]
Re-apply r80926, with fixes: keep the domtree informed of new blocks
that get created during loop unswitching, and fix SplitBlockPredecessors'
LCSSA updating code to create new PHIs instead of trying to just move
existing ones.

Also, optimize Loop::verifyLoop, since it gets called a lot. Use
searches on a sorted list of blocks instead of calling the "contains"
function, as is done in other places in the Loop class, since "contains"
does a linear search. Also, don't call verifyLoop from LoopSimplify or
LCSSA, as the PassManager is already calling verifyLoop as part of
LoopInfo's verifyAnalysis.

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

15 years agoAdd NEON 'laned' operations. This fixes another bunch of gcc testsuite fails and
Anton Korobeynikov [Tue, 8 Sep 2009 15:22:32 +0000 (15:22 +0000)]
Add NEON 'laned' operations. This fixes another bunch of gcc testsuite fails and
makes the code faster.

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

15 years agofix a couple typos pointed out by edwin and duncan
Chris Lattner [Tue, 8 Sep 2009 15:13:16 +0000 (15:13 +0000)]
fix a couple typos pointed out by edwin and duncan

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

15 years agoUnbreak these tests. Chris, please verify that these changes are intended.
Dan Gohman [Tue, 8 Sep 2009 14:14:24 +0000 (14:14 +0000)]
Unbreak these tests. Chris, please verify that these changes are intended.

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

15 years agoAdd source debug information to the Sparc code generator.
Richard Pennington [Tue, 8 Sep 2009 12:47:30 +0000 (12:47 +0000)]
Add source debug information to the Sparc code generator.

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

15 years agoWhen emitting a label for a PostCall safe point, the machine
Nicolas Geoffray [Tue, 8 Sep 2009 07:39:27 +0000 (07:39 +0000)]
When emitting a label for a PostCall safe point, the machine
instruction to insert before can be end(). getDebugLoc on
end() returns an invalid value, therefore use the debug
loc of the call instruction, and give it to InsertLabel.

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

15 years agoAlso emit a label for TargetInstrInfo::GC_LABEL.
Nicolas Geoffray [Tue, 8 Sep 2009 07:36:18 +0000 (07:36 +0000)]
Also emit a label for TargetInstrInfo::GC_LABEL.

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

15 years agoUnbreak
Anton Korobeynikov [Tue, 8 Sep 2009 07:30:03 +0000 (07:30 +0000)]
Unbreak

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

15 years agoWhen remat'ing and destination virtual register has a sub-register index. Make sure...
Evan Cheng [Tue, 8 Sep 2009 06:39:07 +0000 (06:39 +0000)]
When remat'ing and destination virtual register has a sub-register index. Make sure the sub-register class matches the register class of the remat'ed instruction definition register class.

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

15 years agoPrint "X-42" instead of "X+-42".
Chris Lattner [Tue, 8 Sep 2009 06:37:35 +0000 (06:37 +0000)]
Print "X-42" instead of "X+-42".

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

15 years agomake formatting of expressions more closely match the existing asmprinter.
Chris Lattner [Tue, 8 Sep 2009 06:34:07 +0000 (06:34 +0000)]
make formatting of expressions more closely match the existing asmprinter.

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

15 years agotidy whitespace.
Chris Lattner [Tue, 8 Sep 2009 06:27:48 +0000 (06:27 +0000)]
tidy whitespace.

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