oota-llvm.git
15 years agollvm-mc: Improve indirect symbol support (add the indirect index table).
Daniel Dunbar [Wed, 26 Aug 2009 00:18:21 +0000 (00:18 +0000)]
llvm-mc: Improve indirect symbol support (add the indirect index table).

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

15 years agoRemove unused variables.
Dan Gohman [Wed, 26 Aug 2009 00:13:22 +0000 (00:13 +0000)]
Remove unused variables.

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

15 years agollvm-mc: Add MCSection::isDefined()
Daniel Dunbar [Wed, 26 Aug 2009 00:10:55 +0000 (00:10 +0000)]
llvm-mc: Add MCSection::isDefined()

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

15 years agoFix the InsertAtEnd form of ShuffleVectorInst constructor to use
Dan Gohman [Tue, 25 Aug 2009 23:27:45 +0000 (23:27 +0000)]
Fix the InsertAtEnd form of ShuffleVectorInst constructor to use
the correct type.

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

15 years agoEliminate the unused Context argument on one of the ICmpInst and FCmpInst
Dan Gohman [Tue, 25 Aug 2009 23:17:54 +0000 (23:17 +0000)]
Eliminate the unused Context argument on one of the ICmpInst and FCmpInst
constructors.

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

15 years agorevert r78628 and r78803 as these are not needed any more
Gabor Greif [Tue, 25 Aug 2009 23:02:21 +0000 (23:02 +0000)]
revert r78628 and r78803 as these are not needed any more

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

15 years agoUpdated i128 sext support for CellSPU backend, contributed by Ken Werner (IBM)
Scott Michel [Tue, 25 Aug 2009 22:37:34 +0000 (22:37 +0000)]
Updated i128 sext support for CellSPU backend, contributed by Ken Werner (IBM)

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

15 years agoUse covariant return types for Instruction::clone, and eliminate
Dan Gohman [Tue, 25 Aug 2009 22:29:08 +0000 (22:29 +0000)]
Use covariant return types for Instruction::clone, and eliminate
the forms of ExtractElementInst and InsertElementInst that are
equivalent to clone.

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

15 years agoGet rid of this horrible "benign race" by exploiting ManagedStatic to initialize
Owen Anderson [Tue, 25 Aug 2009 22:27:22 +0000 (22:27 +0000)]
Get rid of this horrible "benign race" by exploiting ManagedStatic to initialize
the array on its first access.

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

15 years agoThis should use isIndenticalToWhenDefined.
Dan Gohman [Tue, 25 Aug 2009 22:24:20 +0000 (22:24 +0000)]
This should use isIndenticalToWhenDefined.

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

15 years agoRename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined,
Dan Gohman [Tue, 25 Aug 2009 22:11:20 +0000 (22:11 +0000)]
Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined,
and introduce a new Instruction::isIdenticalTo which tests for full
identity, including the SubclassOptionalData flags. Also, fix the
Instruction::clone implementations to preserve the SubclassOptionalData
flags. Finally, teach several optimizations how to handle
SubclassOptionalData correctly, given these changes.

This fixes the counterintuitive behavior of isIdenticalTo not comparing
the full value, and clone not returning an identical clone, as well as
some subtle bugs that could be caused by these.

Thanks to Nick Lewycky for reporting this, and for an initial patch!

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

15 years agoRevert last patch. We need to put this into TargetLowering. There will be a lot
Bill Wendling [Tue, 25 Aug 2009 21:31:39 +0000 (21:31 +0000)]
Revert last patch. We need to put this into TargetLowering. There will be a lot
of EH stuff going into there, so we can wait to add them all then.

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

15 years agore-committing yesterday's r79938.
Gabor Greif [Tue, 25 Aug 2009 21:25:22 +0000 (21:25 +0000)]
re-committing yesterday's r79938.

This time there is no additional include of llvm/Config/config.h
at all. Instead I use a hard-coded preprecessor symbol:
LLVM_COMPACTIFY_SENTINELS

(should this work on the self-hosting buildbot, then
 cleanups come next)

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

15 years agollvm-mc: Add statistic for number of fragments emitted by the assembler.
Daniel Dunbar [Tue, 25 Aug 2009 21:10:45 +0000 (21:10 +0000)]
llvm-mc: Add statistic for number of fragments emitted by the assembler.

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

15 years agoAdd the #include here.
Bill Wendling [Tue, 25 Aug 2009 21:09:50 +0000 (21:09 +0000)]
Add the #include here.

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

15 years agoremove some dead lines.
Chris Lattner [Tue, 25 Aug 2009 21:01:56 +0000 (21:01 +0000)]
remove some dead lines.

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

15 years agoComment formatting. Removing of unused #include and type forwarding.
Bill Wendling [Tue, 25 Aug 2009 21:01:42 +0000 (21:01 +0000)]
Comment formatting. Removing of unused #include and type forwarding.

OCD is fun!

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

15 years agoconvert to filecheck style
Chris Lattner [Tue, 25 Aug 2009 20:57:38 +0000 (20:57 +0000)]
convert to filecheck style

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

15 years agoconvert to filecheck
Chris Lattner [Tue, 25 Aug 2009 20:49:04 +0000 (20:49 +0000)]
convert to filecheck

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

15 years agoAdd a target asm info hook to specify that particular bits of data in the FDE
Bill Wendling [Tue, 25 Aug 2009 20:21:17 +0000 (20:21 +0000)]
Add a target asm info hook to specify that particular bits of data in the FDE
should be forced to 32-bits (.long) even on 64-bit architectures. Darwin wants
these bits to be 64-bits (.quad). However, other platforms may disagree.

This is just the info right now and is part of a work-in-progress which needs
this. We'll add the actual *use* of this soon.

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

15 years agoEXIT STAGE LEFT: gccas, gccld
Daniel Dunbar [Tue, 25 Aug 2009 20:21:09 +0000 (20:21 +0000)]
EXIT STAGE LEFT: gccas, gccld

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

15 years agoStart refactoring PIC16 TargetObjectFile code. Eventually, all the stuff from
Sanjiv Gupta [Tue, 25 Aug 2009 19:39:05 +0000 (19:39 +0000)]
Start refactoring PIC16 TargetObjectFile code. Eventually, all the stuff from
PIC16Section will move to MCSectionPIC16.

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

15 years agoSwitch abi-isel.ll to FileCheck; it's not much faster, but it now tests a lot
Daniel Dunbar [Tue, 25 Aug 2009 18:45:03 +0000 (18:45 +0000)]
Switch abi-isel.ll to FileCheck; it's not much faster, but it now tests a lot
more and is much nicer to the OS.
 - Dan, please check. If there are parts of the test you think I should strip
   out so it doesn't cause random failures let me know (there are still some PIC
   label numbers in it, for example).

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

15 years agoDon't assume that two identical instructions that read from memory
Dan Gohman [Tue, 25 Aug 2009 17:56:57 +0000 (17:56 +0000)]
Don't assume that two identical instructions that read from memory
will always return the same value. This isn't currently necessary,
since this code doesn't currently ever get called under circumstances
where it would matter, but it may some day.

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

15 years agoRemove some unused SDNode definitions.
Bob Wilson [Tue, 25 Aug 2009 17:52:39 +0000 (17:52 +0000)]
Remove some unused SDNode definitions.

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

15 years agoTeach ScalarEvolution about GlobalAliases.
Dan Gohman [Tue, 25 Aug 2009 17:49:57 +0000 (17:49 +0000)]
Teach ScalarEvolution about GlobalAliases.

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

15 years agoDelete some unnecessary flushes.
Dan Gohman [Tue, 25 Aug 2009 17:48:17 +0000 (17:48 +0000)]
Delete some unnecessary flushes.

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

15 years agoUse X86II::MO_NO_FLAG.
Dan Gohman [Tue, 25 Aug 2009 17:47:44 +0000 (17:47 +0000)]
Use X86II::MO_NO_FLAG.

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

15 years agoExpose the instruction contraint string as an argument to the NLdSt class.
Bob Wilson [Tue, 25 Aug 2009 17:46:06 +0000 (17:46 +0000)]
Expose the instruction contraint string as an argument to the NLdSt class.

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

15 years agoSpecial-case static allocas in IndVarSimplify's loop invariant
Dan Gohman [Tue, 25 Aug 2009 17:42:10 +0000 (17:42 +0000)]
Special-case static allocas in IndVarSimplify's loop invariant
sinking code, since they are special. If the loop preheader happens
to be the entry block of a function, don't sink static allocas
out of it. This fixes PR4775.

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

15 years agoComment-ify.
Owen Anderson [Tue, 25 Aug 2009 17:42:07 +0000 (17:42 +0000)]
Comment-ify.

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

15 years agoSwitch to SmallVector.
Owen Anderson [Tue, 25 Aug 2009 17:35:37 +0000 (17:35 +0000)]
Switch to SmallVector.

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

15 years agoPull out this predicate loop into a helper function.
Owen Anderson [Tue, 25 Aug 2009 17:26:32 +0000 (17:26 +0000)]
Pull out this predicate loop into a helper function.

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

15 years agoFixup register kills after scheduling.
David Goodwin [Tue, 25 Aug 2009 17:03:05 +0000 (17:03 +0000)]
Fixup register kills after scheduling.

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

15 years agoProvide dynamic_stackalloc lowering for MSP430.
Anton Korobeynikov [Tue, 25 Aug 2009 17:00:23 +0000 (17:00 +0000)]
Provide dynamic_stackalloc lowering for MSP430.
This fixes PR4769

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

15 years agoRemove target triple from this test, it fails on x86-64 with
Torok Edwin [Tue, 25 Aug 2009 16:53:15 +0000 (16:53 +0000)]
Remove target triple from this test, it fails on x86-64 with
--enable-targets=host-only otherwise.

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

15 years agoAllocate the basic types inside the LLVMContextImpl instance,
Dan Gohman [Tue, 25 Aug 2009 16:00:35 +0000 (16:00 +0000)]
Allocate the basic types inside the LLVMContextImpl instance,
rather than separately with new. Move the members above the
TypeMap members to avoid destruction order issues. This fixes
a leak of these objects, and eliminates an extra level of
indirection in Type::getInt32Ty and friends.

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

15 years agoUpdate documentation for the -f change.
Dan Gohman [Tue, 25 Aug 2009 15:54:01 +0000 (15:54 +0000)]
Update documentation for the -f change.

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

15 years agoFix a few typos from the removal of -f.
Dan Gohman [Tue, 25 Aug 2009 15:45:44 +0000 (15:45 +0000)]
Fix a few typos from the removal of -f.

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

15 years agoRemove obsolete -f flags.
Dan Gohman [Tue, 25 Aug 2009 15:38:29 +0000 (15:38 +0000)]
Remove obsolete -f flags.

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

15 years agoMake LLVM command-line tools overwrite their output files without -f.
Dan Gohman [Tue, 25 Aug 2009 15:34:52 +0000 (15:34 +0000)]
Make LLVM command-line tools overwrite their output files without -f.
This is conventional command-line tool behavior. -f now just means
"enable binary output on terminals".

Add a -f option to llvm-extract and llvm-link, for consistency.

Remove F_Force from raw_fd_ostream and enable overwriting and
truncating by default. Introduce an F_Excl flag to permit users to
enable a failure when the file already exists. This flag is
currently unused.

Update Makefiles and documentation accordingly.

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

15 years agoRead profile files as binary as proposed in
Andreas Neustifter [Tue, 25 Aug 2009 12:53:27 +0000 (12:53 +0000)]
Read profile files as binary as proposed in
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-August/025020.html.

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

15 years agoFix PR4772 ARM JIT.GlobalInFuction unittest by explicitly initialize MMI
Xerxes Ranby [Tue, 25 Aug 2009 10:12:55 +0000 (10:12 +0000)]
Fix PR4772 ARM JIT.GlobalInFuction unittest by explicitly initialize MMI
to 0 during JITEmitter constructor.

Modified:
lib/ExecutionEngine/JIT/JITEmitter.cpp

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

15 years ago- Rename EmitCommonInformationEntry to EmitCIE.
Bill Wendling [Tue, 25 Aug 2009 08:08:33 +0000 (08:08 +0000)]
- Rename EmitCommonInformationEntry to EmitCIE.
- Rename EmitFunctionDescriptionEntry to EmitFDE.

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

15 years agoUpdate DebugInfo interface to use metadata, instead of special named llvm.dbg......
Devang Patel [Tue, 25 Aug 2009 05:24:07 +0000 (05:24 +0000)]
Update DebugInfo interface to use metadata, instead of special named llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well.

This change speeds up llvm-gcc by more then 6% at "-O0 -g" (measured by compiling InstructionCombining.cpp!)

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

15 years ago- Emit new line after each FDE.
Bill Wendling [Tue, 25 Aug 2009 02:32:05 +0000 (02:32 +0000)]
- Emit new line after each FDE.
- Fix comment.

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

15 years agoRename functions to something more descriptive. At the very least mention the
Bill Wendling [Tue, 25 Aug 2009 02:27:42 +0000 (02:27 +0000)]
Rename functions to something more descriptive. At the very least mention the
CIE and FDE in their names.

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

15 years agoAllow multiple occurrences of -inline-threshold on
Dale Johannesen [Tue, 25 Aug 2009 01:13:58 +0000 (01:13 +0000)]
Allow multiple occurrences of -inline-threshold on
the command line.  This gives llvm-gcc developers
a way to control inlining (documented as "not intended
for end users").

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

15 years agoHandle a corner case when extracing code regions where one of the immediate successor
Owen Anderson [Tue, 25 Aug 2009 00:54:39 +0000 (00:54 +0000)]
Handle a corner case when extracing code regions where one of the immediate successor
of an extracted block contains a PHI using a value defined in the extracted region.

With this patch, the partial inliner now passes MultiSource/Applications.

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

15 years agoFix PR 4751, another difficulty with %a modifier on x86.
Dale Johannesen [Tue, 25 Aug 2009 00:16:14 +0000 (00:16 +0000)]
Fix PR 4751, another difficulty with %a modifier on x86.

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

15 years ago--- Reverse-merging r79938 into '.':
Bill Wendling [Tue, 25 Aug 2009 00:05:04 +0000 (00:05 +0000)]
--- Reverse-merging r79938 into '.':
U    include/llvm/BasicBlock.h
U    include/llvm/ADT/ilist_node.h
U    include/llvm/ADT/ilist.h
U    include/llvm/CodeGen/SelectionDAG.h
U    include/llvm/CodeGen/MachineFunction.h
U    include/llvm/CodeGen/MachineBasicBlock.h
U    include/llvm/Function.h

Revert r79938. It was causing self-hosting build failures.

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

15 years agoCMake: updated list of source files.
Oscar Fuentes [Tue, 25 Aug 2009 00:02:29 +0000 (00:02 +0000)]
CMake: updated list of source files.

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

15 years ago- Remove SelectSEXTi128 from SPUISelDAGToDAG.cpp, evidently, this is redundant
Scott Michel [Mon, 24 Aug 2009 23:57:35 +0000 (23:57 +0000)]
- Remove SelectSEXTi128 from SPUISelDAGToDAG.cpp, evidently, this is redundant
  code, according to Anton (I'm not totally convinced, but we can always
  resurrect patches if we need to do so.)
- Start moving CellSPU's tests to prefer FileCheck.

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

15 years agoWhen extracting SEME regions of code, the extractor needs to update the dominator...
Owen Anderson [Mon, 24 Aug 2009 23:32:14 +0000 (23:32 +0000)]
When extracting SEME regions of code, the extractor needs to update the dominator tree for split return blocks.

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

15 years agoPrefer 'FileCheck' over 'grep'.
Scott Michel [Mon, 24 Aug 2009 22:49:22 +0000 (22:49 +0000)]
Prefer 'FileCheck' over 'grep'.

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

15 years ago128-bit sign extension and vector shift cleanups, contributed by Ken Werner
Scott Michel [Mon, 24 Aug 2009 22:28:53 +0000 (22:28 +0000)]
128-bit sign extension and vector shift cleanups, contributed by Ken Werner
(IBM).

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

15 years agoInitialize ShufBytes, as gcc 4.4 can't detect that the entire array is
Scott Michel [Mon, 24 Aug 2009 21:53:27 +0000 (21:53 +0000)]
Initialize ShufBytes, as gcc 4.4 can't detect that the entire array is
initialized and a warning about a potentially unintialized variable is
generated.

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

15 years agoAdd llvm_start_edge_profiling to exported symbols for libprofile_rt.
Andreas Neustifter [Mon, 24 Aug 2009 21:41:37 +0000 (21:41 +0000)]
Add llvm_start_edge_profiling to exported symbols for libprofile_rt.

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

15 years agoThis patch cleans up the ProfileInfo by
Andreas Neustifter [Mon, 24 Aug 2009 21:37:48 +0000 (21:37 +0000)]
This patch cleans up the ProfileInfo by
*) introducing new data type and export function of edge info for whole function (preparation for next patch).
*) renaming variables to make clear distinction between data and containers that contain this data.
*) updated comments and whitespaces.
*) made ProfileInfo::MissingValue a double (as it should be...).

(Discussed at http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090817/084955.html.)

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

15 years agoResubmit an earlier patch of mine:
Gabor Greif [Mon, 24 Aug 2009 21:34:17 +0000 (21:34 +0000)]
Resubmit an earlier patch of mine:
reduce the size of relevant "ghostly" sentinels
by a pointer.

This attempt now makes the compactification dependent
on the configure variable LLVM_COMPACT_SENTINELS
and should not cause any bootstrap failures for
llvm-gcc any more.

Please note that this is not yet the final version,
and (as settled with Chris) I shall take out the
autofoo/cmake portions in the next days.

This will also lose the assertability on sentinel
dereferencing and operator++, but that seems
an acceptable price to pay for the simplified
build logic.

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

15 years agoFix a typo. Somehow I thought this had passed before, but I guess not.
Bob Wilson [Mon, 24 Aug 2009 21:17:17 +0000 (21:17 +0000)]
Fix a typo.  Somehow I thought this had passed before, but I guess not.

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

15 years agoprune ignores: AutoGenerated.inc is no more
Gabor Greif [Mon, 24 Aug 2009 21:00:10 +0000 (21:00 +0000)]
prune ignores: AutoGenerated.inc is no more

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

15 years agoConvert slow test to use FileCheck.
Bob Wilson [Mon, 24 Aug 2009 20:33:47 +0000 (20:33 +0000)]
Convert slow test to use FileCheck.

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

15 years agoConvert two gratuitous abuses of poor helpless CPU cycles to FileCheck.
Daniel Dunbar [Mon, 24 Aug 2009 20:08:27 +0000 (20:08 +0000)]
Convert two gratuitous abuses of poor helpless CPU cycles to FileCheck.

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

15 years agoSplit test into 3.
Dale Johannesen [Mon, 24 Aug 2009 17:51:19 +0000 (17:51 +0000)]
Split test into 3.

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

15 years agollvm-mc/Mach-O: Preliminary support for indirect symbols.
Daniel Dunbar [Mon, 24 Aug 2009 11:56:58 +0000 (11:56 +0000)]
llvm-mc/Mach-O: Preliminary support for indirect symbols.
 - The indirect table itself isn't being filled in yet.

 - This isn't factored properly and is rather FIXMEd, but at the moment I'm more
   focused on figuring out what it needs to do.

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

15 years agoFix the build when using gcc-4.4 on linux. Header needed
Duncan Sands [Mon, 24 Aug 2009 10:59:01 +0000 (10:59 +0000)]
Fix the build when using gcc-4.4 on linux.  Header needed
for stderr and fprintf.

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

15 years agoFix the build with gcc-4.4 on linux: header needed
Duncan Sands [Mon, 24 Aug 2009 10:34:41 +0000 (10:34 +0000)]
Fix the build with gcc-4.4 on linux: header needed
for EOF.

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

15 years agoAdd llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an
Daniel Dunbar [Mon, 24 Aug 2009 09:53:06 +0000 (09:53 +0000)]
Add llvm::Triple::getArchTypePrefix for getting the intrinsic prefix for an
identifier architecture.

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

15 years agoAdd StringRef based APIs to BitstreamWriter.
Daniel Dunbar [Mon, 24 Aug 2009 09:29:31 +0000 (09:29 +0000)]
Add StringRef based APIs to BitstreamWriter.

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

15 years agoAdd MemoryBuffer::getBuffer() -> StringRef.
Daniel Dunbar [Mon, 24 Aug 2009 09:29:24 +0000 (09:29 +0000)]
Add MemoryBuffer::getBuffer() -> StringRef.

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

15 years agollvm-mc/Mach-O: Support symbol attributes.
Daniel Dunbar [Mon, 24 Aug 2009 08:40:12 +0000 (08:40 +0000)]
llvm-mc/Mach-O: Support symbol attributes.
 - This is mostly complete, the main thing missing is .indirect_symbol support
   (which would be straight-forward, except that the way it is implemented in
   'as' makes getting an exact .o match interesting).

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

15 years agollvm-mc: Tweak undefined symbol handling.
Daniel Dunbar [Mon, 24 Aug 2009 08:39:57 +0000 (08:39 +0000)]
llvm-mc: Tweak undefined symbol handling.

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

15 years agoAdd missing include (for MSVC).
Daniel Dunbar [Mon, 24 Aug 2009 07:18:07 +0000 (07:18 +0000)]
Add missing include (for MSVC).

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

15 years agoFixed double free in Kaleidoscope. Fixes PR4762.
Reid Kleckner [Mon, 24 Aug 2009 05:42:21 +0000 (05:42 +0000)]
Fixed double free in Kaleidoscope.  Fixes PR4762.

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

15 years agoCorrectly account for the Spaces array nul terminator. Thanks Chris!
Dan Gohman [Mon, 24 Aug 2009 04:43:38 +0000 (04:43 +0000)]
Correctly account for the Spaces array nul terminator. Thanks Chris!

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

15 years agoimprove documentation for linker_private linkage.
Chris Lattner [Mon, 24 Aug 2009 04:32:16 +0000 (04:32 +0000)]
improve  documentation for linker_private linkage.

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

15 years agoremove the last *stream> #include from a public header.
Chris Lattner [Mon, 24 Aug 2009 04:14:03 +0000 (04:14 +0000)]
remove the last *stream> #include from a public header.

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

15 years agoThese flushes were only needed when the code was transitioning between
Dan Gohman [Mon, 24 Aug 2009 04:13:48 +0000 (04:13 +0000)]
These flushes were only needed when the code was transitioning between
std::cout and outs().

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

15 years agoraw_ostream::indent is used for PadToColumn which often prints more
Dan Gohman [Mon, 24 Aug 2009 04:13:01 +0000 (04:13 +0000)]
raw_ostream::indent is used for PadToColumn which often prints more
than 16 spaces. Make the Spaces array wide enough to handle common cases.

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

15 years agoeliminate a #include.
Chris Lattner [Mon, 24 Aug 2009 04:07:51 +0000 (04:07 +0000)]
eliminate a #include.

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

15 years agosplit raw_os_ostream out to its own header and implementation file. This
Chris Lattner [Mon, 24 Aug 2009 04:02:06 +0000 (04:02 +0000)]
split raw_os_ostream out to its own header and implementation file.  This
means that raw_ostream no longer has to #include <iosfwd>.  Nothing in llvm
should use raw_os_ostream.h, but llvm-gcc and some unit tests do.

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

15 years agoprune the #includes in raw_ostream.h by moving a
Chris Lattner [Mon, 24 Aug 2009 03:52:50 +0000 (03:52 +0000)]
prune the #includes in raw_ostream.h by moving a
member out of line. ftostr is not particularly speedy,
so that method is presumably not perf sensitive.

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

15 years agosearch unittests.
Chris Lattner [Mon, 24 Aug 2009 03:44:02 +0000 (03:44 +0000)]
search unittests.

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

15 years agoUnbreak the build for HAVE_GV platforms.
Dan Gohman [Mon, 24 Aug 2009 03:23:12 +0000 (03:23 +0000)]
Unbreak the build for HAVE_GV platforms.

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

15 years agoremove a few dead insertion methods.
Chris Lattner [Mon, 24 Aug 2009 02:39:26 +0000 (02:39 +0000)]
remove a few dead insertion methods.

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

15 years agoRemove alloca config.h support.
Daniel Dunbar [Mon, 24 Aug 2009 02:14:39 +0000 (02:14 +0000)]
Remove alloca config.h support.
 - I did not actually remove the configure test itself, someone who can
   regenerate configure should do this (see FIXME in autoconf/configure.ac)

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

15 years agoRemove this test now that the interpreter doesn't support
Chris Lattner [Mon, 24 Aug 2009 02:05:59 +0000 (02:05 +0000)]
Remove this test now that the interpreter doesn't support
interpreting the wrong endianness anymore.  This fixes a
failure on clang-powerpc-darwin8

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

15 years agoUnbreak unit tests.
Daniel Dunbar [Mon, 24 Aug 2009 02:02:58 +0000 (02:02 +0000)]
Unbreak unit tests.

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

15 years agoRemove include/llvm/Config/alloca.h, it is dead.
Daniel Dunbar [Mon, 24 Aug 2009 02:02:49 +0000 (02:02 +0000)]
Remove include/llvm/Config/alloca.h, it is dead.

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

15 years agoMake linkerprivate work for ARM and PPC. Testcase covers
Dale Johannesen [Mon, 24 Aug 2009 01:03:42 +0000 (01:03 +0000)]
Make linkerprivate work for ARM and PPC.  Testcase covers
all Darwin targets; could be split into separate tests for
the chip subdirectories, but from Chris' last mail on testing
I assume he'd rather have only one test.  Generic seems to be
the best available, maybe there should be a Darwin subdirectory?

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

15 years agoCMake: Updated library dependencies and list of source files.
Oscar Fuentes [Sun, 23 Aug 2009 23:59:15 +0000 (23:59 +0000)]
CMake: Updated library dependencies and list of source files.

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

15 years agoremove the dead std::ostream APInt inserter
Chris Lattner [Sun, 23 Aug 2009 23:11:28 +0000 (23:11 +0000)]
remove the dead std::ostream APInt inserter

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

15 years agoremove this test: it is testing for a "feature" I just removed.
Chris Lattner [Sun, 23 Aug 2009 23:01:02 +0000 (23:01 +0000)]
remove this test: it is testing for a "feature" I just removed.

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

15 years agoremove the last uses of Config/alloca.h
Chris Lattner [Sun, 23 Aug 2009 22:57:38 +0000 (22:57 +0000)]
remove the last uses of Config/alloca.h

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

15 years agofix some problems with my last patch which happen when one of
Chris Lattner [Sun, 23 Aug 2009 22:53:53 +0000 (22:53 +0000)]
fix some problems with my last patch which happen when one of
(HAVE_GV && (HAVE_DOT || HAVE_FDP || HAVE_NEATO || \
                   HAVE_TWOPI || HAVE_CIRCO))
are true.

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

15 years agojust remove interpreter support for endianness mismatches. This was
Chris Lattner [Sun, 23 Aug 2009 22:50:28 +0000 (22:50 +0000)]
just remove interpreter support for endianness mismatches.  This was
really old code from when we were running sparcv9 bc files on x86
(before I ported llvm-gcc 3 to work on x86) :)

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

15 years agoremove use of alloca.h
Chris Lattner [Sun, 23 Aug 2009 22:49:13 +0000 (22:49 +0000)]
remove use of alloca.h

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

15 years agoPrune #includes from llvm/Linker.h and llvm/System/Path.h,
Chris Lattner [Sun, 23 Aug 2009 22:45:37 +0000 (22:45 +0000)]
Prune #includes from llvm/Linker.h and llvm/System/Path.h,
forcing them down into various .cpp files.

This change also:
1. Renames TimeValue::toString() and Path::toString() to ::str()
   for similarity with the STL.
2. Removes all stream insertion support for sys::Path, forcing
   clients to call .str().
3. Removes a use of Config/alloca.h from bugpoint, using smallvector
   instead.
4. Weans llvm-db off <iostream>

sys::Path really needs to be gutted, but I don't have the desire to
do it at this point.

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

15 years agodisuade people from using ostream.
Chris Lattner [Sun, 23 Aug 2009 21:53:47 +0000 (21:53 +0000)]
disuade people from using ostream.

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