Duncan Sands [Tue, 4 Nov 2008 17:31:08 +0000 (17:31 +0000)]
Fix PR3011: LegalizeTypes support for scalarizing
SELECT_CC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58706
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 4 Nov 2008 16:19:44 +0000 (16:19 +0000)]
Duncan pointed out that the Extended case in getTypeForMVT could
be considerably simplified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58703
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 4 Nov 2008 16:08:57 +0000 (16:08 +0000)]
Add a return statement to suppress warnings in NDEBUG builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58702
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 4 Nov 2008 16:03:56 +0000 (16:03 +0000)]
Add some asserts to verify MVT invariant assumptions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58701
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 4 Nov 2008 14:43:20 +0000 (14:43 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58697
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 4 Nov 2008 14:42:19 +0000 (14:42 +0000)]
fix leakage of APFloats in getExistingVal()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58696
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 4 Nov 2008 14:28:33 +0000 (14:28 +0000)]
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58694
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 4 Nov 2008 14:26:58 +0000 (14:26 +0000)]
fix leakage of APSInt in getVal()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58693
91177308-0d34-0410-b5e6-
96231b3b80d8
Nuno Lopes [Tue, 4 Nov 2008 13:02:59 +0000 (13:02 +0000)]
fix leakage of IfcvtTokens
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58690
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 4 Nov 2008 09:30:48 +0000 (09:30 +0000)]
For some targets, it's not possible to place GVs in the same memory buffer as the MachineCodeEmitter allocated memory. Code and data has different read / write / execution privilege requirements.
This is a short term workaround. The current solution is for the JIT memory manager to manage code and data memory separately.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58688
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Tue, 4 Nov 2008 08:05:21 +0000 (08:05 +0000)]
Don't "shell out" to resolve paths. Using pure perl makes llvm-config
friendlier to non-Unixes that happen to have perl. Patch from Sascha Othman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58687
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 4 Nov 2008 06:10:31 +0000 (06:10 +0000)]
80 col violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58684
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 4 Nov 2008 06:10:06 +0000 (06:10 +0000)]
Stylistic change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58683
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 4 Nov 2008 06:09:38 +0000 (06:09 +0000)]
hasDisassembler should return false if disassembler isn't available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58682
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 4 Nov 2008 03:28:37 +0000 (03:28 +0000)]
CMakeLists: removed asmprinter component from
tools/llc/CMakeLists.txt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58678
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 4 Nov 2008 03:27:24 +0000 (03:27 +0000)]
CMake: Support for building 32 bit mode libs and binaries on
Linux/x86-64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58677
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Tue, 4 Nov 2008 03:24:04 +0000 (03:24 +0000)]
CMake: Updated list of source files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58676
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 4 Nov 2008 02:10:20 +0000 (02:10 +0000)]
Initial checkin for stack protectors. Here's what it does:
* The prologue is modified to read the __stack_chk_guard global and insert it
onto the stack.
* The epilogue is modified to read the stored guard from the stack and compare
it to the original __stack_chk_guard value. If they differ, then the
__stack_chk_fail() function is called.
* The stack protector needs to be first on the stack (after the parameters) to
catch any stack-smashing activities.
Front-end support will follow after a round of beta testing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58673
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 4 Nov 2008 00:50:32 +0000 (00:50 +0000)]
Handle ARM machine constantpool entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58671
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 23:43:55 +0000 (23:43 +0000)]
The ANDMask node folds to a constant, and isn't the node that needs to
have its node id set. The new and and shift nodes are the nodes that need
the IDs. This fixes PR2982.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58655
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 3 Nov 2008 23:20:04 +0000 (23:20 +0000)]
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58653
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 3 Nov 2008 23:14:09 +0000 (23:14 +0000)]
Fix unused variable warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58651
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 22:55:43 +0000 (22:55 +0000)]
Add C bindings for extractvalue and insertvalue. Patch by Frits van Bommel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58650
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 3 Nov 2008 21:26:52 +0000 (21:26 +0000)]
Remove a dead switch statement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58644
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 3 Nov 2008 21:02:39 +0000 (21:02 +0000)]
Minor code restructuring. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58643
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 3 Nov 2008 20:47:45 +0000 (20:47 +0000)]
Fix some ppcf128 regressions: make ExpandFloatRes_LOAD
work correctly, and bring over a late change to ppcf128
SetCC handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58642
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 3 Nov 2008 20:22:12 +0000 (20:22 +0000)]
Make VAARG promotion work correctly with large funky
sized integers like i129, and also reduce the number
of assumptions made about how vaarg is implemented.
This still doesn't work correctly for small integers
like (eg) i1 on x86, since x86 passes each of them
(essentially an i8) in a 4 byte stack slot, so the
pointer needs to be advanced by 4 bytes not by 1 byte
as now. But this is no longer a LegalizeTypes problem
(it was also wrong in LT before): it is a bug in the
operation expansion in LegalizeDAG: now LegalizeTypes
turns an i1 vaarg into an i8 vaarg which would work
fine if only the i8 vaarg was turned into correct code
later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58635
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 19:40:18 +0000 (19:40 +0000)]
Overload AddInteger on int/long/long long instead of on int/int64_t,
to avoid overload ambiguities. This fixes build errors introduced
by r58623.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58632
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 3 Nov 2008 19:38:07 +0000 (19:38 +0000)]
Ignore conditions that are outside the loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58631
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 3 Nov 2008 19:29:29 +0000 (19:29 +0000)]
add a period at the end of the comment, ignoring the fact that the comment would be hard pressed to be considered a sentence, but if it makes Bill happy...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58630
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Mon, 3 Nov 2008 18:38:31 +0000 (18:38 +0000)]
Add binary encoding support for multiply instructions. Some blanks left to fill in, but the basics are there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58626
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 3 Nov 2008 18:32:19 +0000 (18:32 +0000)]
Turn floating point IVs into integer IVs where possible.
This allows SCEV users to effectively calculate trip count.
LSR later on transforms back integer IVs to floating point IVs
later on to avoid int-to-float casts inside the loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58625
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 18:22:42 +0000 (18:22 +0000)]
Refactor various TargetAsmInfo subclasses' TargetMachine members away
adding a TargetMachine member to the base TargetAsmInfo class instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58624
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 17:56:27 +0000 (17:56 +0000)]
Change how extended types are represented in MVTs. Instead of fiddling
bits, use a union of a SimpleValueType enum and a regular Type*.
This increases the size of MVT on 64-bit hosts from 32 bits to 64 bits.
In most cases, this doesn't add significant overhead. There are places
in codegen that use arrays of MVTs, so these are now larger, but
they're small in common cases.
This eliminates restrictions on the size of integer types and vector
types that can be represented in codegen. As the included testcase
demonstrates, it's now possible to codegen very large add operations.
There are still some complications with using very large types. PR2880
is still open so they can't be used as return values on normal targets,
there are no libcalls defined for very large integers so operations
like multiply and divide aren't supported.
This also introduces a minimal tablgen Type library, capable of
handling IntegerType and VectorType. This will allow parts of
TableGen that don't depend on using SimpleValueType values to handle
arbitrary integer and vector types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58623
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 3 Nov 2008 17:33:36 +0000 (17:33 +0000)]
Comment fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58621
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 3 Nov 2008 17:10:24 +0000 (17:10 +0000)]
Remove redundant inline keywords from functions defined within
class definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58620
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Mon, 3 Nov 2008 16:05:35 +0000 (16:05 +0000)]
Ensure that we are checking only calls to the function we are interested in specializing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58615
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 3 Nov 2008 14:43:31 +0000 (14:43 +0000)]
Testcase for recent llvm-gcc fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58611
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 3 Nov 2008 11:51:11 +0000 (11:51 +0000)]
Make VAARG work with x86 long double (which is
10 bytes long, but is passed in 12/16 bytes).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58608
91177308-0d34-0410-b5e6-
96231b3b80d8
Matthijs Kooijman [Mon, 3 Nov 2008 11:16:43 +0000 (11:16 +0000)]
Make MachineFrameInfo::print not crash when no TargetFrameInfo is available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58606
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 3 Nov 2008 07:14:02 +0000 (07:14 +0000)]
Silence a compiler warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58598
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 3 Nov 2008 03:50:40 +0000 (03:50 +0000)]
Typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58594
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 3 Nov 2008 03:49:14 +0000 (03:49 +0000)]
Replace explicit loop with utility function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58593
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Mon, 3 Nov 2008 02:43:49 +0000 (02:43 +0000)]
Don't crash analyzing certain quadratics (addrec of {X,+,Y,+,1}).
We're still waiting on code that actually analyzes them properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58592
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 3 Nov 2008 02:33:28 +0000 (02:33 +0000)]
Revert my last patch until I consult with Evan about it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58591
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 2 Nov 2008 16:46:26 +0000 (16:46 +0000)]
Changes from Duncan's review:
* merge two weak functions by making them both alias a third non-weak fn
* don't reimplement CallSite::hasArgument
* whitelist the safe linkage types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58568
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 2 Nov 2008 16:46:17 +0000 (16:46 +0000)]
Testcase for PR2691
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58567
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 2 Nov 2008 11:47:11 +0000 (11:47 +0000)]
Silence a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58563
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 2 Nov 2008 09:00:33 +0000 (09:00 +0000)]
Get this building on 64 bit machines (error:
cast from ‘const llvm::PointerType*’ to ‘unsigned int’
loses precision).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58561
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sun, 2 Nov 2008 08:08:18 +0000 (08:08 +0000)]
Don't do pre-splitting if doing so would create a value join that did not
exist before. Updating the live intervals in that care is tricky in the general
case.
Evan, if you see a tighter guard condition for this, let me know.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58560
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Sun, 2 Nov 2008 06:01:39 +0000 (06:01 +0000)]
CMake: added a source file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58559
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 2 Nov 2008 05:53:37 +0000 (05:53 +0000)]
Whoops! Remove test Output/ directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58558
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 2 Nov 2008 05:52:50 +0000 (05:52 +0000)]
Add a new MergeFunctions pass. It finds identical functions and merges them.
This triggers only 60 times in llvm-test (look at .llvm.bc, not .linked.rbc)
and so it probably wont be turned on by default. Also, may of those are likely
to go away when PR2973 is fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58557
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 2 Nov 2008 02:41:50 +0000 (02:41 +0000)]
Fix demanded bits analysis with srem by negative number. Based on a patch
by Richard Osborne.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58555
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sun, 2 Nov 2008 00:17:33 +0000 (00:17 +0000)]
Fix this recently moved code to use the correct type. CI is now a
ConstantInt, and SI is the original cast instruction. This fixes
PR2996.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58549
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Sat, 1 Nov 2008 20:24:53 +0000 (20:24 +0000)]
Added interface to allow clients to create a MemIntrinsicNode for
target intrinsics that touches memory
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58548
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Sat, 1 Nov 2008 10:57:12 +0000 (10:57 +0000)]
Reverting back 58505. Will commit it once I have the bc reader/writer/docs
ready.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58547
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 31 Oct 2008 21:26:08 +0000 (21:26 +0000)]
Whitespace fixes. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58539
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 31 Oct 2008 20:10:49 +0000 (20:10 +0000)]
Testcase for PR2613
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58537
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 31 Oct 2008 20:08:30 +0000 (20:08 +0000)]
Invalidate debug/eh/gc labels when unreachable MBB is deleted.
Based on patch by Martin Nowack!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58536
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 19:56:03 +0000 (19:56 +0000)]
Add comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58533
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 19:55:13 +0000 (19:55 +0000)]
Use better data structure for ConstPoolId2AddrMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58532
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 19:15:52 +0000 (19:15 +0000)]
Actually make debug output understandable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58529
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Fri, 31 Oct 2008 19:13:42 +0000 (19:13 +0000)]
x86_64 rip-relative and magic mode address
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58528
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 19:11:09 +0000 (19:11 +0000)]
Forgot this in last commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58527
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 19:10:44 +0000 (19:10 +0000)]
Encode PICADD; some code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58526
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 31 Oct 2008 19:06:33 +0000 (19:06 +0000)]
Remove some unused virtual function bodies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58524
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 31 Oct 2008 18:30:19 +0000 (18:30 +0000)]
Revert r58489. It isn't correct for all cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58523
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 31 Oct 2008 18:05:01 +0000 (18:05 +0000)]
Symbol visibility is unsupported on cygwin too.
Patch by Jay Foad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58520
91177308-0d34-0410-b5e6-
96231b3b80d8
Torok Edwin [Fri, 31 Oct 2008 17:27:41 +0000 (17:27 +0000)]
Add an assert to catch user errors like:
MyFunctionPass() : FunctionPass(ID) {}
when the user actually meant to write:
MyFunctionPass() : FunctionPass(&ID) {}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58518
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 16:52:57 +0000 (16:52 +0000)]
Change x86 register allocation ordering to match that of gcc. Otherwise some tools get confused by prologue generated by llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58517
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 31 Oct 2008 16:41:59 +0000 (16:41 +0000)]
Add a fixme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58514
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 31 Oct 2008 16:12:56 +0000 (16:12 +0000)]
Totally disable the setSubgraphColor calls temporarily, as they're
currently troublesome even for #ifndef NDEBUG builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58512
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Fri, 31 Oct 2008 14:06:52 +0000 (14:06 +0000)]
Add a bunch of libcalls for ppcf128 that were somehow
completely forgotten about when writing LegalizeTypes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58508
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Fri, 31 Oct 2008 10:26:20 +0000 (10:26 +0000)]
For some targets pointer and int are 16-bits. Allow 16-bits as a valid index
in such cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58505
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 31 Oct 2008 04:00:23 +0000 (04:00 +0000)]
Don't skip over all "terminator" instructions when determining where to put the
callee-saved restore code. It could skip over conditional jumps
accidentally. Instead, just skip the "return" instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58489
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 31 Oct 2008 01:50:01 +0000 (01:50 +0000)]
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58486
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 31 Oct 2008 01:37:26 +0000 (01:37 +0000)]
CMake: Fix some unwanted commentary line wraps on the last change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58485
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Fri, 31 Oct 2008 01:24:51 +0000 (01:24 +0000)]
CMake: Establish dependencies among executables and libraries, using
data manually extracted from llvm-config.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58484
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 31 Oct 2008 00:57:24 +0000 (00:57 +0000)]
Use MOVSSmr instead of EXTRACTPSmr in the case of extracting
vector element 0 for a store, as it's smaller and faster.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58483
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 30 Oct 2008 23:44:39 +0000 (23:44 +0000)]
Revert errant deletion. The target needs to be able to specify that it doesn't want the generic constant pool to be emitted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58475
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 30 Oct 2008 23:43:36 +0000 (23:43 +0000)]
I think we got non-machine specific constpool entries covered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58474
91177308-0d34-0410-b5e6-
96231b3b80d8
Cedric Venet [Thu, 30 Oct 2008 21:22:00 +0000 (21:22 +0000)]
Change the name of the generated solution file for a CMake build. (from 'project' to 'LLVM').
!!!!!!!!!! Warning !!!!!!!!!!!!!!!
If you already have created a solution with cmake, you will need to manually open to the new one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58461
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 30 Oct 2008 21:13:11 +0000 (21:13 +0000)]
Testcase for PR2987.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58459
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 30 Oct 2008 20:40:10 +0000 (20:40 +0000)]
Canonicalize sext(i1) to i1?-1:0, and update various instcombine
optimizations accordingly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58457
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 30 Oct 2008 20:34:30 +0000 (20:34 +0000)]
Testcase for PR2986.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58456
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 30 Oct 2008 20:26:50 +0000 (20:26 +0000)]
Fix PR2986: do not use a potentially illegal
type for the shift amount type. Add a check
that shifts and rotates use the type returned
by getShiftAmountTy for the amount. This
exposed some problems in CellSPU and PPC,
which have already been fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58455
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 30 Oct 2008 19:35:32 +0000 (19:35 +0000)]
Set svn:ignore on cscope.{files,out} in root llvm directory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58453
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 30 Oct 2008 19:31:35 +0000 (19:31 +0000)]
Set svn:ignore for some Release-Asserts and Output dirs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58452
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 30 Oct 2008 19:28:32 +0000 (19:28 +0000)]
Shift amounts should have type getShiftAmountTy
(i32 for PPC, not i8). Correct this, and some
formatting while there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58451
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 30 Oct 2008 19:26:59 +0000 (19:26 +0000)]
Add InlineCost class for represent the estimated cost of inlining a
function.
- This explicitly models the costs for functions which should
"always" or "never" be inlined. This fixes bugs where such costs
were not previously respected.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58450
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Thu, 30 Oct 2008 19:24:28 +0000 (19:24 +0000)]
Shift amounts should have the type given by
getShiftAmountTy (i32 in the case of CellSPU).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58449
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 30 Oct 2008 18:21:52 +0000 (18:21 +0000)]
Add missing vsetcc expansion for widening
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58443
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Thu, 30 Oct 2008 17:21:37 +0000 (17:21 +0000)]
CMake: Reverted some unintentional changes on the previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58435
91177308-0d34-0410-b5e6-
96231b3b80d8
Oscar Fuentes [Thu, 30 Oct 2008 17:15:54 +0000 (17:15 +0000)]
CMake: Cygwin pretends to be Unix.
Patch by Jay Foad.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58434
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 30 Oct 2008 16:10:54 +0000 (16:10 +0000)]
ARM JIT should observe -relocation-model command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58433
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Thu, 30 Oct 2008 08:01:45 +0000 (08:01 +0000)]
Add initial support for vector widening. Logic is set to widen for X86.
One will only see an effect if legalizetype is not active. Will move
support to LegalizeType soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58426
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 30 Oct 2008 03:58:13 +0000 (03:58 +0000)]
mention fortran status.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58416
91177308-0d34-0410-b5e6-
96231b3b80d8
Scott Michel [Thu, 30 Oct 2008 01:51:48 +0000 (01:51 +0000)]
Resolve bug 2947: vararg-marked functions must spill registers R3-R79 to stack
so that va_start/va_arg/et.al. will walk arguments correctly for Cell SPU.
N.B.: Because neither clang nor llvm-gcc-4.2 can be built for CellSPU, this is
still unexorcised code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58415
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 30 Oct 2008 01:22:58 +0000 (01:22 +0000)]
Revert r58411. The user needs to #define this when using the JITMemoryManager.h header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58414
91177308-0d34-0410-b5e6-
96231b3b80d8