oota-llvm.git
14 years agoGet MCSymbol out of the mangling business, and move all the logic
Chris Lattner [Sun, 17 Jan 2010 19:23:46 +0000 (19:23 +0000)]
Get MCSymbol out of the mangling business, and move all the logic
to Mangler.  Now MCSymbol just decides whether to slap quotes around
a symbol when printing it.

This also fixes some weirdness where two MCSymbols could be created
for the same symbol, if one needed to be mangled and got mangled to
the other one.

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

14 years agoReally fix this. I checked that on ARM I get
Rafael Espindola [Sun, 17 Jan 2010 19:20:45 +0000 (19:20 +0000)]
Really fix this. I checked that on ARM I get

PASS: LLVM::FrontendC/pr5406.c (3463 of 5030)

and on X86 I get

XFAIL: LLVM::FrontendC/pr5406.c (3465 of 5030

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

14 years agoreduce this test and convert to filecheck, hopefully the linux buildbot
Chris Lattner [Sun, 17 Jan 2010 19:09:12 +0000 (19:09 +0000)]
reduce this test and convert to filecheck, hopefully the linux buildbot
will tell me something more useful.

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

14 years agofactor this code better how that the string version of getNameWithPrefix
Chris Lattner [Sun, 17 Jan 2010 18:52:16 +0000 (18:52 +0000)]
factor this code better how that the string version of getNameWithPrefix
takes a twine.

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

14 years agonow that mangler is in libtarget, it can use MCAsmInfo instead of clients
Chris Lattner [Sun, 17 Jan 2010 18:22:35 +0000 (18:22 +0000)]
now that mangler is in libtarget, it can use MCAsmInfo instead of clients
having to pass various fields from it in.  Simplify.

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

14 years agoDon't create a (empty) output file, and don't warn about bitcode output
Dan Gohman [Sun, 17 Jan 2010 17:47:24 +0000 (17:47 +0000)]
Don't create a (empty) output file, and don't warn about bitcode output
to a console, when --analyze is used.

Similarly, avoid creating an empty output file when --disable-output is used.

Print a warning when the -o option appears with either --analyze or
--disable-output, to indicate that the option is being ignored.

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

14 years agoSwitch some functions to take Twines, eliminate uses of StringExtras.h.
Benjamin Kramer [Sun, 17 Jan 2010 07:46:39 +0000 (07:46 +0000)]
Switch some functions to take Twines, eliminate uses of StringExtras.h.

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

14 years agoFix comment.
Owen Anderson [Sun, 17 Jan 2010 06:49:03 +0000 (06:49 +0000)]
Fix comment.

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

14 years agoThe Neon "vtst" instruction takes a suffix that is the element size alone --
Bob Wilson [Sun, 17 Jan 2010 06:35:17 +0000 (06:35 +0000)]
The Neon "vtst" instruction takes a suffix that is the element size alone --
adding an "i" to the suffix, indicating that the elements are integers, is
accepted but not part of the standard syntax.  This helps us pass a few more
of the Neon tests from gcc.

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

14 years agoFix an off-by-one error that caused the chain operand to be dropped from Neon
Bob Wilson [Sun, 17 Jan 2010 05:58:23 +0000 (05:58 +0000)]
Fix an off-by-one error that caused the chain operand to be dropped from Neon
vector load-lane and store-lane instructions.

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

14 years agoLooks like XFAIL has to list every unsupported arch
Rafael Espindola [Sun, 17 Jan 2010 05:40:41 +0000 (05:40 +0000)]
Looks like XFAIL has to list every unsupported arch

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

14 years agoAdd test for pr5406
Rafael Espindola [Sun, 17 Jan 2010 04:44:55 +0000 (04:44 +0000)]
Add test for pr5406

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

14 years agoAdd a note for the macho streamer and remove a used of the mangler from the soon...
Nate Begeman [Sun, 17 Jan 2010 03:49:01 +0000 (03:49 +0000)]
Add a note for the macho streamer and remove a used of the mangler from the soon to be defunct machowriter pass.

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

14 years agoReduce fsub-fadd.ll and merge it into fsub-fsub.ll. Rename fsub-fsub.ll to
Bill Wendling [Sun, 17 Jan 2010 00:21:21 +0000 (00:21 +0000)]
Reduce fsub-fadd.ll and merge it into fsub-fsub.ll. Rename fsub-fsub.ll to
fsub.ll and FileCheckify it.

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

14 years agoWhen checking for sret-demotion, it needs to use legal types. When using the return...
Kenneth Uildriks [Sat, 16 Jan 2010 23:37:33 +0000 (23:37 +0000)]
When checking for sret-demotion, it needs to use legal types.  When using the return value of an sret-demoted call, it needs to use possibly illegal types that match the declared Type of the callee.

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

14 years agoUpdate CMake files for Mangler move.
Benjamin Kramer [Sat, 16 Jan 2010 22:23:09 +0000 (22:23 +0000)]
Update CMake files for Mangler move.

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

14 years agomove the mangler into libtarget from vmcore.
Chris Lattner [Sat, 16 Jan 2010 21:57:06 +0000 (21:57 +0000)]
move the mangler into libtarget from vmcore.

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

14 years agofix a warning.
Chris Lattner [Sat, 16 Jan 2010 21:55:24 +0000 (21:55 +0000)]
fix a warning.

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

14 years agothis doesn't need to suck in Mangler.
Chris Lattner [Sat, 16 Jan 2010 21:35:09 +0000 (21:35 +0000)]
this doesn't need to suck in Mangler.

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

14 years agoremove obsolete comment.
Chris Lattner [Sat, 16 Jan 2010 21:34:51 +0000 (21:34 +0000)]
remove obsolete comment.

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

14 years agobugpoint doesn't need the mangler at all. DisambiguateGlobalSymbols
Chris Lattner [Sat, 16 Jan 2010 21:34:01 +0000 (21:34 +0000)]
bugpoint doesn't need the mangler at all.  DisambiguateGlobalSymbols
dates to a time when two different LLVM values could have the same
name but different types.  Simplify it to just assign names to unnamed
things and let the core symtab resolve duplicates.

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

14 years agoadd a thing to investigate.
Chris Lattner [Sat, 16 Jan 2010 21:25:13 +0000 (21:25 +0000)]
add a thing to investigate.

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

14 years agoremove calls to dead methods.
Chris Lattner [Sat, 16 Jan 2010 21:20:34 +0000 (21:20 +0000)]
remove calls to dead methods.

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

14 years agoreapply the mangler gutting patch.
Chris Lattner [Sat, 16 Jan 2010 21:08:46 +0000 (21:08 +0000)]
reapply the mangler gutting patch.

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

14 years agoremove use of getMangledName.
Chris Lattner [Sat, 16 Jan 2010 20:56:05 +0000 (20:56 +0000)]
remove use of getMangledName.

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

14 years agounbreak the build.
Chris Lattner [Sat, 16 Jan 2010 20:53:11 +0000 (20:53 +0000)]
unbreak the build.

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

14 years agoRevert 93648.
Rafael Espindola [Sat, 16 Jan 2010 20:27:59 +0000 (20:27 +0000)]
Revert 93648.
Mangler::getMangledName is used from lto
Mangler::setUseQuotes is used in the AsmPrinter
Mangler::setSymbolsCanStartWithDigit is used in the AsmPrinter

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

14 years agoMangler::getMangledName is now dead, remove it and all the other stuff in Mangler...
Chris Lattner [Sat, 16 Jan 2010 19:08:51 +0000 (19:08 +0000)]
Mangler::getMangledName is now dead, remove it and all the other stuff in Mangler that is now transitively dead.  woo.

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

14 years agoChange DIEObjectLabel to take an MCSymbol instead of std::string.
Chris Lattner [Sat, 16 Jan 2010 18:50:28 +0000 (18:50 +0000)]
Change DIEObjectLabel to take an MCSymbol instead of std::string.

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

14 years agorename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,
Chris Lattner [Sat, 16 Jan 2010 18:37:32 +0000 (18:37 +0000)]
rename GetPrivateGlobalValueSymbolStub -> GetSymbolWithGlobalValueBase,
and add an explicit ForcePrivate argument.

Switch FunctionEHFrameInfo to be MCSymbol based instead of string based.

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

14 years agoeliminate uses of getMangledName from AsmPrinter.cpp, last up is
Chris Lattner [Sat, 16 Jan 2010 18:17:26 +0000 (18:17 +0000)]
eliminate uses of getMangledName from AsmPrinter.cpp, last up is
dwarf emission which is going to be more invasive.

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

14 years agoswitch liblto to use the new getNameWithPrefix() method instead of getMangledName.
Chris Lattner [Sat, 16 Jan 2010 18:12:14 +0000 (18:12 +0000)]
switch liblto to use the new getNameWithPrefix() method instead of getMangledName.

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

14 years agoadd an inefficient version of getNameWithPrefix that returns an std::string.
Chris Lattner [Sat, 16 Jan 2010 18:06:34 +0000 (18:06 +0000)]
add an inefficient version of getNameWithPrefix that returns an std::string.

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

14 years agoRevive dead assert.
Benjamin Kramer [Sat, 16 Jan 2010 16:14:55 +0000 (16:14 +0000)]
Revive dead assert.

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

14 years agoProvide magic define on mingw to not generate inline variants of ctyper functions.
Anton Korobeynikov [Sat, 16 Jan 2010 14:06:58 +0000 (14:06 +0000)]
Provide magic define on mingw to not generate inline variants of ctyper functions.
Otherwise we'll end with random cyclic deps between libraries due to this.
Proposed by Gianluigi Tiesi!

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

14 years agoFix PR6047
Tobias Grosser [Sat, 16 Jan 2010 13:38:07 +0000 (13:38 +0000)]
Fix PR6047

Nodes that had children outside of the post dominator tree (infinite loops)
where removed from the post dominator tree. This seems to be wrong. Leave them
in the tree.

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

14 years agoCreate Generic DOTGraphTraits Printer/Viewer
Tobias Grosser [Sat, 16 Jan 2010 10:56:41 +0000 (10:56 +0000)]
Create Generic DOTGraphTraits Printer/Viewer

Move the DOTGraphTraits dotty printer/viewer templates, that were developed for
the dominance tree into their own header file. This will allow reuse in future
passes.

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

14 years agoNo need to use WeakVH here.
Devang Patel [Sat, 16 Jan 2010 06:17:40 +0000 (06:17 +0000)]
No need to use WeakVH here.

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

14 years agoReplace DebugLocTuple with DILocation.
Devang Patel [Sat, 16 Jan 2010 06:09:35 +0000 (06:09 +0000)]
Replace DebugLocTuple with DILocation.

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

14 years agofix build failure.
Chris Lattner [Sat, 16 Jan 2010 03:38:27 +0000 (03:38 +0000)]
fix build failure.

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

14 years agoremove a couple of actively incorrect uses of getMangledName.
Chris Lattner [Sat, 16 Jan 2010 02:16:09 +0000 (02:16 +0000)]
remove a couple of actively incorrect uses of getMangledName.

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

14 years agothis doesn't need the mangler.
Chris Lattner [Sat, 16 Jan 2010 02:15:38 +0000 (02:15 +0000)]
this doesn't need the mangler.

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

14 years agomore string -> sym, getMangledName is now gone from this file.
Chris Lattner [Sat, 16 Jan 2010 02:09:06 +0000 (02:09 +0000)]
more string -> sym, getMangledName is now gone from this file.

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

14 years agouse symbols instead of strings, eliminating a bunch of getMangledName
Chris Lattner [Sat, 16 Jan 2010 02:00:23 +0000 (02:00 +0000)]
use symbols instead of strings, eliminating a bunch of getMangledName
calls.  Add FIXMEs about a bunch of nondeterminism in stub output.

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

14 years agosimplify some code.
Chris Lattner [Sat, 16 Jan 2010 01:45:47 +0000 (01:45 +0000)]
simplify some code.

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

14 years agoRetrying r91337:
Bill Wendling [Sat, 16 Jan 2010 01:40:55 +0000 (01:40 +0000)]
Retrying r91337:

The CIE says that the LSDA point in the FDE section is an "sdata4". That's fine,
but we need it to actually be 4-bytes in the FDE for some platforms. Allow
individual platforms to decide for themselves.

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

14 years agoeliminate uses of mangler and simplify code.
Chris Lattner [Sat, 16 Jan 2010 01:40:07 +0000 (01:40 +0000)]
eliminate uses of mangler and simplify code.

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

14 years agofix inverted conditional
Chris Lattner [Sat, 16 Jan 2010 01:37:14 +0000 (01:37 +0000)]
fix inverted conditional

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

14 years agoCurrentFnName is now dead, remove it.
Chris Lattner [Sat, 16 Jan 2010 01:24:10 +0000 (01:24 +0000)]
CurrentFnName is now dead, remove it.

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

14 years agoget pic16 off CurrentFnName
Chris Lattner [Sat, 16 Jan 2010 01:21:04 +0000 (01:21 +0000)]
get pic16 off CurrentFnName

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

14 years agoremove the string form of printVisibility.
Chris Lattner [Sat, 16 Jan 2010 01:17:26 +0000 (01:17 +0000)]
remove the string form of printVisibility.

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

14 years agoswitch more stuff onto MCSymbols
Chris Lattner [Sat, 16 Jan 2010 01:12:01 +0000 (01:12 +0000)]
switch more stuff onto MCSymbols

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

14 years agoTemporarily revert r93581. It was causing failures in the ExecutionEngine tests
Bill Wendling [Sat, 16 Jan 2010 01:06:58 +0000 (01:06 +0000)]
Temporarily revert r93581. It was causing failures in the ExecutionEngine tests
on the build bots.

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

14 years agoeliminate uses of deprecated mangler apis
Chris Lattner [Sat, 16 Jan 2010 01:00:27 +0000 (01:00 +0000)]
eliminate uses of deprecated mangler apis

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

14 years agothis teestcase takes a long time to crash, remove it. If someone cares about this...
Chris Lattner [Sat, 16 Jan 2010 00:53:22 +0000 (00:53 +0000)]
this teestcase takes a long time to crash, remove it.  If someone cares about this, they should file a bug, it's not doing any good as an xfail.

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

14 years agoswitch X86 target off CurFunctionName and MCIze more.
Chris Lattner [Sat, 16 Jan 2010 00:51:39 +0000 (00:51 +0000)]
switch X86 target off CurFunctionName and MCIze more.
Note that the code wasn't calling DecorateCygMingName
when emitting the ".ascii -export" stuff at the end of
file for DLLExported functions.  I don't know if it should
or not, but I'm preserving behavior.

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

14 years agoTreat indirect branches specially only during pre-regalloc tail duplication,
Bob Wilson [Sat, 16 Jan 2010 00:42:25 +0000 (00:42 +0000)]
Treat indirect branches specially only during pre-regalloc tail duplication,
not during the later post-alloc tail duplication.

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

14 years agoMCize tis, and make it keep CurrentFnSym up to date with CurrentFnName.
Chris Lattner [Sat, 16 Jan 2010 00:32:38 +0000 (00:32 +0000)]
MCize tis, and make it keep CurrentFnSym up to date with CurrentFnName.

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

14 years agoRun the pre-register allocation tail duplication pass by default. Remove
Bob Wilson [Sat, 16 Jan 2010 00:29:50 +0000 (00:29 +0000)]
Run the pre-register allocation tail duplication pass by default.  Remove
the -pre-regalloc-taildup command-line option, and add a new
-disable-early-taildup option.

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

14 years agorevert the x86 part of my last patch, cygwin is mutating CurrentFnName!
Chris Lattner [Sat, 16 Jan 2010 00:24:20 +0000 (00:24 +0000)]
revert the x86 part of my last patch, cygwin is mutating CurrentFnName!

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

14 years agoMCize a bunch more stuff, eliminating a lot of uses of the mangler
Chris Lattner [Sat, 16 Jan 2010 00:21:18 +0000 (00:21 +0000)]
MCize a bunch more stuff, eliminating a lot of uses of the mangler
and CurrentFnName.

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

14 years agoFix llvm_supports_binding for lit, problem noticed by Bob!
Daniel Dunbar [Sat, 16 Jan 2010 00:00:20 +0000 (00:00 +0000)]
Fix llvm_supports_binding for lit, problem noticed by Bob!

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

14 years agoremove two write-only sets.
Chris Lattner [Fri, 15 Jan 2010 23:56:03 +0000 (23:56 +0000)]
remove two write-only sets.

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

14 years agosupplement CurrentFnName with CurrentFnSym, which will eventually
Chris Lattner [Fri, 15 Jan 2010 23:55:16 +0000 (23:55 +0000)]
supplement CurrentFnName with CurrentFnSym, which will eventually
replace it.  Upgrade Alpha, Blackfin, and part of CellSPU to not
use mangler anymore.  CellSPU needs more invasive surgery.

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

14 years agoFix bug 5992: O'Caml's llvm_create_module was treating the context as a string.
Erick Tryzelaar [Fri, 15 Jan 2010 23:49:16 +0000 (23:49 +0000)]
Fix bug 5992: O'Caml's llvm_create_module was treating the context as a string.

Thanks Andy Ray for catching this!

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

14 years agoadd a version of AsmPrinter::printVisibility that takes an MCSymbol.
Chris Lattner [Fri, 15 Jan 2010 23:38:51 +0000 (23:38 +0000)]
add a version of AsmPrinter::printVisibility that takes an MCSymbol.

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

14 years agouse MCSymbol instead of getMangledName() in all cases except one.
Chris Lattner [Fri, 15 Jan 2010 23:31:55 +0000 (23:31 +0000)]
use MCSymbol instead of getMangledName() in all cases except one.

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

14 years agoBumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not initializatio...
Ted Kremenek [Fri, 15 Jan 2010 23:29:34 +0000 (23:29 +0000)]
BumpPtrAllocator: Have the DefaultSlabAllocator created at runtime, not initialization time.  This removes one of the 'init_constructors' reported in <rdar://problem/7545356>.

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

14 years agoAdjust some comments per review.
Dale Johannesen [Fri, 15 Jan 2010 23:29:29 +0000 (23:29 +0000)]
Adjust some comments per review.

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

14 years agoRemove unneeded argument per review.
Dale Johannesen [Fri, 15 Jan 2010 23:28:49 +0000 (23:28 +0000)]
Remove unneeded argument per review.

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

14 years agomc'ize a bunch of symbol stuff, eliminating std::strings.
Chris Lattner [Fri, 15 Jan 2010 23:26:49 +0000 (23:26 +0000)]
mc'ize a bunch of symbol stuff, eliminating std::strings.

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

14 years agoadd another helper
Chris Lattner [Fri, 15 Jan 2010 23:25:11 +0000 (23:25 +0000)]
add another helper

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

14 years agoFix PR6019. A load has more than one use if it feeds a bitconvert that
David Greene [Fri, 15 Jan 2010 23:23:41 +0000 (23:23 +0000)]
Fix PR6019.  A load has more than one use if it feeds a bitconvert that
has more than one use.

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

14 years agoadd a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbol
Chris Lattner [Fri, 15 Jan 2010 23:18:17 +0000 (23:18 +0000)]
add a AsmPrinter::GetGlobalValueSymbol and GetExternalSymbolSymbol
helper method, use it to simplify some code.

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

14 years agoUpdate CMake build.
Ted Kremenek [Fri, 15 Jan 2010 22:59:46 +0000 (22:59 +0000)]
Update CMake build.

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

14 years agoUpdate CMake build.
Ted Kremenek [Fri, 15 Jan 2010 22:59:11 +0000 (22:59 +0000)]
Update CMake build.

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

14 years agoadd testcase for r93564
Jim Grosbach [Fri, 15 Jan 2010 22:27:37 +0000 (22:27 +0000)]
add testcase for r93564

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

14 years agoAdd comments to the dump() and dumpr() routines.
Dan Gohman [Fri, 15 Jan 2010 22:22:58 +0000 (22:22 +0000)]
Add comments to the dump() and dumpr() routines.

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

14 years agoDEBUG_VALUE is now variable sized, as it has a
Dale Johannesen [Fri, 15 Jan 2010 22:22:35 +0000 (22:22 +0000)]
DEBUG_VALUE is now variable sized, as it has a
target-dependent memory address representation in it.
Restore X86 printing of DEBUG_VALUE; lowering is
done in X86RegisterInfo using the normal algorithm.

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

14 years agoUpdate Thumb1 storeRegToStackSlot() and loadRegFromStackSlot() to properly
Jim Grosbach [Fri, 15 Jan 2010 22:21:03 +0000 (22:21 +0000)]
Update Thumb1 storeRegToStackSlot() and loadRegFromStackSlot() to properly
handle physical registers R0-R7 when described as having a non-tGPR register
class.

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

14 years agoFix a typo that Anton noticed.
Dan Gohman [Fri, 15 Jan 2010 22:18:15 +0000 (22:18 +0000)]
Fix a typo that Anton noticed.

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

14 years agoAdd FIXME.
Devang Patel [Fri, 15 Jan 2010 22:08:16 +0000 (22:08 +0000)]
Add FIXME.

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

14 years agoFix a comment typo.
Bob Wilson [Fri, 15 Jan 2010 21:55:02 +0000 (21:55 +0000)]
Fix a comment typo.

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

14 years agomove "Metadata Nodes and Metadata Strings" section to the right place in the
Chris Lattner [Fri, 15 Jan 2010 21:50:19 +0000 (21:50 +0000)]
move "Metadata Nodes and Metadata Strings" section to the right place in the
document and edit it.

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

14 years agoRemove the InlineHint attribute. There are no current or planned
Eric Christopher [Fri, 15 Jan 2010 21:36:30 +0000 (21:36 +0000)]
Remove the InlineHint attribute. There are no current or planned
users.

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

14 years agozext / truncate is free on msp430. Inform codegen about this.
Anton Korobeynikov [Fri, 15 Jan 2010 21:19:43 +0000 (21:19 +0000)]
zext / truncate is free on msp430. Inform codegen about this.

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

14 years agoReenable tests
Anton Korobeynikov [Fri, 15 Jan 2010 21:19:26 +0000 (21:19 +0000)]
Reenable tests

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

14 years agoAdd branch relaxation pass (shamelessly stolen from PPC).
Anton Korobeynikov [Fri, 15 Jan 2010 21:19:05 +0000 (21:19 +0000)]
Add branch relaxation pass (shamelessly stolen from PPC).

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

14 years agoProvide instruction sizes & encoding. No opcodes yet (but not needed so far).
Anton Korobeynikov [Fri, 15 Jan 2010 21:18:39 +0000 (21:18 +0000)]
Provide instruction sizes & encoding. No opcodes yet (but not needed so far).

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

14 years agoEnable bit tests and setcc stuff.
Anton Korobeynikov [Fri, 15 Jan 2010 21:18:18 +0000 (21:18 +0000)]
Enable bit tests and setcc stuff.

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

14 years agoAdd micro-optimization which allows us to fold imm into cmp. This allows us to save...
Anton Korobeynikov [Fri, 15 Jan 2010 21:18:02 +0000 (21:18 +0000)]
Add micro-optimization which allows us to fold imm into cmp. This allows us to save 1 word (sometimes) and reduce register pressure.

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

14 years agoAdd instruction formats & support stuff
Anton Korobeynikov [Fri, 15 Jan 2010 21:17:13 +0000 (21:17 +0000)]
Add instruction formats & support stuff

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

14 years agoDon't make changes to the MBB in MachineBasicBlock::canFallThrough().
Jakob Stoklund Olesen [Fri, 15 Jan 2010 20:00:12 +0000 (20:00 +0000)]
Don't make changes to the MBB in MachineBasicBlock::canFallThrough().

This fixes the regression for -pre-regalloc-taildup in
MultiSource/Applications/lambda-0.1.3.

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

14 years agoSimplify logic. Any functional change is unintended.
Jakob Stoklund Olesen [Fri, 15 Jan 2010 19:59:57 +0000 (19:59 +0000)]
Simplify logic. Any functional change is unintended.

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

14 years agounbreak the build, grr symlinks.
Chris Lattner [Fri, 15 Jan 2010 19:51:05 +0000 (19:51 +0000)]
unbreak the build, grr symlinks.

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

14 years agoAdd some debug routines to SelectionDAG to dump full DAGs.
David Greene [Fri, 15 Jan 2010 19:43:23 +0000 (19:43 +0000)]
Add some debug routines to SelectionDAG to dump full DAGs.
print/dumpWithDepth allows one to dump a DAG up to N levels deep.
dump/printWithFullDepth prints the whole DAG, subject to a depth limit
on 100 in the default case (to prevent infinite recursion).

Have CannotYetSelect to a dumpWithFullDepth so it is clearer exactly
what the non-matching DAG looks like.

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

14 years agofix a bug in range information for $42, eliminate an
Chris Lattner [Fri, 15 Jan 2010 19:39:23 +0000 (19:39 +0000)]
fix a bug in range information for $42, eliminate an
unneeded argument from ParseExpression.

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

14 years agoadd range information for mem X86Operand's, now all
Chris Lattner [Fri, 15 Jan 2010 19:33:43 +0000 (19:33 +0000)]
add range information for mem X86Operand's, now all
X86Operand's have range info.

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

14 years agoextend MCAsmParser::ParseExpression and ParseParenExpression
Chris Lattner [Fri, 15 Jan 2010 19:28:38 +0000 (19:28 +0000)]
extend MCAsmParser::ParseExpression and ParseParenExpression
to return range information for subexpressions.  Use this to
provide range info for several new X86Operands.

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

14 years agogive X86Operand a ctor and start passing SMLoc's into it.
Chris Lattner [Fri, 15 Jan 2010 19:06:59 +0000 (19:06 +0000)]
give X86Operand a ctor and start passing SMLoc's into it.

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