oota-llvm.git
14 years agoPass in the unfortunately named "LessPrivatePrefix" for the
Bill Wendling [Mon, 20 Jul 2009 21:30:28 +0000 (21:30 +0000)]
Pass in the unfortunately named "LessPrivatePrefix" for the
"LinkerPrivatePrefix". It seems to have been used in only one place before I
started this "linker_private" business. I'm thinking that a rename is in
order...

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

14 years agoAssembly and Bitcode support for unsigned/signed overflow flags and
Dan Gohman [Mon, 20 Jul 2009 21:19:07 +0000 (21:19 +0000)]
Assembly and Bitcode support for unsigned/signed overflow flags and
exact sdiv flags.

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

14 years agoUse TII->findCommutedOpIndices to find the commute operands (rather than guessing).
Evan Cheng [Mon, 20 Jul 2009 21:16:08 +0000 (21:16 +0000)]
Use TII->findCommutedOpIndices to find the commute operands (rather than guessing).

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

14 years agoChange the casting of linkage types into a map. This makes this much more robust
Bill Wendling [Mon, 20 Jul 2009 20:34:46 +0000 (20:34 +0000)]
Change the casting of linkage types into a map. This makes this much more robust
as it no longer depends upon two different enums being kept in sync with each
other.

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

14 years agoClarify that OverflowingBinaryOperator is not used for SDiv, even though
Dan Gohman [Mon, 20 Jul 2009 20:32:43 +0000 (20:32 +0000)]
Clarify that OverflowingBinaryOperator is not used for SDiv, even though
SDiv is a binary operation that can overflow.

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

14 years agoRemoved the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as
Kevin Enderby [Mon, 20 Jul 2009 20:25:37 +0000 (20:25 +0000)]
Removed the DumpSymbolsandMacros and LoadSymbolsandMacros MCStreamer API as
the parsing of the .dump and .load should be done in the assembly parser and
not have any need for an MCStreamer API.  Changed the code for now so these
just produce an error saying these specific directives are not yet implemented
since they are likely no longer used and may never need to be implemented.

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

14 years agoAdd MCAsmLexer interface.
Daniel Dunbar [Mon, 20 Jul 2009 20:01:54 +0000 (20:01 +0000)]
Add MCAsmLexer interface.
 - This provides the AsmLexer interface to the target specific assembly parsers.

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

14 years agoFix some sub-reg coalescing bugs where the coalescer wasn't updating the resulting...
Evan Cheng [Mon, 20 Jul 2009 19:47:55 +0000 (19:47 +0000)]
Fix some sub-reg coalescing bugs where the coalescer wasn't updating the resulting interval's register class.

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

14 years agoRemove FIXME that was already fixed.
Eli Friedman [Mon, 20 Jul 2009 19:45:16 +0000 (19:45 +0000)]
Remove FIXME that was already fixed.

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

14 years agoRename Mangler linkage enums to something less gross.
Bill Wendling [Mon, 20 Jul 2009 19:41:27 +0000 (19:41 +0000)]
Rename Mangler linkage enums to something less gross.

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

14 years agoRefactor metadata parsing routines into separate functions.
Devang Patel [Mon, 20 Jul 2009 19:00:08 +0000 (19:00 +0000)]
Refactor metadata parsing routines into separate functions.

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

14 years agoAdd MCAsmParser interface.
Daniel Dunbar [Mon, 20 Jul 2009 18:55:04 +0000 (18:55 +0000)]
Add MCAsmParser interface.
 - This provides the AsmParser interface to the target specific assembly
   parsers.

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

14 years agoBuild FileCheck from with CMake
Douglas Gregor [Mon, 20 Jul 2009 18:30:25 +0000 (18:30 +0000)]
Build FileCheck from with CMake

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

14 years agoPut new enum at end of list to avoid changing ABI.
Bill Wendling [Mon, 20 Jul 2009 18:22:52 +0000 (18:22 +0000)]
Put new enum at end of list to avoid changing ABI.

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

14 years agoremove TargetAsmInfo::ExpandInlineAsm
Chris Lattner [Mon, 20 Jul 2009 17:59:32 +0000 (17:59 +0000)]
remove TargetAsmInfo::ExpandInlineAsm

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

14 years agouse ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.
Chris Lattner [Mon, 20 Jul 2009 17:52:52 +0000 (17:52 +0000)]
use ExpandInlineAsm on TargetLowering instead of TargetAsmInfo.

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

14 years agoCopy ExpandInlineAsm to TargetLowering from TargetAsmInfo.
Chris Lattner [Mon, 20 Jul 2009 17:51:36 +0000 (17:51 +0000)]
Copy ExpandInlineAsm to TargetLowering from TargetAsmInfo.

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

14 years agoDrop UDivOperator and introduce SDivOperator. Thanks to Chris
Dan Gohman [Mon, 20 Jul 2009 17:51:10 +0000 (17:51 +0000)]
Drop UDivOperator and introduce SDivOperator. Thanks to Chris
for noticing this.

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

14 years agoadd some fixme's and cleanups. TargetAsmInfo shouldn't depend on VMCore eventually.
Chris Lattner [Mon, 20 Jul 2009 17:47:48 +0000 (17:47 +0000)]
add some fixme's and cleanups.  TargetAsmInfo shouldn't depend on VMCore eventually.

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

14 years agoUpdate this comment.
Dan Gohman [Mon, 20 Jul 2009 17:44:17 +0000 (17:44 +0000)]
Update this comment.

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

14 years agoRevert the addition of hasNoPointerOverflow to GEPOperator.
Dan Gohman [Mon, 20 Jul 2009 17:43:30 +0000 (17:43 +0000)]
Revert the addition of hasNoPointerOverflow to GEPOperator.
Getelementptrs that are defined to wrap are virtually useless to
optimization, and getelementptrs that are undefined on any kind
of overflow are too restrictive -- it's difficult to ensure that
all intermediate addresses are within bounds. I'm going to take
a different approach.

Remove a few optimizations that depended on this flag.

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

14 years agoremove dead forward decl
Chris Lattner [Mon, 20 Jul 2009 17:23:00 +0000 (17:23 +0000)]
remove dead forward decl

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

14 years agoFor remote execution, must cd to the executable directory since the exe expects to...
David Goodwin [Mon, 20 Jul 2009 17:15:03 +0000 (17:15 +0000)]
For remote execution, must cd to the executable directory since the exe expects to find a dylib in the CWD ('.').

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

14 years agorename TargetAsmInfo::getASDirective -> getDataASDirective
Chris Lattner [Mon, 20 Jul 2009 17:12:46 +0000 (17:12 +0000)]
rename TargetAsmInfo::getASDirective -> getDataASDirective

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

14 years agoFix comment.
Daniel Dunbar [Mon, 20 Jul 2009 16:50:16 +0000 (16:50 +0000)]
Fix comment.

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

14 years agoHide the DOUT static variable behind a function interface.
David Greene [Mon, 20 Jul 2009 16:16:06 +0000 (16:16 +0000)]
Hide the DOUT static variable behind a function interface.

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

14 years agoUse t2LDRri12 for frame index loads.
David Goodwin [Mon, 20 Jul 2009 15:55:39 +0000 (15:55 +0000)]
Use t2LDRri12 for frame index loads.

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

14 years agoxfail for now.
Evan Cheng [Mon, 20 Jul 2009 15:33:09 +0000 (15:33 +0000)]
xfail for now.

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

14 years agoPR4591: Make sure to initialize the pass manager before using it.
Eli Friedman [Mon, 20 Jul 2009 14:50:07 +0000 (14:50 +0000)]
PR4591: Make sure to initialize the pass manager before using it.

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

14 years agoFor PC relative relocations where symbols are defined in the same section they
Bruno Cardoso Lopes [Mon, 20 Jul 2009 08:52:02 +0000 (08:52 +0000)]
For PC relative relocations where symbols are defined in the same section they
are referenced, ignore the relocation entry and patch the relocatable field with
the computed symbol offset directly

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

14 years agoAdd -std-{compile,link}-opts to bugpoint.
Daniel Dunbar [Mon, 20 Jul 2009 07:01:01 +0000 (07:01 +0000)]
Add -std-{compile,link}-opts to bugpoint.
 - Sheesh.

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

14 years agoFix PR4567. Thumb1 target was using the wrong instruction to handle sp = sub fp, #c.
Evan Cheng [Mon, 20 Jul 2009 06:59:32 +0000 (06:59 +0000)]
Fix PR4567. Thumb1 target was using the wrong instruction to handle sp = sub fp, #c.

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

14 years agoimplement a new magic global "llvm.compiler.used" which is like llvm.used, but
Chris Lattner [Mon, 20 Jul 2009 06:14:25 +0000 (06:14 +0000)]
implement a new magic global "llvm.compiler.used" which is like llvm.used, but
doesn't cause ".no_dead_strip" to be emitted on darwin.

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

14 years agoRestore AsmWriterEmitter.cpp back to 74742. The recent changes broke Thumb.
Evan Cheng [Mon, 20 Jul 2009 06:10:07 +0000 (06:10 +0000)]
Restore AsmWriterEmitter.cpp back to 74742. The recent changes broke Thumb.

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

14 years agouse stripPointerCasts to simplify some code.
Chris Lattner [Mon, 20 Jul 2009 06:05:50 +0000 (06:05 +0000)]
use stripPointerCasts to simplify some code.

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

14 years agodocument llvm.used and llvm.metadata. Stub out llvm.global_[cd]tors
Chris Lattner [Mon, 20 Jul 2009 05:55:19 +0000 (05:55 +0000)]
document llvm.used and llvm.metadata.  Stub out llvm.global_[cd]tors

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

14 years agoRename the index to linkage types.
Bill Wendling [Mon, 20 Jul 2009 02:41:50 +0000 (02:41 +0000)]
Rename the index to linkage types.

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

14 years agoMore reformatting.
Bill Wendling [Mon, 20 Jul 2009 02:39:26 +0000 (02:39 +0000)]
More reformatting.

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

14 years agoFix HTML violations.
Bill Wendling [Mon, 20 Jul 2009 02:32:41 +0000 (02:32 +0000)]
Fix HTML violations.

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

14 years agoObsessivly reformat.
Bill Wendling [Mon, 20 Jul 2009 02:29:24 +0000 (02:29 +0000)]
Obsessivly reformat.

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

14 years agoModel fpscr to prevent fcmped / fcmpezs etc from being deleted.
Evan Cheng [Mon, 20 Jul 2009 02:12:31 +0000 (02:12 +0000)]
Model fpscr to prevent fcmped / fcmpezs etc from being deleted.

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

14 years agoAdd plumbing for the `linker_private' linkage type. This type is meant for
Bill Wendling [Mon, 20 Jul 2009 01:03:30 +0000 (01:03 +0000)]
Add plumbing for the `linker_private' linkage type. This type is meant for
"private" symbols which the assember shouldn't strip, but which the linker may
remove after evaluation. This is mostly useful for Objective-C metadata.

This is plumbing, so we don't have a use of it yet. More to come, etc.

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

14 years agoCMake support for SystemZ.
Daniel Dunbar [Mon, 20 Jul 2009 00:24:17 +0000 (00:24 +0000)]
CMake support for SystemZ.

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

14 years agoTweak svn:ignore
Daniel Dunbar [Sun, 19 Jul 2009 22:48:58 +0000 (22:48 +0000)]
Tweak svn:ignore

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

14 years agoThis test should be run with -m32.
Daniel Dunbar [Sun, 19 Jul 2009 22:44:03 +0000 (22:44 +0000)]
This test should be run with -m32.

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

14 years agofix test
Chris Lattner [Sun, 19 Jul 2009 20:19:25 +0000 (20:19 +0000)]
fix test

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

14 years agoDisambiguateGlobalSymbols should not mangle intrinsics.
Chris Lattner [Sun, 19 Jul 2009 20:19:04 +0000 (20:19 +0000)]
DisambiguateGlobalSymbols should not mangle intrinsics.

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

14 years agoDon't override LowerArguments in the SPARC backend. In addition to
Eli Friedman [Sun, 19 Jul 2009 19:53:46 +0000 (19:53 +0000)]
Don't override LowerArguments in the SPARC backend.  In addition to
being more consistent with other backends, this makes the SPARC backend
deal with functions with arguments with illegal types correctly, which
fixes some tests in test/CodeGen/Generic.

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

14 years agoFix a regression from 76124. Thumb1 instructions default to S bit being true.
Evan Cheng [Sun, 19 Jul 2009 19:16:46 +0000 (19:16 +0000)]
Fix a regression from 76124. Thumb1 instructions default to S bit being true.

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

14 years agoFix http://llvm.org/bugs/show_bug.cgi?id=4583
Jakob Stoklund Olesen [Sun, 19 Jul 2009 19:09:59 +0000 (19:09 +0000)]
Fix http://llvm.org/bugs/show_bug.cgi?id=4583

Inline asm instructions may have additional <imp-def,kill> register operands.
These operands are not marked with a flag like the normal asm operands, so we
must not assert that there is a flag.

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

14 years agoFix build
Daniel Dunbar [Sun, 19 Jul 2009 08:27:16 +0000 (08:27 +0000)]
Fix build

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

14 years agoFix: Kaleidoscope link in JIT and Interpreter by including JIT.h and Interpreter.h
Xerxes Ranby [Sun, 19 Jul 2009 08:10:01 +0000 (08:10 +0000)]
Fix: Kaleidoscope link in JIT and Interpreter by including JIT.h and Interpreter.h

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

14 years agoFix ConstantRange::unionWith. Also make it work a little hard in some cases to
Nick Lewycky [Sun, 19 Jul 2009 03:44:35 +0000 (03:44 +0000)]
Fix ConstantRange::unionWith. Also make it work a little hard in some cases to
return the smallest union of two ranges instead of just any range that happens
to contain the union.

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

14 years agoRemove redundant qualifiers.
Daniel Dunbar [Sun, 19 Jul 2009 01:42:34 +0000 (01:42 +0000)]
Remove redundant qualifiers.

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

14 years agoFix some minor MSVC compiler warnings.
Daniel Dunbar [Sun, 19 Jul 2009 01:38:38 +0000 (01:38 +0000)]
Fix some minor MSVC compiler warnings.

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

14 years agoMSVC: Disable 4351, a completely useless warning: "warning: I'm not miscompiling
Daniel Dunbar [Sun, 19 Jul 2009 01:35:10 +0000 (01:35 +0000)]
MSVC: Disable 4351, a completely useless warning: "warning: I'm not miscompiling
this". Um, ok, thanks!

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

14 years agoUnbreak build
Daniel Dunbar [Sun, 19 Jul 2009 01:33:04 +0000 (01:33 +0000)]
Unbreak build

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

14 years agoSwitch Alpha over to the new call lowering style. New code mostly
Eli Friedman [Sun, 19 Jul 2009 01:11:32 +0000 (01:11 +0000)]
Switch Alpha over to the new call lowering style.  New code mostly
copied from the SystemZ target.  I don't think this causes any
significant changes to the output (I compared the assembly, and the
results appeared to be essentially unchanged), although I don't actually
have an Alpha to test on.

I would appreciate if anyone with the appropriate hardware could test
this. I'm not sure if that includes anyone subscribed to llvm-commits,
though.

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

14 years agoSystemZ *does* have a CodeGen/AsmPrinter split.
Daniel Dunbar [Sun, 19 Jul 2009 00:46:44 +0000 (00:46 +0000)]
SystemZ *does* have a CodeGen/AsmPrinter split.
 - What it doesn't have is the rest of its cmake files...

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

14 years agoTweak cmake files for the four targets that don't split CodeGen out.
Daniel Dunbar [Sun, 19 Jul 2009 00:26:46 +0000 (00:26 +0000)]
Tweak cmake files for the four targets that don't split CodeGen out.
 - We should canonicalize this and get rid of the cmake and llvm-config hacks to
   support both variants.

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

14 years agoAdd dependencies from TargetInfo onto .td generation.
Daniel Dunbar [Sun, 19 Jul 2009 00:21:12 +0000 (00:21 +0000)]
Add dependencies from TargetInfo onto .td generation.
 - Shouldn't really be necessary, but currently .inc files get included into
   some main target headers.

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

14 years agoUse R_X86_64_32S to handle Jump Table Index relocation entries. Hide TAI usage inside...
Bruno Cardoso Lopes [Sat, 18 Jul 2009 23:24:01 +0000 (23:24 +0000)]
Use R_X86_64_32S to handle Jump Table Index relocation entries. Hide TAI usage inside getSection* functions

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

14 years agoAdd some missing includes.
Daniel Dunbar [Sat, 18 Jul 2009 23:22:46 +0000 (23:22 +0000)]
Add some missing includes.

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

14 years agoCanonicalize bitcasts between types like <1 x i64> and i64 to
Eli Friedman [Sat, 18 Jul 2009 23:06:53 +0000 (23:06 +0000)]
Canonicalize bitcasts between types like <1 x i64> and i64 to
insertelement/extractelement.

I'm not entirely sure this is precisely what we want to do: should we
prefer bitcast(insertelement) or insertelement(bitcast)?  Similarly. should we
prefer extractelement(bitcast) or bitcast(extractelement)?

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

14 years agoPut Target definitions inside Target specific header, and llvm namespace.
Daniel Dunbar [Sat, 18 Jul 2009 23:03:22 +0000 (23:03 +0000)]
Put Target definitions inside Target specific header, and llvm namespace.

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

14 years agofix some typos pointed out by Hidenobu Seki
Chris Lattner [Sat, 18 Jul 2009 21:47:15 +0000 (21:47 +0000)]
fix some typos pointed out by Hidenobu Seki

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

14 years agoAdd a Program::GetPid() method.
Mikhail Glushenkov [Sat, 18 Jul 2009 21:43:40 +0000 (21:43 +0000)]
Add a Program::GetPid() method.

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

14 years agoRemove duplication in Program::Execute{And,No}Wait.
Mikhail Glushenkov [Sat, 18 Jul 2009 21:43:12 +0000 (21:43 +0000)]
Remove duplication in Program::Execute{And,No}Wait.

Implemented by moving the code out of static functions into methods of Program
class.

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

14 years agoUse a better name for the label relocations while emitting them for Jump Tables
Bruno Cardoso Lopes [Sat, 18 Jul 2009 20:52:11 +0000 (20:52 +0000)]
Use a better name for the label relocations while emitting them for Jump Tables

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

14 years agocmake builds don't need this hack for MSVC anymore.
Daniel Dunbar [Sat, 18 Jul 2009 20:10:04 +0000 (20:10 +0000)]
cmake builds don't need this hack for MSVC anymore.

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

14 years agoAdd support to properly reference private symbols on relocation entries.
Bruno Cardoso Lopes [Sat, 18 Jul 2009 19:30:09 +0000 (19:30 +0000)]
Add support to properly reference private symbols on relocation entries.
Use proper relocation type to build relocations for JumpTables (rodata
sections).

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

14 years agoBack out 76300; apparently the preference is to canonicalize the other
Eli Friedman [Sat, 18 Jul 2009 19:04:16 +0000 (19:04 +0000)]
Back out 76300; apparently the preference is to canonicalize the other
way (bitcast -> insert/extractelement).

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

14 years agoadd a fixme
Chris Lattner [Sat, 18 Jul 2009 18:49:04 +0000 (18:49 +0000)]
add a fixme

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

14 years agoRequire a remote command to exit with the exit status of the test program or with...
Viktor Kutuzov [Sat, 18 Jul 2009 18:39:24 +0000 (18:39 +0000)]
Require a remote command to exit with the exit status of the test program or with 255 if an error occurred.

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

14 years agoAdd carry producing / using versions of add / sub
Anton Korobeynikov [Sat, 18 Jul 2009 14:16:06 +0000 (14:16 +0000)]
Add carry producing / using versions of add / sub

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

14 years agoExpand frem
Anton Korobeynikov [Sat, 18 Jul 2009 13:44:25 +0000 (13:44 +0000)]
Expand frem

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

14 years agoTurn abort() into unreachable
Anton Korobeynikov [Sat, 18 Jul 2009 13:34:59 +0000 (13:34 +0000)]
Turn abort() into unreachable

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

14 years agoTurn few asserts into errors / unreachable's
Anton Korobeynikov [Sat, 18 Jul 2009 13:33:17 +0000 (13:33 +0000)]
Turn few asserts into errors / unreachable's

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

14 years agoHandle vector returns
Anton Korobeynikov [Sat, 18 Jul 2009 12:51:06 +0000 (12:51 +0000)]
Handle vector returns

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

14 years agoProvide expansion for ct* intrinsics
Anton Korobeynikov [Sat, 18 Jul 2009 12:26:13 +0000 (12:26 +0000)]
Provide expansion for ct* intrinsics

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

14 years agoExpand sext_inreg for i1
Anton Korobeynikov [Sat, 18 Jul 2009 12:20:36 +0000 (12:20 +0000)]
Expand sext_inreg for i1

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

14 years agoAdd combine: X sdiv (1 << Y) -> X udiv (1 << Y) when X doesn't have the
Eli Friedman [Sat, 18 Jul 2009 09:53:21 +0000 (09:53 +0000)]
Add combine: X sdiv (1 << Y) -> X udiv (1 << Y) when X doesn't have the
sign bit set.

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

14 years agoRemove no-op check.
Eli Friedman [Sat, 18 Jul 2009 09:21:25 +0000 (09:21 +0000)]
Remove no-op check.

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

14 years agoRemove dead check.
Eli Friedman [Sat, 18 Jul 2009 09:12:15 +0000 (09:12 +0000)]
Remove dead check.

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

14 years agoCanonicalize insert/extractelement from single-element vectors into
Eli Friedman [Sat, 18 Jul 2009 09:07:47 +0000 (09:07 +0000)]
Canonicalize insert/extractelement from single-element vectors into
bitcasts.

It would also be possible to canonicalize the other way; does anyone
have a preference?

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

14 years agoFix simplifylibcalls memset recognition to work on 64-bit platforms
Eli Friedman [Sat, 18 Jul 2009 08:34:51 +0000 (08:34 +0000)]
Fix simplifylibcalls memset recognition to work on 64-bit platforms
where int is 32 bits.

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

14 years agoSwitch lli back to using allocate-gvs-with-code behavior.
Daniel Dunbar [Sat, 18 Jul 2009 08:07:13 +0000 (08:07 +0000)]
Switch lli back to using allocate-gvs-with-code behavior.
 - Otherwise we get two regressions in llvm-test for applications which run out
   of space.

 - Once the JIT memory manager is improved, this can be switched back.

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

14 years agoReplace intersectWith with maximalIntersectWith. The latter guarantees that
Nick Lewycky [Sat, 18 Jul 2009 06:34:42 +0000 (06:34 +0000)]
Replace intersectWith with maximalIntersectWith. The latter guarantees that
all values belonging to the intersection will belong to the resulting range.
The former was inconsistent about that point (either way is fine, just pick
one.) This is part of PR4545.

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

14 years agoUnbreak unittests build.
Daniel Dunbar [Sat, 18 Jul 2009 06:08:49 +0000 (06:08 +0000)]
Unbreak unittests build.
 - Reid, please check, I'm not sure if this is what was intended.

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

14 years agoFix the inline cost calculation to take into account instructions
Eli Friedman [Sat, 18 Jul 2009 05:26:06 +0000 (05:26 +0000)]
Fix the inline cost calculation to take into account instructions
which cannot be folded even if they have constant operands. Significantly
helps if_spppsubr.c attached to PR4573.

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

14 years agoAdd line breaks to make the debug output a bit more readable.
Eli Friedman [Sat, 18 Jul 2009 05:12:58 +0000 (05:12 +0000)]
Add line breaks to make the debug output a bit more readable.

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

14 years agoCatch more coalescing opportunities.
Evan Cheng [Sat, 18 Jul 2009 04:52:23 +0000 (04:52 +0000)]
Catch more coalescing opportunities.

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

14 years agoEnable cross register class coalescing.
Evan Cheng [Sat, 18 Jul 2009 02:10:10 +0000 (02:10 +0000)]
Enable cross register class coalescing.

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

14 years agoMake GetElementPtr ConstantExprs default to having no pointer overflow.
Dan Gohman [Sat, 18 Jul 2009 01:49:22 +0000 (01:49 +0000)]
Make GetElementPtr ConstantExprs default to having no pointer overflow.

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

14 years agoRevert 76177 for now. It's messing up ARM asm printing. Also this significant debate...
Evan Cheng [Sat, 18 Jul 2009 01:43:53 +0000 (01:43 +0000)]
Revert 76177 for now. It's messing up ARM asm printing. Also this significant debate about its efficiency.

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

14 years agoFix this accidentally inverted condition.
Dan Gohman [Sat, 18 Jul 2009 00:58:38 +0000 (00:58 +0000)]
Fix this accidentally inverted condition.

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

14 years agoAdd EngineBuilder to ExecutionEngine in favor of the five optional argument EE::create().
Reid Kleckner [Sat, 18 Jul 2009 00:42:18 +0000 (00:42 +0000)]
Add EngineBuilder to ExecutionEngine in favor of the five optional argument EE::create().

Also a test commit.

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

14 years agoConvert more code to use Operator instead of explicitly handling both
Dan Gohman [Fri, 17 Jul 2009 23:55:56 +0000 (23:55 +0000)]
Convert more code to use Operator instead of explicitly handling both
ConstantExpr and Instruction. This involves duplicating some code
between GetElementPtrInst and GEPOperator, but it's not a lot.

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

14 years agoUpdate CMake file.
Ted Kremenek [Fri, 17 Jul 2009 23:50:26 +0000 (23:50 +0000)]
Update CMake file.

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

14 years agollvm-mc: Default -triple to LLVM_HOSTTRIPLE.
Daniel Dunbar [Fri, 17 Jul 2009 22:51:20 +0000 (22:51 +0000)]
llvm-mc: Default -triple to LLVM_HOSTTRIPLE.

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