oota-llvm.git
16 years agosuppress build products
Gabor Greif [Sun, 9 Nov 2008 21:33:37 +0000 (21:33 +0000)]
suppress build products

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

16 years agoCMake: Corrected detection of `nm'.
Oscar Fuentes [Sun, 9 Nov 2008 20:26:31 +0000 (20:26 +0000)]
CMake: Corrected detection of `nm'.

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

16 years agoCMake: Support for cross-compiling. For now, requires a previously
Oscar Fuentes [Sun, 9 Nov 2008 18:53:19 +0000 (18:53 +0000)]
CMake: Support for cross-compiling. For now, requires a previously
built native tblgen which is passed to cmake in the variable
LLVM_TABLEGEN.

See

http://www.cmake.org/Wiki/CmakeMingw

for a quick example on how to cross-compile with CMake.

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

16 years agofix validation problem.
Chris Lattner [Sun, 9 Nov 2008 17:19:14 +0000 (17:19 +0000)]
fix validation problem.

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

16 years agoXFAIL this while waiting for a fix.
Duncan Sands [Sun, 9 Nov 2008 13:07:47 +0000 (13:07 +0000)]
XFAIL this while waiting for a fix.

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

16 years agofix leakage of ValueNumbering
Nuno Lopes [Sun, 9 Nov 2008 12:45:23 +0000 (12:45 +0000)]
fix leakage of ValueNumbering

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

16 years agoTemporarily revert 58825, which breaks PPC bootstrap.
Dale Johannesen [Sun, 9 Nov 2008 06:48:10 +0000 (06:48 +0000)]
Temporarily revert 58825, which breaks PPC bootstrap.
xs

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

16 years agoIf the LHS of the FCMP is coming from a UIToFP instruction, then we don't want
Bill Wendling [Sun, 9 Nov 2008 04:26:50 +0000 (04:26 +0000)]
If the LHS of the FCMP is coming from a UIToFP instruction, then we don't want
to generate signed ICMP instructions to replace the FCMP. This would violate
the following:

define i1 @test1(i32 %val) {
  %1 = uitofp i32 %val to double
  %2 = fcmp ole double %1, 0.000000e+00
  ret i1 %2
}

would be transformed into:

define i1 @test1(i32 %val) {
  %1 = icmp slt i33 %val, 1
  ret i1 %1
}

which is obviously wrong. This patch modifes InstCombiner::FoldFCmp_IntToFP_Cst
to handle when the LHS comes from UIToFP.

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

16 years agoTypo fix
Anton Korobeynikov [Sun, 9 Nov 2008 02:54:13 +0000 (02:54 +0000)]
Typo fix

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

16 years agoCellSPU: Update expected counts on expected patterns
Scott Michel [Sun, 9 Nov 2008 01:03:41 +0000 (01:03 +0000)]
CellSPU: Update expected counts on expected patterns

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

16 years agoTemporary revert my last commit: it seems it's triggering some subtle bug in backend
Anton Korobeynikov [Sat, 8 Nov 2008 23:05:05 +0000 (23:05 +0000)]
Temporary revert my last commit: it seems it's triggering some subtle bug in backend
and breaks llvm-gcc

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

16 years agoCMake: corrected library target name for dependency: LLVMCellSPU ->
Oscar Fuentes [Sat, 8 Nov 2008 21:23:15 +0000 (21:23 +0000)]
CMake: corrected library target name for dependency: LLVMCellSPU ->
LLVMCellSPUCodeGen.

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

16 years agoCMake: Reflected changes on the CellSPU target build. May require a
Oscar Fuentes [Sat, 8 Nov 2008 20:37:19 +0000 (20:37 +0000)]
CMake: Reflected changes on the CellSPU target build. May require a
clean start.

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

16 years agoFixed a pasto.
Oscar Fuentes [Sat, 8 Nov 2008 20:34:18 +0000 (20:34 +0000)]
Fixed a pasto.

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

16 years agoAllow $CALL and $ENV in command names. Fixes #3025.
Mikhail Glushenkov [Sat, 8 Nov 2008 19:43:32 +0000 (19:43 +0000)]
Allow $CALL and $ENV in command names. Fixes #3025.

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

16 years agoCellSPU: Bring SPU's assembly printer more in-line with current LLVM code
Scott Michel [Sat, 8 Nov 2008 18:59:02 +0000 (18:59 +0000)]
CellSPU: Bring SPU's assembly printer more in-line with current LLVM code
structure. Assembly printer now outputs the correct section for strings.

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

16 years agoTry to produce better code when scalarizing VSETCC.
Duncan Sands [Sat, 8 Nov 2008 18:26:48 +0000 (18:26 +0000)]
Try to produce better code when scalarizing VSETCC.

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

16 years agoFactor out offset printing code into generic AsmPrinter.
Anton Korobeynikov [Sat, 8 Nov 2008 17:21:38 +0000 (17:21 +0000)]
Factor out offset printing code into generic AsmPrinter.
FIXME: it seems, that most of targets don't support
offsets wrt CPI/GlobalAddress', was it intentional?

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

16 years agoThe Index field of an AttributeWithIndex is of type unsigned, not uint16_t.
Nicolas Geoffray [Sat, 8 Nov 2008 15:36:01 +0000 (15:36 +0000)]
The Index field of an AttributeWithIndex is of type unsigned, not uint16_t.

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

16 years agoStoreInst does not produce any result thus it's useless to create new
Anton Korobeynikov [Sat, 8 Nov 2008 12:58:07 +0000 (12:58 +0000)]
StoreInst does not produce any result thus it's useless to create new
variable for it. This greatly reduces amount of unused variables in
llvm2cpp-generated code

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

16 years agoProperly escape dashes in TableGen's LLVMC2 emitter.
Anton Korobeynikov [Sat, 8 Nov 2008 10:16:21 +0000 (10:16 +0000)]
Properly escape dashes in TableGen's LLVMC2 emitter.
Patch by Patrick Walton!

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

16 years agoFix syntax of iterate_complex example. Noticed by Martin!
Eric Christopher [Sat, 8 Nov 2008 08:20:49 +0000 (08:20 +0000)]
Fix syntax of iterate_complex example. Noticed by Martin!

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

16 years agoMoved InvalidateInstructionCache to ARMJITInfo::emitFunctionStub which knows size...
Evan Cheng [Sat, 8 Nov 2008 08:16:49 +0000 (08:16 +0000)]
Moved InvalidateInstructionCache to ARMJITInfo::emitFunctionStub which knows size of stub.

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

16 years agoRemove a InvalidateInstructionCache call with incorrect size.
Evan Cheng [Sat, 8 Nov 2008 08:15:39 +0000 (08:15 +0000)]
Remove a InvalidateInstructionCache call with incorrect size.

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

16 years agoRename startFunctionStub to startGVStub since it's also used for GV non-lazy ptr.
Evan Cheng [Sat, 8 Nov 2008 08:02:53 +0000 (08:02 +0000)]
Rename startFunctionStub to startGVStub since it's also used for GV non-lazy ptr.

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

16 years agoTell ARMJITInfo if codegen relocation is PIC. It changes how function stubs are gener...
Evan Cheng [Sat, 8 Nov 2008 07:38:22 +0000 (07:38 +0000)]
Tell ARMJITInfo if codegen relocation is PIC. It changes how function stubs are generated.

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

16 years agoRename isString -> isExternalSymbol; getString -> getExternalSymbol since these work...
Evan Cheng [Sat, 8 Nov 2008 07:37:34 +0000 (07:37 +0000)]
Rename isString -> isExternalSymbol; getString -> getExternalSymbol since these work on externsym machine relocations.

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

16 years agoMore debug output.
Evan Cheng [Sat, 8 Nov 2008 07:22:53 +0000 (07:22 +0000)]
More debug output.

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

16 years agoFix relocation for calls to external symbols.
Evan Cheng [Sat, 8 Nov 2008 07:22:33 +0000 (07:22 +0000)]
Fix relocation for calls to external symbols.

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

16 years agoCellSPU: Fix prologue/epilogue emission when function contains calls but
Scott Michel [Sat, 8 Nov 2008 05:16:20 +0000 (05:16 +0000)]
CellSPU: Fix prologue/epilogue emission when function contains calls but
theframe size is 0; the prologue and epilogue should be emitted in this case.

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

16 years agoRework r58829, allowing removal of dbg info intrinsics during alloca
Daniel Dunbar [Sat, 8 Nov 2008 04:12:17 +0000 (04:12 +0000)]
Rework r58829, allowing removal of dbg info intrinsics during alloca
promotion.
 - Eliminate uses after free and simplify tests.

Devang: Please check that this is still doing what you intended.

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

16 years agoAdd LLVMC2 tool definitions for Objective-C and Objective-C++.
Daniel Dunbar [Sat, 8 Nov 2008 03:25:47 +0000 (03:25 +0000)]
Add LLVMC2 tool definitions for Objective-C and Objective-C++.

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

16 years agoAdd svn:ignore properties for Clang llvmc2 plugin.
Daniel Dunbar [Sat, 8 Nov 2008 03:10:19 +0000 (03:10 +0000)]
Add svn:ignore properties for Clang llvmc2 plugin.

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

16 years agoSkip over two-address use operands.
Evan Cheng [Sat, 8 Nov 2008 01:44:13 +0000 (01:44 +0000)]
Skip over two-address use operands.

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

16 years agoHandle ARM machine constantpool entry with non-lazy ptr.
Evan Cheng [Sat, 8 Nov 2008 01:31:27 +0000 (01:31 +0000)]
Handle ARM machine constantpool entry with non-lazy ptr.

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

16 years agoIndentation.
Evan Cheng [Sat, 8 Nov 2008 01:30:20 +0000 (01:30 +0000)]
Indentation.

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

16 years agoremove unavailable clang project
Ted Kremenek [Sat, 8 Nov 2008 01:02:44 +0000 (01:02 +0000)]
remove unavailable clang project

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

16 years agoUse ARMFunctionInfo to track number of constpool entries and jumptables.
Evan Cheng [Sat, 8 Nov 2008 00:51:41 +0000 (00:51 +0000)]
Use ARMFunctionInfo to track number of constpool entries and jumptables.

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

16 years agoGenerated code for generic expansion of SETUGT etc.
Dale Johannesen [Sat, 8 Nov 2008 00:49:19 +0000 (00:49 +0000)]
Generated code for generic expansion of SETUGT etc.
is noticeably worse than previous PPC-specific code.
Since the latter was also wrong in some cases and
correctness is more important than efficiency, I'm
disabling this test temporarily while I fix it.

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

16 years agoXfail an incorrect test.
Dale Johannesen [Sat, 8 Nov 2008 00:40:24 +0000 (00:40 +0000)]
Xfail an incorrect test.

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

16 years agoMake testb optimization work on big-endian targets.
Dale Johannesen [Sat, 8 Nov 2008 00:01:16 +0000 (00:01 +0000)]
Make testb optimization work on big-endian targets.

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

16 years agoMore code clean up.
Evan Cheng [Fri, 7 Nov 2008 22:57:53 +0000 (22:57 +0000)]
More code clean up.

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

16 years agoMake FP tests requiring two compares work on PPC (PR 642).
Dale Johannesen [Fri, 7 Nov 2008 22:54:33 +0000 (22:54 +0000)]
Make FP tests requiring two compares work on PPC (PR 642).
This is Chris' patch from the PR, modified to realize that
SETUGT/SETULT occur legitimately with integers, plus
two fixes in LegalizeDAG to pass a valid result type into
LegalizeSetCC.  The argument of TLI.getSetCCResultType is
ignored on PPC, but I think I'm following usage elsewhere.

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

16 years agoGet PIC jump table working.
Evan Cheng [Fri, 7 Nov 2008 22:30:53 +0000 (22:30 +0000)]
Get PIC jump table working.

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

16 years agoMore debug output.
Evan Cheng [Fri, 7 Nov 2008 22:30:29 +0000 (22:30 +0000)]
More debug output.

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

16 years agoMake tablegen print out a nice error message for a const char*
Dan Gohman [Fri, 7 Nov 2008 21:01:13 +0000 (21:01 +0000)]
Make tablegen print out a nice error message for a const char*
exception, like it does for a std::string exception.

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

16 years agoDocument the acronym RAUW. Patch by Jonathan Brandmeyer!
Dan Gohman [Fri, 7 Nov 2008 20:29:17 +0000 (20:29 +0000)]
Document the acronym RAUW. Patch by Jonathan Brandmeyer!

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

16 years agoSign-extend rather than zero-extend when promoting
Duncan Sands [Fri, 7 Nov 2008 20:13:04 +0000 (20:13 +0000)]
Sign-extend rather than zero-extend when promoting
the condition for a BRCOND, according to what is
returned by getSetCCResultContents.  Since all
targets return the same thing (ZeroOrOneSetCCResult),
this should be harmless!  The point is that all over
the place the result of SETCC is fed directly into
BRCOND.  On machines for which getSetCCResultContents
returns ZeroOrNegativeOneSetCCResult, this is a
sign-extended boolean.  So it seems dangerous to
also feed BRCOND zero-extended booleans in some
circumstances - for example, when promoting the
condition.

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

16 years agoFlush the raw_ostream after emitting the assembly for a function.
Dan Gohman [Fri, 7 Nov 2008 19:49:17 +0000 (19:49 +0000)]
Flush the raw_ostream after emitting the assembly for a function.
This is a temporary fix for the -print-emitted-asm option, where
errs() is used as the stream, in the case where other code is
using stderr without using errs()' buffer. Hopefully soon we'll
fix errs() to be non-buffered instead. Patch by Preston Gurd.

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

16 years agoFix unsigned->ppcf128 conversion.
Dale Johannesen [Fri, 7 Nov 2008 19:11:43 +0000 (19:11 +0000)]
Fix unsigned->ppcf128 conversion.

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

16 years agoUpdate to add newer bitcodes.
Nick Lewycky [Fri, 7 Nov 2008 14:52:51 +0000 (14:52 +0000)]
Update to add newer bitcodes.

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

16 years agoKeep CREDITS.TXT sorted by name.
Richard Osborne [Fri, 7 Nov 2008 12:44:36 +0000 (12:44 +0000)]
Keep CREDITS.TXT sorted by name.

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

16 years agoAdd contributer information for XCore backend to CREDITS.TXT
Richard Osborne [Fri, 7 Nov 2008 12:41:14 +0000 (12:41 +0000)]
Add contributer information for XCore backend to CREDITS.TXT

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

16 years agoAdd XCore backend to CMake build.
Richard Osborne [Fri, 7 Nov 2008 12:37:45 +0000 (12:37 +0000)]
Add XCore backend to CMake build.

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

16 years agoAdd basic test for XCore backend
Richard Osborne [Fri, 7 Nov 2008 11:24:12 +0000 (11:24 +0000)]
Add basic test for XCore backend

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

16 years agoFix compile warnings.
Richard Osborne [Fri, 7 Nov 2008 11:21:09 +0000 (11:21 +0000)]
Fix compile warnings.

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

16 years agoCellSPU: Ensure that C strings are always put in the .rodata section
Scott Michel [Fri, 7 Nov 2008 11:06:44 +0000 (11:06 +0000)]
CellSPU: Ensure that C strings are always put in the .rodata section

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

16 years agoAdd XCore backend.
Richard Osborne [Fri, 7 Nov 2008 10:59:00 +0000 (10:59 +0000)]
Add XCore backend.

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

16 years agoJump table JIT support. Work in progress.
Evan Cheng [Fri, 7 Nov 2008 09:06:08 +0000 (09:06 +0000)]
Jump table JIT support. Work in progress.

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

16 years agoJump tables may be emitted by target.
Evan Cheng [Fri, 7 Nov 2008 09:02:17 +0000 (09:02 +0000)]
Jump tables may be emitted by target.

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

16 years agoJump table relocation addresses may be resolved by target.
Evan Cheng [Fri, 7 Nov 2008 09:01:15 +0000 (09:01 +0000)]
Jump table relocation addresses may be resolved by target.

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

16 years agoTeach CellSPU about ELF sections and new section emitter classes.
Scott Michel [Fri, 7 Nov 2008 04:36:25 +0000 (04:36 +0000)]
Teach CellSPU about ELF sections and new section emitter classes.

NB: This is likely to need more work.

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

16 years agoBCUI + 1 doesn't work. Use next instead.
Bill Wendling [Fri, 7 Nov 2008 01:59:41 +0000 (01:59 +0000)]
BCUI + 1 doesn't work. Use next instead.

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

16 years agoRefactor code that adjusts the offsets of stack objects.
Bill Wendling [Fri, 7 Nov 2008 01:48:58 +0000 (01:48 +0000)]
Refactor code that adjusts the offsets of stack objects.

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

16 years agoEncode misc arithmetic instructions.
Evan Cheng [Fri, 7 Nov 2008 01:41:35 +0000 (01:41 +0000)]
Encode misc arithmetic instructions.

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

16 years agoTestcase for testb optimization.
Dale Johannesen [Fri, 7 Nov 2008 01:30:18 +0000 (01:30 +0000)]
Testcase for testb optimization.

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

16 years agoHandle (delete) dbg intrinsics while promoting alloca.
Devang Patel [Fri, 7 Nov 2008 01:30:07 +0000 (01:30 +0000)]
Handle (delete) dbg intrinsics while promoting alloca.

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

16 years agoWhen we're doing a compare of load-AND-constant to 0
Dale Johannesen [Fri, 7 Nov 2008 01:28:02 +0000 (01:28 +0000)]
When we're doing a compare of load-AND-constant to 0
(e.g. a bitfield test) narrow the load as much as possible.
The has the potential to avoid unnecessary partial-word
load-after-store conflicts, which cause stalls on several targets.
Also a size win on x86 (testb vs testl).

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

16 years ago- Modify the stack protector algorithm so that the stack slot is allocated in
Bill Wendling [Fri, 7 Nov 2008 01:23:58 +0000 (01:23 +0000)]
- Modify the stack protector algorithm so that the stack slot is allocated in
  LLVM IR code and not in the selection DAG ISel. This is a cleaner solution.

- Fix the heuristic for determining if protectors are necessary. The previous
  one wasn't checking the proper type size.

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

16 years agoRemove unneeded header file.
Bill Wendling [Thu, 6 Nov 2008 23:56:59 +0000 (23:56 +0000)]
Remove unneeded header file.

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

16 years agoDon't build a vector of returns. Just modify the Function in the loop.
Bill Wendling [Thu, 6 Nov 2008 23:55:49 +0000 (23:55 +0000)]
Don't build a vector of returns. Just modify the Function in the loop.

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

16 years agoFixed scalarizing an extract subvector and prevent an infinite loop
Mon P Wang [Thu, 6 Nov 2008 22:52:21 +0000 (22:52 +0000)]
Fixed scalarizing an extract subvector and prevent an infinite loop
when simplify a vector.

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

16 years agoThe size limit is for individual arrays. So if any array has more than 8 bytes
Bill Wendling [Thu, 6 Nov 2008 22:18:44 +0000 (22:18 +0000)]
The size limit is for individual arrays. So if any array has more than 8 bytes
in it, then emit stack protectors.

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

16 years agoEncode extend instructions; more clean up.
Evan Cheng [Thu, 6 Nov 2008 22:15:19 +0000 (22:15 +0000)]
Encode extend instructions; more clean up.

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

16 years agoFix a use of an invalid iterator when -debug-pass=Details is used.
Dan Gohman [Thu, 6 Nov 2008 21:57:17 +0000 (21:57 +0000)]
Fix a use of an invalid iterator when -debug-pass=Details is used.

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

16 years agoDon't recalculate the stack position of the stack protector.
Bill Wendling [Thu, 6 Nov 2008 21:37:09 +0000 (21:37 +0000)]
Don't recalculate the stack position of the stack protector.

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

16 years agoEmit label for llvm.dbg.func.start of the inlined function.
Devang Patel [Thu, 6 Nov 2008 21:28:20 +0000 (21:28 +0000)]
Emit label for llvm.dbg.func.start of the inlined function.

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

16 years agoClarify documentation. A module pass MP can require a function paqss FP only if FP...
Devang Patel [Thu, 6 Nov 2008 19:47:49 +0000 (19:47 +0000)]
Clarify documentation. A module pass MP can require a function paqss FP only if FP does not require any module pass.

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

16 years ago- Improve naming consistency: Branch -> BrFrm, BranchMisc -> BrMiscFrm.
Evan Cheng [Thu, 6 Nov 2008 17:48:05 +0000 (17:48 +0000)]
- Improve naming consistency: Branch -> BrFrm, BranchMisc -> BrMiscFrm.
- Consolidate instruction formats.
- Other clean up.

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

16 years agoImprove JIT debugging outputs format consistency.
Evan Cheng [Thu, 6 Nov 2008 17:46:04 +0000 (17:46 +0000)]
Improve JIT debugging outputs format consistency.

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

16 years agoplug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory.
Nuno Lopes [Thu, 6 Nov 2008 16:21:49 +0000 (16:21 +0000)]
plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory.

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

16 years agoFormating/comment changes - no functionality change.
Duncan Sands [Thu, 6 Nov 2008 08:51:32 +0000 (08:51 +0000)]
Formating/comment changes - no functionality change.

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

16 years agoRemove opcode from instruction TS flags; add MOVCC support; fix addrmode3 encoding...
Evan Cheng [Thu, 6 Nov 2008 08:47:38 +0000 (08:47 +0000)]
Remove opcode from instruction TS flags; add MOVCC support; fix addrmode3 encoding bug.

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

16 years ago- Rename stackprotector_{prologue,epilogue} to stackprotector_{create,check}.
Bill Wendling [Thu, 6 Nov 2008 07:23:03 +0000 (07:23 +0000)]
- Rename stackprotector_{prologue,epilogue} to stackprotector_{create,check}.
- Get rid of "HasStackProtector" in MachineFrameInfo.
- Modify intrinsics to tell which are doing what with memory.

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

16 years agoUpdate VC++ projects.
Steve Naroff [Thu, 6 Nov 2008 06:24:59 +0000 (06:24 +0000)]
Update VC++ projects.

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

16 years agoWidening cleanup
Mon P Wang [Thu, 6 Nov 2008 05:31:54 +0000 (05:31 +0000)]
Widening cleanup

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

16 years agoHandle smul<x><y>, smulw<y>, smla<x><y>, smlaw<y>.
Evan Cheng [Thu, 6 Nov 2008 03:35:07 +0000 (03:35 +0000)]
Handle smul<x><y>, smulw<y>, smla<x><y>, smlaw<y>.

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

16 years agoAdjust the stack protector heuristic to care about only arrays or calls to
Bill Wendling [Thu, 6 Nov 2008 02:38:58 +0000 (02:38 +0000)]
Adjust the stack protector heuristic to care about only arrays or calls to
"alloca".

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

16 years agoImplement the stack protector stack accesses via intrinsics:
Bill Wendling [Thu, 6 Nov 2008 02:29:10 +0000 (02:29 +0000)]
Implement the stack protector stack accesses via intrinsics:

- stackprotector_prologue creates a stack object and stores the guard there.

- stackprotector_epilogue reads the stack guard from the stack position created
  by stackprotector_prologue.

- The PrologEpilogInserter was changed to make sure that the stack guard is
  first on the stack frame.

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

16 years agoFix so_imm encoding bug; add support for MOVi2pieces.
Evan Cheng [Thu, 6 Nov 2008 02:25:39 +0000 (02:25 +0000)]
Fix so_imm encoding bug; add support for MOVi2pieces.

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

16 years agoFix encoding of multiple instructions with 3 src operands; also handle smmul, smmla...
Evan Cheng [Thu, 6 Nov 2008 01:21:28 +0000 (01:21 +0000)]
Fix encoding of multiple instructions with 3 src operands; also handle smmul, smmla, and smmls.

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

16 years agoNeed a \n.
Evan Cheng [Thu, 6 Nov 2008 01:18:29 +0000 (01:18 +0000)]
Need a \n.

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

16 years agoInstructionNamer preserves everything.
Devang Patel [Thu, 6 Nov 2008 01:00:16 +0000 (01:00 +0000)]
InstructionNamer preserves everything.

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

16 years agoEmit label for llvm.dbg.func.start of the inlined function.
Devang Patel [Thu, 6 Nov 2008 00:30:09 +0000 (00:30 +0000)]
Emit label for llvm.dbg.func.start of the inlined function.

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

16 years agoAdd post-build event for clangDriver (to copy clang.exe into "dstroot").
Steve Naroff [Thu, 6 Nov 2008 00:11:31 +0000 (00:11 +0000)]
Add post-build event for clangDriver (to copy clang.exe into "dstroot").

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

16 years agoUndo 58778 but makes the binary dump prettier.
Evan Cheng [Wed, 5 Nov 2008 23:44:08 +0000 (23:44 +0000)]
Undo 58778 but makes the binary dump prettier.

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

16 years agoAdd comments to function.
Bill Wendling [Wed, 5 Nov 2008 23:42:27 +0000 (23:42 +0000)]
Add comments to function.

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

16 years agoEncode pic load / store instructions; fix some encoding bugs.
Evan Cheng [Wed, 5 Nov 2008 23:22:34 +0000 (23:22 +0000)]
Encode pic load / store instructions; fix some encoding bugs.

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

16 years agoAdd command line option -entry-funcion to override entry function (default is main).
Evan Cheng [Wed, 5 Nov 2008 23:21:52 +0000 (23:21 +0000)]
Add command line option -entry-funcion to override entry function (default is main).

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

16 years agoRemove debug output that's not really useful.
Evan Cheng [Wed, 5 Nov 2008 23:21:11 +0000 (23:21 +0000)]
Remove debug output that's not really useful.

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