oota-llvm.git
15 years agoPHI nodes can never reach the asmprinter, assert and die instead of printing
Chris Lattner [Fri, 11 Sep 2009 00:41:15 +0000 (00:41 +0000)]
PHI nodes can never reach the asmprinter, assert and die instead of printing
out an illegal "PHINODE" instruction.

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

15 years agoIt's not legal to fold a load from a narrower stack slot into a wider instruction...
Evan Cheng [Fri, 11 Sep 2009 00:39:26 +0000 (00:39 +0000)]
It's not legal to fold a load from a narrower stack slot into a wider instruction. If done, the instruction does a 64-bit load and that's not
safe. This can happen we a subreg_to_reg 0 has been coalesced. One
exception is when the instruction that folds the load is a move, then we
can simply turn it into a 32-bit load from the stack slot.

rdar://7170444

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

15 years agoMake fast-isel try ISD::FNEG before resorting to bitcasts and xors.
Dan Gohman [Fri, 11 Sep 2009 00:36:43 +0000 (00:36 +0000)]
Make fast-isel try ISD::FNEG before resorting to bitcasts and xors.

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

15 years agoReapply r81171 with a fix: don't try to use i64 when it
Dan Gohman [Fri, 11 Sep 2009 00:34:46 +0000 (00:34 +0000)]
Reapply r81171 with a fix: don't try to use i64 when it
isn't legal.

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

15 years agoFix indentation.
Dan Gohman [Fri, 11 Sep 2009 00:05:10 +0000 (00:05 +0000)]
Fix indentation.

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

15 years agoTeach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword and
Dan Gohman [Fri, 11 Sep 2009 00:04:14 +0000 (00:04 +0000)]
Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword and
how to fold notionally-out-of-bounds array getelementptr indices instead
of just doing these in lib/Analysis/ConstantFolding.cpp, because it can
be done in a fairly general way without TargetData, and because not all
constants are visited by lib/Analysis/ConstantFolding.cpp. This enables
more constant folding.

Also, set the "inbounds" flag when the getelementptr indices are
one-past-the-end.

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

15 years agoFactor out the code for checking that all indices in a getelementptr are
Dan Gohman [Thu, 10 Sep 2009 23:37:55 +0000 (23:37 +0000)]
Factor out the code for checking that all indices in a getelementptr are
within the notional bounds of the static type of the getelementptr (which
is not the same as "inbounds") from GlobalOpt into a utility routine,
and use it in ConstantFold.cpp to check whether there are any mis-behaved
indices.

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

15 years agoGive these files top-level comments that describe the current code.
Dan Gohman [Thu, 10 Sep 2009 23:07:18 +0000 (23:07 +0000)]
Give these files top-level comments that describe the current code.

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

15 years agoFix whitespaces.
Devang Patel [Thu, 10 Sep 2009 22:36:12 +0000 (22:36 +0000)]
Fix whitespaces.

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

15 years agoFix validation errors.
Bill Wendling [Thu, 10 Sep 2009 22:14:16 +0000 (22:14 +0000)]
Fix validation errors.

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

15 years agoFix validation errors.
Bill Wendling [Thu, 10 Sep 2009 22:12:50 +0000 (22:12 +0000)]
Fix validation errors.

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

15 years agoDon't swap the operands of a subtraction when trying to create a
Bob Wilson [Thu, 10 Sep 2009 22:09:31 +0000 (22:09 +0000)]
Don't swap the operands of a subtraction when trying to create a
post-decrement load/store.

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

15 years agoFix uppercaseo.
Dale Johannesen [Thu, 10 Sep 2009 22:01:32 +0000 (22:01 +0000)]
Fix uppercaseo.

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

15 years agoAdded the ParseInstruction() hook for target specific assembler directives so
Kevin Enderby [Thu, 10 Sep 2009 20:51:44 +0000 (20:51 +0000)]
Added the ParseInstruction() hook for target specific assembler directives so
that things like .word can be parsed as target specific.  Moved parsing .word
out of AsmParser.cpp into X86AsmParser.cpp as it is 2 bytes on X86 and 4 bytes
for other targets that support the .word directive.

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

15 years agoFit code within 80 columns
Victor Hernandez [Thu, 10 Sep 2009 20:18:57 +0000 (20:18 +0000)]
Fit code within 80 columns

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

15 years agoAdded XOR instructions for rAX and immediates of
Sean Callanan [Thu, 10 Sep 2009 19:52:26 +0000 (19:52 +0000)]
Added XOR instructions for rAX and immediates of
various widths.

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

15 years agoAdded MOV instructions between rAX and memory offsets,
Sean Callanan [Thu, 10 Sep 2009 18:33:42 +0000 (18:33 +0000)]
Added MOV instructions between rAX and memory offsets,
including segment offsets and (for 8-bit operands)
absolute offsets.

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

15 years agoAdded a variety of PUSH and POP instructions, including
Sean Callanan [Thu, 10 Sep 2009 18:29:13 +0000 (18:29 +0000)]
Added a variety of PUSH and POP instructions, including
ones capable of accessing R/M operands instead of just
registers.

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

15 years agoExit early if exception handling isn't supported.
Bill Wendling [Thu, 10 Sep 2009 18:28:06 +0000 (18:28 +0000)]
Exit early if exception handling isn't supported.

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

15 years agoAllow llvmc to take .bc files as input.
Mikhail Glushenkov [Thu, 10 Sep 2009 17:04:32 +0000 (17:04 +0000)]
Allow llvmc to take .bc files as input.

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

15 years agoMake ProfileEstimator more robust on general CFGs.
Andreas Neustifter [Thu, 10 Sep 2009 16:30:38 +0000 (16:30 +0000)]
Make ProfileEstimator more robust on general CFGs.

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

15 years agoadd another broken version of gcc, thanks to Niels Moller for pointing this out.
Chris Lattner [Thu, 10 Sep 2009 16:25:02 +0000 (16:25 +0000)]
add another broken version of gcc, thanks to Niels Moller for pointing this out.

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

15 years agoDistinguish between 'empty' and empty DAG marker.
Mikhail Glushenkov [Thu, 10 Sep 2009 16:22:02 +0000 (16:22 +0000)]
Distinguish between 'empty' and empty DAG marker.

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

15 years agoAdd a logical 'not' operator to llvmc's TableGen dialect.
Mikhail Glushenkov [Thu, 10 Sep 2009 16:21:38 +0000 (16:21 +0000)]
Add a logical 'not' operator to llvmc's TableGen dialect.

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

15 years agofix leakage of Module
Nuno Lopes [Thu, 10 Sep 2009 14:56:31 +0000 (14:56 +0000)]
fix leakage of Module

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

15 years agoAdd some braces to make newer GCCs happy and update CMakeLists.
Benjamin Kramer [Thu, 10 Sep 2009 11:31:39 +0000 (11:31 +0000)]
Add some braces to make newer GCCs happy and update CMakeLists.

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

15 years agoCleaned up code by factoring out common portions of edge loading into function.
Andreas Neustifter [Thu, 10 Sep 2009 07:12:35 +0000 (07:12 +0000)]
Cleaned up code by factoring out common portions of edge loading into function.

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

15 years agoCorrectly handle the case where a comparison is created in one BasicBlock and
Nick Lewycky [Thu, 10 Sep 2009 07:02:09 +0000 (07:02 +0000)]
Correctly handle the case where a comparison is created in one BasicBlock and
used by a terminator in another.

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

15 years agoComment and whitespace cleanups. No intentional functionality change.
Bill Wendling [Thu, 10 Sep 2009 06:50:01 +0000 (06:50 +0000)]
Comment and whitespace cleanups. No intentional functionality change.

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

15 years agoRevert part of my r81424 patch. I removed what looked like superfluous padding
Bill Wendling [Thu, 10 Sep 2009 06:27:16 +0000 (06:27 +0000)]
Revert part of my r81424 patch. I removed what looked like superfluous padding
from the exception tables. However, Duncan explained why it's a can of worms to
do it the GCC way. I went back to doing it the LLVM way and added Duncan's
explanation so that I don't do this again in the future.

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

15 years agoAdd a test case for r81431.
Evan Cheng [Thu, 10 Sep 2009 05:08:51 +0000 (05:08 +0000)]
Add a test case for r81431.

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

15 years agoRemove prcontext.
Daniel Dunbar [Thu, 10 Sep 2009 04:56:59 +0000 (04:56 +0000)]
Remove prcontext.

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

15 years agoAdd malloc call utility functions. Patch by Victor Hernandez.
Evan Cheng [Thu, 10 Sep 2009 04:36:43 +0000 (04:36 +0000)]
Add malloc call utility functions. Patch by Victor Hernandez.

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

15 years agoDon't hardcode the TType format size. In fact, rework the code so that it's more
Bill Wendling [Thu, 10 Sep 2009 02:07:37 +0000 (02:07 +0000)]
Don't hardcode the TType format size. In fact, rework the code so that it's more
like what GCC outputs. The mysterious code to insert padding wasn't in GCC at
all. I modified the TType base offset code to calculate the offset like GCC
does, though.

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

15 years agoProper support of non-lazy indirect symbols.
Evan Cheng [Thu, 10 Sep 2009 01:23:53 +0000 (01:23 +0000)]
Proper support of non-lazy indirect symbols.

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

15 years agoRemove the "#if 0" that Noone loved. It wasn't really necessary, because the
Bill Wendling [Thu, 10 Sep 2009 01:12:47 +0000 (01:12 +0000)]
Remove the "#if 0" that Noone loved. It wasn't really necessary, because the
code within it was the same inside and out. There's still a problem of the
TypeInfoSize should be the size of the TType format encoding (at least that's
what GCC thinks it should be).

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

15 years agoMC: Give target specific parsers access to the MCStreamer.
Daniel Dunbar [Thu, 10 Sep 2009 00:59:15 +0000 (00:59 +0000)]
MC: Give target specific parsers access to the MCStreamer.

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

15 years agoRevert r81171 which was causing pr4927.
Bob Wilson [Thu, 10 Sep 2009 00:49:22 +0000 (00:49 +0000)]
Revert r81171 which was causing pr4927.

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

15 years agoPull check for SJLJ EH into a boolean and use that.
Bill Wendling [Thu, 10 Sep 2009 00:17:04 +0000 (00:17 +0000)]
Pull check for SJLJ EH into a boolean and use that.

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

15 years agoUse the SizeOfEncodedValue function instead of magic variables for the
Bill Wendling [Thu, 10 Sep 2009 00:13:16 +0000 (00:13 +0000)]
Use the SizeOfEncodedValue function instead of magic variables for the
sizeof(DW_EH_PE_udata4).

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

15 years agoAdd helpful comment.
Bill Wendling [Thu, 10 Sep 2009 00:04:48 +0000 (00:04 +0000)]
Add helpful comment.

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

15 years agoBelieve it or not, this is a simplification. :-)
Bill Wendling [Wed, 9 Sep 2009 23:56:55 +0000 (23:56 +0000)]
Believe it or not, this is a simplification. :-)

Basically, this patch is working towards removing the hard-coded values that are
output for the CIE. In particular, the CIE augmentation and the CIE augmentation
size. Both of these should be calculated. In the process, I was able to make a
bunch of code simpler.

The encodings for the personality, LSDA, and FDE in the CIE are still not
correct. They should be generated either from target-specific callbacks (blech!)
or grokked from first-principles.

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

15 years agoFix double load / store multiple encoding.
Evan Cheng [Wed, 9 Sep 2009 23:55:03 +0000 (23:55 +0000)]
Fix double load / store multiple encoding.

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

15 years agocanonicalize namespace gymnastics
Chris Lattner [Wed, 9 Sep 2009 23:46:42 +0000 (23:46 +0000)]
canonicalize namespace gymnastics

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

15 years agoTestcase for (llvm-gcc) 81399. Adjust an older
Dale Johannesen [Wed, 9 Sep 2009 23:37:46 +0000 (23:37 +0000)]
Testcase for (llvm-gcc) 81399.  Adjust an older
test case to allow for different, functionally
identical output.

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

15 years agoFix pr4939: Change FPCCToARMCC to translate SETOLE to ARMCC::LS.
Bob Wilson [Wed, 9 Sep 2009 23:14:54 +0000 (23:14 +0000)]
Fix pr4939: Change FPCCToARMCC to translate SETOLE to ARMCC::LS.
See the bug report for details.

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

15 years agoremove DebugLoc from MCInst and eliminate "Comment printing" from
Chris Lattner [Wed, 9 Sep 2009 23:14:36 +0000 (23:14 +0000)]
remove DebugLoc from MCInst and eliminate "Comment printing" from
the MCInst path of the asmprinter.  Instead, pull comment printing
out of the autogenerated asmprinter into each target that uses the
autogenerated asmprinter.  This causes code duplication into each
target, but in a way that will be easier to clean up later when more
asmprinter stuff is commonized into the base AsmPrinter class.

This also fixes an xcore strangeness where it inserted two tabs
before every instruction.

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

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