Dale Johannesen [Wed, 24 Jun 2009 17:11:31 +0000 (17:11 +0000)]
Rewrite 73900 per Duncan's suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74082
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Jun 2009 17:00:42 +0000 (17:00 +0000)]
We decided to not worry about Atoms for now, it should be straightforward to
reintroduce them later.
Also, don't require MCSection* when creating a symbol.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74081
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Jun 2009 16:36:52 +0000 (16:36 +0000)]
MCStreamer: Add a few more "symbol attributes".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74077
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Jun 2009 16:05:35 +0000 (16:05 +0000)]
MCStreamer: Test printing values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74076
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 14:49:00 +0000 (14:49 +0000)]
Minor whitespace cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74074
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 14:46:22 +0000 (14:46 +0000)]
Simplify [su]max(MAX, n) to MAX. This comes up in loop tripcount
computations in loops with multiple exits.
Adjust the testcase for PR4436 so that the relevant portion isn't
optimized away.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74073
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 14:31:06 +0000 (14:31 +0000)]
When inserting code into a loop preheader, insert it before the
terminator, instead of after the last phi. This fixes a bug
exposed by ScalarEvolution analyzing more kinds of loops.
This fixes PR4436.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74072
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 24 Jun 2009 10:03:44 +0000 (10:03 +0000)]
Add new files to cmake list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74071
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 24 Jun 2009 08:38:48 +0000 (08:38 +0000)]
Start sketching 2.6 release notes. This provides a
place to note major API changes (I've noted the
getABITypeSize -> getAllocSize change).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74070
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Jun 2009 06:36:07 +0000 (06:36 +0000)]
Move thumb and thumb2 tests into separate directories.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74068
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 05:47:59 +0000 (05:47 +0000)]
factor some code better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74067
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 05:46:28 +0000 (05:46 +0000)]
wire up support for MCContext/MCStreamer in -experimental-asm-printer mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74066
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 05:29:56 +0000 (05:29 +0000)]
remove dead makefile flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74065
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 05:28:55 +0000 (05:28 +0000)]
remove dead makefile flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74064
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 05:13:15 +0000 (05:13 +0000)]
implement a bunch of synonyms for section switching.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74062
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 04:48:43 +0000 (04:48 +0000)]
Delete some orphaned comments, fix some 80-column violations,
and tidy up a few other formatting issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74060
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 04:47:54 +0000 (04:47 +0000)]
Remove an obsolete comment and fix some 80-column violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74059
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 04:43:34 +0000 (04:43 +0000)]
add support for parsing and emitting .section directives. We can now parse
things like:
.section __TEXT,__cstring,cstring_literals
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74058
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 04:31:49 +0000 (04:31 +0000)]
add trivial support for passing label definitions through the MCStreamer.
This is suboptimal in several aspects, see the commented out assertion.
I need to talk to Daniel about this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74057
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Wed, 24 Jun 2009 02:17:32 +0000 (02:17 +0000)]
Fixed a bug in LiveInterval scaling (failure to scale VNI defs correctly), removed old TODO comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74054
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 24 Jun 2009 02:05:51 +0000 (02:05 +0000)]
Fix support for inline asm input / output operand tying when operand spans across multiple registers (e.g. two i64 operands in 32-bit mode).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74053
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 01:22:30 +0000 (01:22 +0000)]
Add a testcase demoing some of ScalarEvolution's new trip count logic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74049
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 01:18:18 +0000 (01:18 +0000)]
Extend ScalarEvolution's multiple-exit support to compute exact
trip counts in more cases.
Generalize ScalarEvolution's isLoopGuardedByCond code to recognize
And and Or conditions, splitting the code out into an
isNecessaryCond helper function so that it can evaluate Ands and Ors
recursively, and make SCEVExpander be much more aggressive about
hoisting instructions out of loops.
test/CodeGen/X86/pr3495.ll has an additional instruction now, but
it appears to be due to an arbitrary register allocation difference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74048
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Wed, 24 Jun 2009 01:08:42 +0000 (01:08 +0000)]
Unbreak build on Linux by removing Darwinism.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74046
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 01:05:09 +0000 (01:05 +0000)]
Teach GetMinSignBits about SCEVAddExprs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74045
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Wed, 24 Jun 2009 01:03:06 +0000 (01:03 +0000)]
Start MCAsmStreamer implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74044
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:55:55 +0000 (00:55 +0000)]
Revert this accidental commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74042
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:54:57 +0000 (00:54 +0000)]
Move the special cases for constants out of getUnknown and into
createSCEV. Also, recognize UndefValue in createSCEV.
Change getIntegerSCEV's comment to avoid mentioning FP types,
and re-implement it in terms of getConstant instead of getUnknown.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74041
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 00:52:40 +0000 (00:52 +0000)]
create an MCStreamer and provide it to AsmParser.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74039
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 00:51:35 +0000 (00:51 +0000)]
stub out a trivial constructor method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74038
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:38:39 +0000 (00:38 +0000)]
Use ScalarEvolution::getConstant instead of getUnknown to create
SCEVConstants. This cleanup is a step toward letting getUnknown
be simpler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74037
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 24 Jun 2009 00:33:19 +0000 (00:33 +0000)]
make the lexer unique strings it lexes instead of passing them back as
std::strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74036
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:33:16 +0000 (00:33 +0000)]
Include the maximum trip count expression in ScalarEvolution's print output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74035
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:30:26 +0000 (00:30 +0000)]
Add an isAllOnesValue utility function, similar to isZero and isOne.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74032
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 24 Jun 2009 00:28:59 +0000 (00:28 +0000)]
Don't emit a redundant BitCastInst if the value to be defined in the
preheader is already an instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74031
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Wed, 24 Jun 2009 00:25:42 +0000 (00:25 +0000)]
Guard the listeners list. Unfortunately, this requires a real static rather
than a managed static because other managed statics can (and do) access this
list in their destructors. Yes, I know it's horrible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74029
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 23 Jun 2009 23:59:40 +0000 (23:59 +0000)]
Provide InitializeAllTargets and InitializeNativeTarget functions in the
C bindings. Change all the backend "Initialize" functions to have C linkage.
Change the "llvm/Config/Targets.def" header to use C-style comments to avoid
compile warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74026
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Jun 2009 23:39:15 +0000 (23:39 +0000)]
Update for MCImm -> MCValue rename.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74024
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 23:31:52 +0000 (23:31 +0000)]
rename MCImm ->MCValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74023
91177308-0d34-0410-b5e6-
96231b3b80d8
Sean Callanan [Tue, 23 Jun 2009 23:25:37 +0000 (23:25 +0000)]
Test commit: fixed spacing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74022
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Jun 2009 23:02:31 +0000 (23:02 +0000)]
Add comments for the MCStreamer interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74019
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Jun 2009 22:25:41 +0000 (22:25 +0000)]
It is not a good idea to have data member's name match argument's name. In fact, it is a simple receipe to waste an hour or so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74018
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Jun 2009 22:23:13 +0000 (22:23 +0000)]
Use getReturnTypeName() to print return type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74017
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Jun 2009 22:11:37 +0000 (22:11 +0000)]
upgrade
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74016
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 23 Jun 2009 22:07:48 +0000 (22:07 +0000)]
Add DISubprogram::getReturnTypeName()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74015
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Jun 2009 22:01:43 +0000 (22:01 +0000)]
Start flushing out MCContext.
- Lives inside new library lib/MC (LLVMMC.a)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74013
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Jun 2009 21:55:46 +0000 (21:55 +0000)]
Set svn:ignore for {llvm/Config/AsmPrinters,Targets}.def
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74010
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 21:19:38 +0000 (21:19 +0000)]
Use atomic operations when accessing statistics, and make the lazy initialization of statistics actually threadsafe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74005
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 21:19:04 +0000 (21:19 +0000)]
Add atomic multiply and divide operations, built on top of CompareAndSwap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74004
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 21:05:21 +0000 (21:05 +0000)]
Reinstate target dependencies on Table_gen targets in CMake
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74003
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 20:52:29 +0000 (20:52 +0000)]
Make timers threadsafe again. This isn't quite as nice as I'd hoped (it uses locking rather than atomic arithmetic),
but should work on all the platforms we care about.
I might revisit this if a totally awesome way to do it occurs to me.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74002
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 23 Jun 2009 20:47:24 +0000 (20:47 +0000)]
Temporary copy-pasto to make examples compile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74001
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 23 Jun 2009 20:46:48 +0000 (20:46 +0000)]
Make llvmc work again.
Chris recently broke llvmc with his Makefile changes (r75379). That patch made
the global change .o -> .a, which caused built-in llvmc plugins to stop working
since plugin initialization in llvmc is based on static variables not referenced
from the main executable. This patch implements auto-generated forced references
to the plugin libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74000
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 23 Jun 2009 20:46:00 +0000 (20:46 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73999
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 23 Jun 2009 20:45:31 +0000 (20:45 +0000)]
A little bit nicer formatting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73998
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Tue, 23 Jun 2009 20:45:07 +0000 (20:45 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73997
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Tue, 23 Jun 2009 20:24:17 +0000 (20:24 +0000)]
Start sketching MCStreamer interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73994
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 20:17:22 +0000 (20:17 +0000)]
Revert my last series of commits related to Timer and 64-bit atomics. Not all the targets
we care about are capable of supporting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73993
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 23 Jun 2009 20:02:00 +0000 (20:02 +0000)]
Add include file to get the type for in64_t.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73991
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 19:56:37 +0000 (19:56 +0000)]
Test instructions operands were printed in the wrong order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73990
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Tue, 23 Jun 2009 19:52:59 +0000 (19:52 +0000)]
"The MMX_MASKMOVQ and MMX_MASKMOVQ64 instructions are labeled as MRMDestMem
instructions, which implies that there is an explicit memory operand. There is
(however) no explicit memory operand; although this is a store, the only memory
operand is implicit, indicated by DS:EDI. This causes the table-generation code
for the disassembler to report an error."
Patch by Sean Callanan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73989
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Tue, 23 Jun 2009 19:49:23 +0000 (19:49 +0000)]
Switched size_t to int64_t to prevent type mismatch in call to max.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73988
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 19:39:13 +0000 (19:39 +0000)]
Proper patterns for thumb2 shift and rotate instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73987
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 19:38:34 +0000 (19:38 +0000)]
Code clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73986
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 19:38:13 +0000 (19:38 +0000)]
Add IsThumb1Only to most 16-bit thumb instructions since we want to isel 32-bit instructions when they are available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73985
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 18:58:00 +0000 (18:58 +0000)]
add a simple MCImm class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73984
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 23 Jun 2009 18:42:26 +0000 (18:42 +0000)]
The correct values here (as defined by gcc-4.2) are
different for ppc; add another version of the test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73983
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 18:41:30 +0000 (18:41 +0000)]
refactor a bunch of X86 specific stuff out to its own file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73982
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 23 Jun 2009 18:34:37 +0000 (18:34 +0000)]
This test only works on ppc32 if some optimization is done before
generating LLVM IR; it is correct in the code as written
to use 8-byte-aligned operations to copy Key in bar. Formerly
the gcc inliner was run, now it isn't. I don't think it's
possible to preserve this as a pure FE test. Adding -O2 lets
the llvm optimizers get rid of the 8-byte-aligned stores, at least.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73981
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 18:30:27 +0000 (18:30 +0000)]
Atomic ops that do arithmetic use signed arithmetic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73980
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 18:30:17 +0000 (18:30 +0000)]
CMake: remove support for llvm-config-generated dependencies in the build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73979
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 18:21:13 +0000 (18:21 +0000)]
Actually, these need to be signed integers, not unsigned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73978
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 18:14:38 +0000 (18:14 +0000)]
Rename SelectShifterOperand to SelectThumb2ShifterOperandReg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73975
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 18:12:30 +0000 (18:12 +0000)]
Use 64-bit integer counters for tracking time, rather than doubles. This will be more atomic op friendly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73974
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 23 Jun 2009 18:03:49 +0000 (18:03 +0000)]
See test. Judging from PR 1278, at the time the test was committed, the
generated code was apparently doing stores directly into the return value
aggregate; now, it's doing a copy from a compiler-generated static object.
That object is initialized using [4 x i8] which breaks the test. I believe
this change preserves the original point of the test.
Of course it would be better for the code to do stores directly into the
return aggregate, but that is not what happens at -O0; the llvm optimizers
seem to do that on x86 but not on ppc32, possibly because of the explicit
padding (which is unavoidable). I think it must have been being done by
a gcc optimizer pass before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73972
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 18:01:04 +0000 (18:01 +0000)]
Label the existing atomic functions as 32-bit specific, and add a 64-bit one that will be useful in
the near future.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73971
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 17:58:51 +0000 (17:58 +0000)]
Eliminate some unused code in CMa'e add_llvm_target. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73970
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 17:57:35 +0000 (17:57 +0000)]
Eliminate object-relinking support from CMake. Fixes PR 4429 and
cleans up the CMake-based build system a bit. Started by a patch from
Xerxes Rånby.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73969
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 17:54:26 +0000 (17:54 +0000)]
Obvious typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73967
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 17:50:34 +0000 (17:50 +0000)]
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73966
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 17:48:47 +0000 (17:48 +0000)]
Initial Thumb2 support. Majority of the work is done by David Goodwin. There are
also some contribution from Jim Grosbach, Bob Wilson, and Evan Cheng.
I've done my best to consolidate the patches with those that were done by
Viktor Kutuzov and Anton Korzh from Access Softek, Inc. Let me know if missed
anything. I've completely reorganized the thumb2 td file, made more extensive
uses of multiclass, etc.
Test cases will be contributed later after I re-organize what's in svn first.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73965
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 17:39:31 +0000 (17:39 +0000)]
Add an atomic add operation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73964
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 17:33:37 +0000 (17:33 +0000)]
Make the lazy initialization of DefaultTimerGroup threadsafe.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73963
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 17:22:05 +0000 (17:22 +0000)]
Regenerate configure script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73962
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Tue, 23 Jun 2009 17:21:35 +0000 (17:21 +0000)]
Work around build problem with OpenJDK, which defines X86 as a
macro. Fixes PR 4427. Patch by Xerxes Rånby!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73961
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Tue, 23 Jun 2009 17:03:23 +0000 (17:03 +0000)]
Add myself to the list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73959
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 16:36:10 +0000 (16:36 +0000)]
Revert r73923, which broke clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73957
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Tue, 23 Jun 2009 07:10:19 +0000 (07:10 +0000)]
Fold the add (ptr, offset) into ptr[offset] only if the offset is small enough. movwi and moviw allow value of 5-bits only (i.e. 32).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73953
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 05:57:07 +0000 (05:57 +0000)]
implement a trivial binary expression parser, we can now parse all of 176.gcc.llc.s
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73950
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 05:25:29 +0000 (05:25 +0000)]
Minor reorg.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73948
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 23 Jun 2009 05:23:49 +0000 (05:23 +0000)]
Replace isTwoAddress with operand constraint.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73947
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 23 Jun 2009 04:39:27 +0000 (04:39 +0000)]
Use a default alignment for data and bss sections.
Only pad when the section size > 0 and move the code that deals
with globals initializers to a place we know for sure the global
is initialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73944
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 23 Jun 2009 00:24:36 +0000 (00:24 +0000)]
get a definition of strull on windows, thanks to Howard Su.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73929
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 00:21:15 +0000 (00:21 +0000)]
Guard the layout info object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73928
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 23 Jun 2009 00:02:39 +0000 (00:02 +0000)]
Guard the plugin loader.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73925
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 22 Jun 2009 23:37:06 +0000 (23:37 +0000)]
Add guards around timer groups, which can be shared.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73923
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 22 Jun 2009 23:28:56 +0000 (23:28 +0000)]
Fix a bug in the trip-count computation with And/Or. If either of the
sides is CouldNotCompute, the resulting exact count must be CouldNotCompute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73920
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 22 Jun 2009 23:27:02 +0000 (23:27 +0000)]
Add support for ARM's Advanced SIMD (NEON) instruction set.
This is still a work in progress but most of the NEON instruction set
is supported.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73919
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 22 Jun 2009 23:08:27 +0000 (23:08 +0000)]
Guard the statistics table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73916
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 22 Jun 2009 22:44:15 +0000 (22:44 +0000)]
Guard the global annotation tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73913
91177308-0d34-0410-b5e6-
96231b3b80d8