OSDN Git Service
Nick Lewycky [Wed, 11 Feb 2009 08:44:13 +0000 (08:44 +0000)]
Try this. Darwin -> LTO, PIC -> LTO + possibly gold too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64299
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 11 Feb 2009 08:24:21 +0000 (08:24 +0000)]
Implement PR3495: local spiller optimization. The local spiller can now keep availability information over BB boundaries. It visits BB's in depth first order. After visiting a BB if it find a successor which has a single predecessor it visits the successor next without clearing the availability information. This allows the successor to omit reloads or change them into copies.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64298
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 11 Feb 2009 04:27:20 +0000 (04:27 +0000)]
When scheduling a block in parts, keep track of the overall
instruction index across each part. Instruction indices are used
to make live range queries, and live ranges can extend beyond
scheduling region boundaries.
Refactor the ScheduleDAGSDNodes class some more so that it
doesn't have to worry about this additional information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64288
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 11 Feb 2009 02:34:33 +0000 (02:34 +0000)]
62987 disables LTO build on darwin.
Revert 62987 for now. Nicolas please investigate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64285
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 11 Feb 2009 01:29:06 +0000 (01:29 +0000)]
If llvm.dbg.region.end is disappearing then remove corresponding llvm.dbg.func.start also.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64278
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 11 Feb 2009 00:25:25 +0000 (00:25 +0000)]
Don't print extra spaces in vector and array constants. This makes
them visually more consistent with vector and array types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64267
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 11 Feb 2009 00:18:15 +0000 (00:18 +0000)]
It isn't necessary to explicitly clear the contents of std::vector
and DenseMap members in a destructor. And tidy up a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64265
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 11 Feb 2009 00:14:53 +0000 (00:14 +0000)]
Don't try to strip a file we just moved.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64263
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 11 Feb 2009 00:12:28 +0000 (00:12 +0000)]
Use iterators to iterate through the Preds array instead of
an index. This code is on the hot-path because the current
way SDep edges are uniqued has quadratic complexity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64262
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 10 Feb 2009 23:29:38 +0000 (23:29 +0000)]
Consider any instruction that modifies the stack pointer to be
a scheduling region boundary. This isn't necessary for
correctness; it helps with compile time, as it avoids the need
for data- and anti-dependencies from all spills and reloads on
the stack-pointer modification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64255
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 10 Feb 2009 23:27:53 +0000 (23:27 +0000)]
Factor out more code for computing register live-range informationfor
scheduling, and generalize is so that preserves state across
scheduling regions. This fixes incorrect live-range information around
terminators and labels, which are effective region boundaries.
In place of looking for terminators to anchor inter-block dependencies,
introduce special entry and exit scheduling units for this purpose.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64254
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Feb 2009 22:14:17 +0000 (22:14 +0000)]
Ignore dbg intrinsic while folding unconditional branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64242
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 10 Feb 2009 22:06:28 +0000 (22:06 +0000)]
Handle llvm.x86.sse2.maskmov.dqu in 64-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64240
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 10 Feb 2009 21:39:44 +0000 (21:39 +0000)]
80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64237
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 10 Feb 2009 20:44:15 +0000 (20:44 +0000)]
This is now done using a real i33, rather than
an emulated one. Adjust the check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64236
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Feb 2009 19:28:07 +0000 (19:28 +0000)]
Use early exits. Reduce indentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64226
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 10 Feb 2009 17:56:28 +0000 (17:56 +0000)]
Use const, to support platforms where strrchr returns a const char *.
This fixes PR3535.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64224
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Tue, 10 Feb 2009 17:26:53 +0000 (17:26 +0000)]
Answer a common FAQ:
"Can I compile C or C++ code to platform-independent LLVM bitcode?"
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64222
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Tue, 10 Feb 2009 16:24:55 +0000 (16:24 +0000)]
Pacify gcc-4.3 (thinks IsConstant may be used
uninitialized).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64220
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Tue, 10 Feb 2009 08:30:11 +0000 (08:30 +0000)]
Fix PR3457: Ignore control successors when looking for closest scheduled successor. A control successor doesn't read result(s) produced by the scheduling unit being evaluated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64210
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Feb 2009 07:48:18 +0000 (07:48 +0000)]
Do not clone llvm.dbg.func.start and corresponding llvm.dbg.region.end during inlining.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64209
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Feb 2009 07:00:59 +0000 (07:00 +0000)]
Enable scalar replacement of AllocaInst whose one of the user is dbg info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64207
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 10 Feb 2009 06:04:08 +0000 (06:04 +0000)]
Validate file id.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64204
91177308-0d34-0410-b5e6-
96231b3b80d8
Sanjiv Gupta [Tue, 10 Feb 2009 04:20:26 +0000 (04:20 +0000)]
Function temporaries can not overlap with retval or args.See the comment in source code to know the reason. Anything having .auto. in its name is local to a function in nature irrespective of the linkage specified. print static local variables in module level IDATA section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64199
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 23:32:07 +0000 (23:32 +0000)]
Implement FpSET_ST1_*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64186
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 22:47:36 +0000 (22:47 +0000)]
If the target cannot issue a copy for the given source and dest registers, abort instead of silently continue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64184
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Mon, 9 Feb 2009 22:14:15 +0000 (22:14 +0000)]
Fix PR 3471, and some cleanups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64177
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 21:01:06 +0000 (21:01 +0000)]
Simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64164
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 20:54:38 +0000 (20:54 +0000)]
Make sure constant subscript is truncated to ptr size if it may not fit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64163
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 9 Feb 2009 20:27:45 +0000 (20:27 +0000)]
incorporate review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64158
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 9 Feb 2009 18:12:09 +0000 (18:12 +0000)]
Use doxygen comment syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64150
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 9 Feb 2009 17:41:21 +0000 (17:41 +0000)]
Use slightly more correct grammar in error messages.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64148
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Mon, 9 Feb 2009 17:11:05 +0000 (17:11 +0000)]
80-column violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64147
91177308-0d34-0410-b5e6-
96231b3b80d8
Gabor Greif [Mon, 9 Feb 2009 15:45:06 +0000 (15:45 +0000)]
make sure that BranchInst::getSuccessor() does not assert in cast<>
even if the underlying operand is NULL. This may happen in debugging context
within opt with partial loop unrolling (see test/Transforms/LoopUnroll/partial.ll).
After this fix I can resubmit the (backed out) r63459:
* lib/VMCore/AsmWriter.cpp: use precise accessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64142
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 12:31:40 +0000 (12:31 +0000)]
Fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64137
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 12:31:26 +0000 (12:31 +0000)]
These function return 'void'. Don't have 'return' return anything.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64136
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 9 Feb 2009 10:00:56 +0000 (10:00 +0000)]
fix typo, patch by Jonathan Brandmeyer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64132
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 9 Feb 2009 09:41:49 +0000 (09:41 +0000)]
Testcase for PR2437.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64131
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 08:45:39 +0000 (08:45 +0000)]
Re-enable machine sinking pass now that the coalescer bugs and the AnalyzeBrnach bug are fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64126
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 08:37:45 +0000 (08:37 +0000)]
Fix another case ShortenDeadCopySrcLiveRange is shortening too much. No test case possible since I don't know what to grep for. :-(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64125
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 07:14:22 +0000 (07:14 +0000)]
Turns out AnalyzeBranch can modify the mbb being analyzed. This is a nasty
suprise to some callers, e.g. register coalescer. For now, add an parameter
that tells AnalyzeBranch whether it's safe to modify the mbb. A better
solution is out there, but I don't have time to deal with it right now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64124
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 06:42:40 +0000 (06:42 +0000)]
Strip the LTO dylib.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64119
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 04:01:11 +0000 (04:01 +0000)]
Small fix for the 'strip' command. Do a list of .so files.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64112
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Mon, 9 Feb 2009 03:07:24 +0000 (03:07 +0000)]
Eliminate a 'control reaches end of non-void function' warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64111
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 02:18:35 +0000 (02:18 +0000)]
Don't run 'strip' on files that aren't there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64108
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Mon, 9 Feb 2009 02:13:33 +0000 (02:13 +0000)]
Remove warnings about not being able to delete something. Don't run lipo on gccas, gccld, and llvm-config scripts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64107
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 9 Feb 2009 00:04:40 +0000 (00:04 +0000)]
mention rdynamic, PR3431, patch by Stein Roger Skafløtten!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64106
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 23:00:09 +0000 (23:00 +0000)]
Document llvm.umul.with.overflow indicating that it's badly broken and not intended for use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64104
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 22:52:50 +0000 (22:52 +0000)]
Rename dg.exp to llvmc.exp. This is so I can ignore it during a make check if I want to.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64103
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 8 Feb 2009 22:48:07 +0000 (22:48 +0000)]
80-column violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64102
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 8 Feb 2009 22:47:39 +0000 (22:47 +0000)]
Add a Sleep() function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64101
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 22:21:28 +0000 (22:21 +0000)]
I can't type today apparently.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64097
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 8 Feb 2009 21:10:57 +0000 (21:10 +0000)]
Add Emacs hints to Alarm.inc.
Also removes some trailing whitespace and fixes one 80-column violation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64094
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 20:44:19 +0000 (20:44 +0000)]
add a note.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64093
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 20:00:15 +0000 (20:00 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64091
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 19:59:51 +0000 (19:59 +0000)]
fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64090
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 19:56:22 +0000 (19:56 +0000)]
reject void pointers with a nice error:
llvm-as: t.ll:2:15: pointers to void are invalid, use i8* instead
%X = type void*
^
instead of asserting and dying.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64089
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 8 Feb 2009 19:53:29 +0000 (19:53 +0000)]
document pointer type constraints, PR3513
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64088
91177308-0d34-0410-b5e6-
96231b3b80d8
Mikhail Glushenkov [Sun, 8 Feb 2009 11:44:37 +0000 (11:44 +0000)]
The 'false.c' test must depend on llvm-g++.
Also, turn on Objective-C/C++ tests.
This should fix http://llvm.org/bugs/show_bug.cgi?id=3499.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64084
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 8 Feb 2009 11:04:35 +0000 (11:04 +0000)]
Fix PR3486. Fix a bug in code that manually patch physical register live interval after its sub-register is coalesced with a virtual register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64082
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 8 Feb 2009 08:24:28 +0000 (08:24 +0000)]
Strengthen the previous check.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64076
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 8 Feb 2009 08:00:36 +0000 (08:00 +0000)]
r64073 commit message is lost. Here it is:
Right now if the coalesced copy def is dead and its src is a kill, and that
there are now other uses within the live range, the coalescer would mark the
def of the source register as dead. But it should also check if there are
other kills which means the value has other uses not in the live range.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64075
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sun, 8 Feb 2009 07:48:37 +0000 (07:48 +0000)]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64073
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 04:04:40 +0000 (04:04 +0000)]
Fixes from feedback.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64070
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 01:40:31 +0000 (01:40 +0000)]
Document the 'llvm.OP.with.overflow' intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64066
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 01:32:00 +0000 (01:32 +0000)]
Mistakenly turned this on.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64065
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Sun, 8 Feb 2009 00:58:05 +0000 (00:58 +0000)]
Revert r63999. It was breaking self-hosting builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64062
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 23:37:03 +0000 (23:37 +0000)]
testcase for r64049 of llvm-gcc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64050
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 22:37:06 +0000 (22:37 +0000)]
Add missing break statements, fixing PR3503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64040
91177308-0d34-0410-b5e6-
96231b3b80d8
Mon P Wang [Sat, 7 Feb 2009 22:19:29 +0000 (22:19 +0000)]
Instrcombine should not change load(cast p) to cast(load p) if the cast
changes the address space of the pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64035
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 19:59:05 +0000 (19:59 +0000)]
Use getDebugLoc forwarder instead of getNode()->getDebugLoc.
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64026
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 19:38:46 +0000 (19:38 +0000)]
Revert 64023. make prefers GNUmakefile over makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64024
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 19:05:24 +0000 (19:05 +0000)]
Move Apple style build makefiles to the top level. Just like llvmgcc42.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64023
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 7 Feb 2009 18:56:30 +0000 (18:56 +0000)]
fix bugpoint url, patch by Pieter de Bie!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64022
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:15:20 +0000 (16:15 +0000)]
Constify TargetInstrInfo::EmitInstrWithCustomInserter, allowing
ScheduleDAG's TLI member to use const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64018
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:12:23 +0000 (16:12 +0000)]
Change several SmallPtrSetImpl members from public to protected,
to make the encapsulation more clear.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64017
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 16:10:35 +0000 (16:10 +0000)]
Simplify some code by using blocks_begin(), blocks_end(), and
the iterator typedefs instead of handling the std::vector
directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64016
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 7 Feb 2009 04:57:08 +0000 (04:57 +0000)]
Add an API for strings with possible NULLs in the middle. Refactor the other
two AddString methods to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64005
91177308-0d34-0410-b5e6-
96231b3b80d8
Mike Stump [Sat, 7 Feb 2009 03:36:02 +0000 (03:36 +0000)]
Insert space to avoid warning and make code more readable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64003
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 7 Feb 2009 03:15:01 +0000 (03:15 +0000)]
Free the buffer in the case where we don't create a module out of it, as
pointed out by Torok Edwin.
Remove trailing whitespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64002
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 02:15:05 +0000 (02:15 +0000)]
Make SDNode constructors take a DebugLoc always.
Adjust derived classes to pass UnknownLoc where
a DebugLoc does not make sense. Pick one of
DebugLoc and non-DebugLoc variants to survive
for all such classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64000
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 01:57:46 +0000 (01:57 +0000)]
Enable machine sinking pass in non-fast mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63999
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 01:34:19 +0000 (01:34 +0000)]
Deleted one line too many. oops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63996
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 01:27:09 +0000 (01:27 +0000)]
Remove now-unused constructors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63995
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 7 Feb 2009 01:21:47 +0000 (01:21 +0000)]
Don't sink the instruction if TargetRegisterInfo::isSafeToMoveRegClassDefs doesn't think it's safe. This works around PR1911.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63994
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 00:56:46 +0000 (00:56 +0000)]
Needs this file too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63993
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Sat, 7 Feb 2009 00:55:49 +0000 (00:55 +0000)]
Get rid of the last non-DebugLoc versions of getNode!
Many targets build placeholder nodes for special operands, e.g.
GlobalBaseReg on X86 and PPC for the PIC base. There's no
sensible way to associate debug info with these. I've left
them built with getNode calls with explicit DebugLoc::getUnknownLoc operands.
I'm not too happy about this but don't see a good improvement;
I considered adding a getPseudoOperand or something, but it
seems to me that'll just make it harder to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63992
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 00:43:41 +0000 (00:43 +0000)]
Refactor some repeated logic into a separate function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63989
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Sat, 7 Feb 2009 00:42:54 +0000 (00:42 +0000)]
Make a comment a doxygen comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63988
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 23:17:54 +0000 (23:17 +0000)]
Constify operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63979
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 23:05:02 +0000 (23:05 +0000)]
Remove more non-DebugLoc getNode variants. Use
getCALLSEQ_{END,START} to permit passing no DebugLoc
there. UNDEF doesn't logically have DebugLoc; add
getUNDEF to encapsulate this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63978
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 21:55:48 +0000 (21:55 +0000)]
And one more file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63971
91177308-0d34-0410-b5e6-
96231b3b80d8
Dale Johannesen [Fri, 6 Feb 2009 21:50:26 +0000 (21:50 +0000)]
Remove more non-DebugLoc versions of getNode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63969
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:45:08 +0000 (21:45 +0000)]
Record debug location information in the Dwarf writer.
A simple test program shows that debugging works. :-)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63968
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:36:23 +0000 (21:36 +0000)]
Clear out the CurDebugLoc info when doing a 'clear' on the SDL object.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63967
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Fri, 6 Feb 2009 21:34:12 +0000 (21:34 +0000)]
Add comparison operators to DebugLoc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63966
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:25:08 +0000 (21:25 +0000)]
Split the locking out of JIT::runJITOnFunction so that callers
that already hold the lock can call an entry point that doesn't
re-acquire the lock.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63965
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:17:03 +0000 (21:17 +0000)]
Make Mutex's constructor explicit, and tidy up whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63963
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Fri, 6 Feb 2009 21:15:52 +0000 (21:15 +0000)]
Use .size and .type on ELF systems; this helps tools that map
addresses to symbols.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63962
91177308-0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 6 Feb 2009 19:34:14 +0000 (19:34 +0000)]
Deallocate() methods now take a 'const void*' instead of a 'void *', matching observed behavior with how 'delete[]' can be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63956
91177308-0d34-0410-b5e6-
96231b3b80d8