Owen Anderson [Tue, 19 May 2009 01:07:40 +0000 (01:07 +0000)]
Fix up the Windows portion of Atomic.h. This is untested, but it is my best understanding of what should work.
I'd be much obliged if someone on MSVC++ could try this out and let me know if it works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72087
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 19 May 2009 01:02:27 +0000 (01:02 +0000)]
Template CompareAndSwap function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72086
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Tue, 19 May 2009 00:46:42 +0000 (00:46 +0000)]
Spacing fix.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72083
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Tue, 19 May 2009 00:18:14 +0000 (00:18 +0000)]
Fix cmake builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72078
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Tue, 19 May 2009 00:08:29 +0000 (00:08 +0000)]
Now that we have atomics support properly detected by configure,
use it to implement Atomic.h.
This expunges the code previously imported from libatomic_ops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72077
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Mon, 18 May 2009 23:58:51 +0000 (23:58 +0000)]
Test for the presence of GCC atomic builtins at configure time. If not found,
disable building LLVM in thread-safe mode and print a nice warning.
Regenerate configure for these changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72075
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 18 May 2009 23:24:26 +0000 (23:24 +0000)]
Add -submit-aux option to NewNightlyTest.pl
- If given, the argument will be run using system with the path to the sent
data. Useful for testing nightlytest server replacements.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72070
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 23:08:55 +0000 (23:08 +0000)]
Don't set the "location" information for inlined functions' variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72064
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 22:33:01 +0000 (22:33 +0000)]
Small code cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72057
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 22:15:25 +0000 (22:15 +0000)]
Update a comment to reflect changes in the surrounding code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72051
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 18 May 2009 22:14:45 +0000 (22:14 +0000)]
Add short descriptions of 'implicit' and 'parallel'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72050
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 22:02:36 +0000 (22:02 +0000)]
RecordVariable is called each time a DECLARE node is encountered. For an inlined
function, this could be many, many times. We don't want to re-add variables to
that DIE for each time. We just want to add them once. Check to make sure that
we haven't added them already.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72047
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 18 May 2009 21:41:59 +0000 (21:41 +0000)]
Add OpSize to 16-bit ADC and SBB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72045
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 18 May 2009 21:08:45 +0000 (21:08 +0000)]
Add missing file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72042
91177308-0d34-0410-b5e6-
96231b3b80d8
Argyrios Kyrtzidis [Mon, 18 May 2009 21:06:40 +0000 (21:06 +0000)]
Allow the JIT ExecutionEngine to report details about the generated machine code.
Introduce a new class (MachineCodeInfo) that the JIT can fill in with details. Right now, just the address and the size of the machine code are reported.
Patch by Evan Phoenix!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72040
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 18 May 2009 21:02:18 +0000 (21:02 +0000)]
Fix CodePlacementOpt::OptimizeIntraLoopEdges so that its return value
correctly indicates whether it changed the code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72038
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Mon, 18 May 2009 20:55:32 +0000 (20:55 +0000)]
Fix pr4202: Disable CodePlacementOpt for ARM. The ARMConstantIslandPass has
to run last because it needs to know the exact size and position of every
basic block. Currently CodePlacementOpt is set up to run last. It might be
worthwhile to investigate reordering these passes, but for now, let's just
make it work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72037
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Mon, 18 May 2009 19:03:16 +0000 (19:03 +0000)]
New Spiller interface and trivial implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72030
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 18:55:39 +0000 (18:55 +0000)]
Revert r72025. It is possible for clients to convert between signed types
and pointer types safely if they only do so when the sizes are the same.
llvm-gcc is such a client.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72029
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Mon, 18 May 2009 18:46:57 +0000 (18:46 +0000)]
Remove getType() overrides for ExtractValueInst and InsertValueInst.
Patch by John McCall.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72028
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 18:21:03 +0000 (18:21 +0000)]
Revert last commit. It was wrong.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72026
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 18:18:57 +0000 (18:18 +0000)]
Add assertions to CastInst::getCastOpcode to catch attempted conversions
between integers and pointers when the source type is marked signed,
since inttoptr and ptrtoint always use zero-extension when the destination
is larger than the source.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72025
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 18:17:22 +0000 (18:17 +0000)]
Don't call RegionInlinedFnEnd if our optimization level isn't -O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72024
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 18 May 2009 18:09:36 +0000 (18:09 +0000)]
Commands beginning with '--' are converted to '-f' by gcc. Blech!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72023
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 18 May 2009 17:44:15 +0000 (17:44 +0000)]
Fill in the missing patterns for ADC and SBB.
Some comment cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72022
91177308-0d34-0410-b5e6-
96231b3b80d8
Douglas Gregor [Mon, 18 May 2009 17:21:34 +0000 (17:21 +0000)]
termios.h contains the winsize structure we need to determine the
width of a terminal. Don't try to get the width of a terminal if we
don't have this header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72018
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 16:45:28 +0000 (16:45 +0000)]
Rename UseTy to AccessTy, for consistency with getAccessType, and to
avoid ambiguity with the word "use" in IVStrideUse.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72012
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 18 May 2009 16:43:04 +0000 (16:43 +0000)]
Silence Release-Asserts warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72011
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 16:29:04 +0000 (16:29 +0000)]
Teach ScalarEvolution to recognize x^-1 in the case where non-demanded
bits have been stripped out by instcombine.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72010
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 16:17:44 +0000 (16:17 +0000)]
Delete a redundant 'else'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72009
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 16:03:58 +0000 (16:03 +0000)]
Fix ScalarEvolution::isLoopGuardedByCond to accept a null Loop*, for
consistency with other routines that use a null Loop* to mean code
not contained by any loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72008
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 15:58:39 +0000 (15:58 +0000)]
Minor code cleanups. Do more of the work before the if statements
instead of within their controlling expressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72007
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 15:44:58 +0000 (15:44 +0000)]
Add assertion checks to the SCEV operator creation methods to catch
type mismatches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72006
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 15:36:09 +0000 (15:36 +0000)]
Make ScalarEvolution::isLoopGuardedByCond work even when the edge
entering a loop is a non-split critical edge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72004
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 15:22:39 +0000 (15:22 +0000)]
Add an isOne() utility function to ScalarEvolution, similar to isZero()
and similar to ConstantInt's isOne().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72003
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 18 May 2009 15:16:49 +0000 (15:16 +0000)]
Add nounwind to a few tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72002
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Mon, 18 May 2009 08:44:04 +0000 (08:44 +0000)]
Tweak MemoryBuffer::getSTDIN so that it returns after the first EOF.
It doesn't matter for piped input, but it's annoying when typing at the
console.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71998
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Mon, 18 May 2009 03:44:24 +0000 (03:44 +0000)]
Fix a compile warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71993
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Sun, 17 May 2009 23:50:36 +0000 (23:50 +0000)]
Prevented reg0 from being added to MBB live-in set, which was causing issues
for PostRAScheduler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71991
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sun, 17 May 2009 19:37:14 +0000 (19:37 +0000)]
Rename MachineVerifier pass to avoid command line collision.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71987
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sun, 17 May 2009 19:37:02 +0000 (19:37 +0000)]
Check that the gcc front-end is not doing inlining
when not doing unit-at-a-time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71986
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 17 May 2009 10:16:28 +0000 (10:16 +0000)]
Mark rotl/rotr as expand. This generates pretty ugly code, but this is better than nothing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71976
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Sun, 17 May 2009 10:15:22 +0000 (10:15 +0000)]
Typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71975
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 17 May 2009 05:52:39 +0000 (05:52 +0000)]
Formatting. Some updating of data structures. More work needs to be done to update the examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71974
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sun, 17 May 2009 04:57:54 +0000 (04:57 +0000)]
Significantly improve Atomic.h by pulling in code from libatomic_ops by HP. This is a little outdated, but reasonably complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71973
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sat, 16 May 2009 21:08:25 +0000 (21:08 +0000)]
Remove the volatile marker from the cas_flag typedef, fixing some warnings.
It's now the client's resposibility to add it in when needed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71959
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 07:26:06 +0000 (07:26 +0000)]
Fix a missing def-flag on a Mips epilogue load.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71935
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 07:25:44 +0000 (07:25 +0000)]
Remember to set def-flag on register loaded from stack slot in CellSPU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71934
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 07:25:20 +0000 (07:25 +0000)]
Verify that explicit definitions in the TargetInstrDesc are matched by
explicit register define operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71933
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 07:24:54 +0000 (07:24 +0000)]
Allow redefinition of reserved registers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71932
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Sat, 16 May 2009 07:20:52 +0000 (07:20 +0000)]
Back out the thread-safe ManagedStatic for now. Too many people have too many problems with it for the moment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71931
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 16 May 2009 04:14:29 +0000 (04:14 +0000)]
Put back a bit of expensive checking logic that
was overenthusiastically deleted in r70234.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71926
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 16 May 2009 04:00:00 +0000 (04:00 +0000)]
Make sure the CXXFLAGS setting is picked up by
the common Makefile. Not sure why this suddenly
started causing problems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71925
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Sat, 16 May 2009 03:28:54 +0000 (03:28 +0000)]
Pacify gcc-4.3, which suggests explicit braces here
to avoid an ambiguous else.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71924
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 00:34:42 +0000 (00:34 +0000)]
Help DejaGnu avoid pipe-jam by producing less output from certain test cases.
When a test fails with more than a pipeful of output on stdout AND stderr, one
of the DejaGnu programs blocks. The problem can be avoided by redirecting
stdout to a file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71919
91177308-0d34-0410-b5e6-
96231b3b80d8
Jakob Stoklund Olesen [Sat, 16 May 2009 00:33:53 +0000 (00:33 +0000)]
Pass to verify generated machine code.
The following is checked:
* Operand counts: All explicit operands must be present.
* Register classes: All physical and virtual register operands must be
compatible with the register class required by the instruction descriptor.
* Register live intervals: Registers must be defined only once, and must be
defined before use.
The machine code verifier is enabled with the command-line option
'-verify-machineinstrs', or by defining the environment variable
LLVM_VERIFY_MACHINEINSTRS to the name of a file that will receive all the
verifier errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71918
91177308-0d34-0410-b5e6-
96231b3b80d8
Jay Foad [Fri, 15 May 2009 18:13:31 +0000 (18:13 +0000)]
Work around the fact that GNU libstdc++'s debug mode uses RTTI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71871
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Fri, 15 May 2009 11:04:52 +0000 (11:04 +0000)]
Unbreak mingw build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71856
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 10:40:23 +0000 (10:40 +0000)]
Improve compatibility with older versions of Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71855
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 May 2009 09:23:25 +0000 (09:23 +0000)]
Split out the DwarfDebug module from the DwarfWriter module.
Again, no intendtional functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71854
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 08:22:07 +0000 (08:22 +0000)]
Factor out some common code, fix more typoes, and add a memory fence that might be needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71853
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 08:07:23 +0000 (08:07 +0000)]
Fix an unfortunate typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71852
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 May 2009 06:55:26 +0000 (06:55 +0000)]
Mark class as hidden.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71850
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 06:49:31 +0000 (06:49 +0000)]
(Hopefully) unbreak Apple-style builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71849
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 15 May 2009 06:48:19 +0000 (06:48 +0000)]
Fix PR4210. Rewritter should track and update kills of sub-registers as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71848
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 05:13:57 +0000 (05:13 +0000)]
Don't #include OSAtomic.h unless we really need it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71837
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 15 May 2009 03:07:14 +0000 (03:07 +0000)]
Fix warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71834
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Fri, 15 May 2009 03:03:14 +0000 (03:03 +0000)]
Add extra parenthesis around || statements to pacify compiler.
Also fix up some 80col violations while I'm there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71833
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 May 2009 01:18:50 +0000 (01:18 +0000)]
Move c'tor/d'tor to top of file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71828
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 May 2009 01:12:28 +0000 (01:12 +0000)]
Split out the DwarfException class into its own file. No functionality change,
though the classes have been marked with "VISIBILITY_HIDDEN".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71827
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 15 May 2009 00:11:17 +0000 (00:11 +0000)]
Split out the Dwarf writer stuff into separate files. This is a much more
logical/sane approach to organizing all of the stuff that goes into writing out
DWARF information. Honestly? even this is too complex for what it's supposed to
be doing.
Trivia: It *looks* like there would be functionality changes, however there aren't!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71821
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Fri, 15 May 2009 00:01:40 +0000 (00:01 +0000)]
Now with working on Leopard!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71819
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 23:26:46 +0000 (23:26 +0000)]
Implement !if, analogous to $(if) in GNU make.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71815
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 14 May 2009 23:23:37 +0000 (23:23 +0000)]
Reflow to fit 80-col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71813
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 14 May 2009 23:22:47 +0000 (23:22 +0000)]
Reflow to fit 80-col.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71812
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 23:21:40 +0000 (23:21 +0000)]
Fix tests to not upset DejaGNU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71811
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 22:38:31 +0000 (22:38 +0000)]
Graduate LLVM to the big leagues by embedding a LISP processor into TableGen.
Ok, not really, but do support some common LISP functions:
* car
* cdr
* null
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71805
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 22:23:47 +0000 (22:23 +0000)]
Implement a !foreach operator analogous to GNU make's $(foreach).
Use it on dags and lists like this:
class decls {
string name;
}
def Decls : decls;
class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71803
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 21:54:42 +0000 (21:54 +0000)]
Implement a !subst operation simmilar to $(subst) in GNU make to do
def/var/string substitution on generic pattern templates. For example:
def Type;
def v4f32 : Type;
def TYPE : Type;
class GenType<Type t> {
let type = !(subst TYPE, v4f32, t);
}
def TheType : GenType<TYPE>;
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71801
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 14 May 2009 21:33:57 +0000 (21:33 +0000)]
Dropped this #include by accident.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71798
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 14 May 2009 21:26:50 +0000 (21:26 +0000)]
Make ManagedStatic threadsafe by using atomic operations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71796
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 14 May 2009 21:24:15 +0000 (21:24 +0000)]
Add CompareAndSwap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71795
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 21:22:49 +0000 (21:22 +0000)]
Implement !cast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71794
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 20:54:48 +0000 (20:54 +0000)]
Operation Enhancements
Create an OpInit class to serve as a base for all operation Inits.
Move parsing of operation constructs to separate functions and reference
from multiple places.
Add some commented out new operations. Coming soon.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71789
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Thu, 14 May 2009 20:38:52 +0000 (20:38 +0000)]
Fix PR4207.
If we're resolving a list element access and we're given a VarInit,
return a new VarListElementInit referencing the VarInit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71787
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 14 May 2009 19:17:24 +0000 (19:17 +0000)]
Down with static variables!
Part one of many.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71785
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 14 May 2009 18:45:49 +0000 (18:45 +0000)]
Tag blocks with DW_AT_APPLE_block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71784
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 14 May 2009 18:41:18 +0000 (18:41 +0000)]
Reuse existing getUnderlyingObject instead of
adding another copy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71783
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 14 May 2009 18:26:15 +0000 (18:26 +0000)]
Non-functionality changes:
- Reformatting.
- Use while() instead of do-while().
- Move simple constructors into .h file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71782
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Thu, 14 May 2009 18:16:46 +0000 (18:16 +0000)]
Clean up this file fixing 80-column violations, bad formatting, etc. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71781
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Thu, 14 May 2009 18:08:41 +0000 (18:08 +0000)]
Revert r71744. I must not have understood this correctly, because the
assertion is failing for some tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71779
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Thu, 14 May 2009 16:47:34 +0000 (16:47 +0000)]
Use abs64 in one more place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71775
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 May 2009 15:44:15 +0000 (15:44 +0000)]
clean up line-wrapping
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71771
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 14 May 2009 05:54:36 +0000 (05:54 +0000)]
Add an Atomic.h to the System library, for providing a platform independent API
to low-level sync operations.
The only one present at the moment is MemoryFence(), and only for the platforms
for which I could easily discern the proper way to do it. If your favorite platform
isn't represented, patches are welcome!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71770
91177308-0d34-0410-b5e6-
96231b3b80d8
Lang Hames [Thu, 14 May 2009 04:26:30 +0000 (04:26 +0000)]
Fix for PR4124. Make TwoAddressFormPass::FindLastUseInMBB return the real last use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71769
91177308-0d34-0410-b5e6-
96231b3b80d8
Jim Grosbach [Thu, 14 May 2009 00:46:35 +0000 (00:46 +0000)]
Update the names of the exception handling sjlj instrinsics to
llvm.eh.sjlj.* for better clarity as to their purpose and scope. Add
a description of llvm.eh.sjlj.setjmp to ExceptionHandling.html.
(llvm.eh.sjlj.longjmp documentation coming when that implementation is
added).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71758
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 14 May 2009 00:30:16 +0000 (00:30 +0000)]
Add an assert to turn a segfault on an unsupported inline
asm construct into an assertion failure.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71757
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Thu, 14 May 2009 00:03:51 +0000 (00:03 +0000)]
Add dumping support for DW_AT_APPLE_isa and DW_AT_APPLE_block.
Radar
6867696
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71750
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 13 May 2009 23:55:49 +0000 (23:55 +0000)]
There's yet more ugliness (surprise!) in DebugInfo. This needs major reworking.
Basically, there was a situation where it was getting an empty vector and doing
a .back() on that. Which isn't cool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71746
91177308-0d34-0410-b5e6-
96231b3b80d8
Bob Wilson [Wed, 13 May 2009 23:54:13 +0000 (23:54 +0000)]
The IfConverter::MergeBlocks method appears to be used only to merge a basic
block with its unique predecessor. Change the code to assert if that is not
the case, instead of trying to handle situations where the block has
multiple predecessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71744
91177308-0d34-0410-b5e6-
96231b3b80d8