Chris Lattner [Thu, 23 Aug 2007 05:20:48 +0000 (05:20 +0000)]
Avoid hiding issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41310
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 23 Aug 2007 05:15:32 +0000 (05:15 +0000)]
rename APInt::toString -> toStringUnsigned for symmetry with toStringSigned()
Add an APSInt::toString() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41309
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 22 Aug 2007 23:39:54 +0000 (23:39 +0000)]
Implement review feedback on trampoline documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41304
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 22 Aug 2007 21:07:41 +0000 (21:07 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41295
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 22 Aug 2007 20:55:18 +0000 (20:55 +0000)]
Fix typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41292
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Wed, 22 Aug 2007 19:36:31 +0000 (19:36 +0000)]
update test to check that codegen works with llvm.used in llvm.metadata section
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41289
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 22 Aug 2007 19:33:29 +0000 (19:33 +0000)]
Cosmetic change
"True Loop" and "False Loop" naming terminology to refer two loops
after loop cloning is confusing. Instead just use A_Loop and B_Loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41287
91177308-0d34-0410-b5e6-
96231b3b80d8
Andrew Lenharth [Wed, 22 Aug 2007 19:33:11 +0000 (19:33 +0000)]
move this check. ppc outputs .no_dead_strip properly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41286
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 22 Aug 2007 18:44:05 +0000 (18:44 +0000)]
Add the PCSymbol for Darwin x86 platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41284
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 22 Aug 2007 18:27:01 +0000 (18:27 +0000)]
Refactor loop condition check in a separate function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41282
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Wed, 22 Aug 2007 18:07:47 +0000 (18:07 +0000)]
Fix thinko.
Starting value of second loop's induction variable can not be lower
then starting value of original loop's induction variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41280
91177308-0d34-0410-b5e6-
96231b3b80d8
Bill Wendling [Wed, 22 Aug 2007 07:26:30 +0000 (07:26 +0000)]
Testcase for llvm.c* intrinsic failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41268
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Wed, 22 Aug 2007 05:58:22 +0000 (05:58 +0000)]
Test handling of complex constants as lvalues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41266
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 21 Aug 2007 22:40:44 +0000 (22:40 +0000)]
Dror GCCLibraries: they are obsolete since 2.0 release. This also reduces number of licenses used in LLVM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41257
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 21 Aug 2007 21:12:02 +0000 (21:12 +0000)]
Rename bunch of variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41250
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 21 Aug 2007 19:47:46 +0000 (19:47 +0000)]
Preserve LCSSA.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41246
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 21 Aug 2007 16:54:51 +0000 (16:54 +0000)]
Use SmallVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41230
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 21 Aug 2007 16:39:43 +0000 (16:39 +0000)]
No need to hardcode SmallVector size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41228
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 21 Aug 2007 16:09:25 +0000 (16:09 +0000)]
InlineAsm asm support for integer registers added
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41225
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Tue, 21 Aug 2007 16:06:45 +0000 (16:06 +0000)]
Instruction Itinerary attribution fixed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41224
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Tue, 21 Aug 2007 14:57:58 +0000 (14:57 +0000)]
Doxygenize comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41222
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Aug 2007 00:55:23 +0000 (00:55 +0000)]
Fix potentially N^2 behavior handling arrays with many of the
same value which get RAUW'd. This speeds up reading the .bc
file in PR1616 from 852s to 0.19s on my G5 with a debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41209
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Tue, 21 Aug 2007 00:31:30 +0000 (00:31 +0000)]
Use only 1 knob to enable exceptions on Darwin :).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41208
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Tue, 21 Aug 2007 00:31:24 +0000 (00:31 +0000)]
Use SmallVector instead of std::vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41207
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Tue, 21 Aug 2007 00:21:07 +0000 (00:21 +0000)]
simplify code, improve a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41205
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 20 Aug 2007 23:51:18 +0000 (23:51 +0000)]
s/ExitBlock/ExitingBlock/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41204
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 20 Aug 2007 22:49:32 +0000 (22:49 +0000)]
initial checkin of Neil's APFloat work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41203
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 20 Aug 2007 21:31:08 +0000 (21:31 +0000)]
clarify precedence, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41199
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 20 Aug 2007 21:22:48 +0000 (21:22 +0000)]
add reverse iterators to smallvector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41198
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Mon, 20 Aug 2007 21:17:26 +0000 (21:17 +0000)]
- Use correct header for SCEV inside LoopPass.cpp
- Move SCEVExpander::expand() out-of-line workarounding possible toolchain bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41197
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 20 Aug 2007 20:49:01 +0000 (20:49 +0000)]
Replace indunction variable with split value in loop body.
This fixes art miscompile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41195
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Mon, 20 Aug 2007 20:24:15 +0000 (20:24 +0000)]
Do not split loops rejected by processOneIterationLoop().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41194
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Mon, 20 Aug 2007 19:54:01 +0000 (19:54 +0000)]
Add FilteredPassNameParser along with PassArgFilter to filter passes
based on their Arg members.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41192
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Aug 2007 19:28:38 +0000 (19:28 +0000)]
Minor cleanups to reduce some spurious differences between different
scheduler implementations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41191
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Aug 2007 19:25:59 +0000 (19:25 +0000)]
Add Type::isIntOrIntVector, like Type::isFPOrFPVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41190
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Mon, 20 Aug 2007 19:23:34 +0000 (19:23 +0000)]
When Intrinsic::getName is constructing names for overloaded intrinsics,
use the ValueType name instead of the llvm type name, to match what the
verifier expects. For integers these are the same, but for floating-point
values the intrinsics use f32/f64 instead of float/double.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41189
91177308-0d34-0410-b5e6-
96231b3b80d8
Duncan Sands [Mon, 20 Aug 2007 17:14:02 +0000 (17:14 +0000)]
Fix this test for gcc-4.2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41187
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 20 Aug 2007 15:18:24 +0000 (15:18 +0000)]
Partial implementation of calling functions with byval arguments:
*) The needed information is propagated to the DAG
*) The X86-64 backend detects it and aborts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41179
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 20 Aug 2007 02:14:33 +0000 (02:14 +0000)]
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41178
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Mon, 20 Aug 2007 00:56:12 +0000 (00:56 +0000)]
update the xcode project file, patch by Gordon Henriksen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41175
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 19 Aug 2007 22:22:54 +0000 (22:22 +0000)]
Fix PR1611 - Visibility should be ignored for a declaration
when a definition's visibility is different. Likewise, the
visibility of two declarations mismatching is not an error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41174
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 19 Aug 2007 22:15:26 +0000 (22:15 +0000)]
simplify code and print visibility for declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41173
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 19 Aug 2007 20:45:10 +0000 (20:45 +0000)]
add mips target to builder. I'd appreciate it if someone with
the right version of autoconf could regenerate the configure script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41172
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 18 Aug 2007 23:21:28 +0000 (23:21 +0000)]
Oops, remove assert that wasn't meant to be committed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41170
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 18 Aug 2007 23:18:03 +0000 (23:18 +0000)]
Never insert duplicate edges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41169
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 18 Aug 2007 15:08:56 +0000 (15:08 +0000)]
Typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41168
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sat, 18 Aug 2007 14:46:55 +0000 (14:46 +0000)]
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41167
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 18 Aug 2007 06:14:52 +0000 (06:14 +0000)]
Compute the argument list as lazily as possible. This ensures that clients
that don't use it don't have to pay the memory cost for the arguments. This
allows us to avoid creating Argument nodes for many prototypes and for clients
who lazily deserialize code from a bytecode file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41166
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 18 Aug 2007 06:13:19 +0000 (06:13 +0000)]
use a nicer accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41165
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 18 Aug 2007 06:11:57 +0000 (06:11 +0000)]
Test dag xform: Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41164
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Sat, 18 Aug 2007 05:57:05 +0000 (05:57 +0000)]
Fold C ? 0 : 1 to ~C or zext(~C) or trunc(~C) depending the types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41163
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:37:46 +0000 (02:37 +0000)]
MipsHi now has ouput flag
MipsAdd SDNode created to add support to an Add opcode which supports input flag
Added an instruction itinerary to all instruction classes
Added branches with zero cond codes
Now call clobbers all non-callee saved registers
Call w/ register support added
Added DelaySlot to branch and load instructions
Added patterns to handle all setcc, brcond/setcc and MipsAdd instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41161
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:19:09 +0000 (02:19 +0000)]
Fixed stack frame addressing bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41160
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:18:07 +0000 (02:18 +0000)]
support for Schedule included on Mips.td
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41159
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:16:30 +0000 (02:16 +0000)]
Removed LowerRETURADDR, fixed small bug into LowerRET, LowerGlobalAddress
fixed to generate instructions (add, lui) glued!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41158
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:05:24 +0000 (02:05 +0000)]
Couple of small changes. Delay Slot handle header declared.
Newline added after macros at function init on generated asm!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41157
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 02:01:28 +0000 (02:01 +0000)]
Added InstrItinClass support for instruction formats
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41156
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:59:45 +0000 (01:59 +0000)]
Branch Analysis and InsertNoop inserted into header files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41155
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:58:15 +0000 (01:58 +0000)]
createMipsDelaySlotFillerPass added to mips codegen runtime
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41154
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:56:48 +0000 (01:56 +0000)]
Added Branch Analysis support
Added InsertNoop support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41153
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:54:09 +0000 (01:54 +0000)]
LowerRETURNADDR removed since it was wrong and does not have utility yet!
MipsAdd opcode added
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41152
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:52:27 +0000 (01:52 +0000)]
InstrItineraryData support on added.
Added Mips3 ISA feature (needed when supporting R4000 machines)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41151
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:50:47 +0000 (01:50 +0000)]
A Pass to insert Nops on intructions with DelaySlot
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41150
91177308-0d34-0410-b5e6-
96231b3b80d8
Bruno Cardoso Lopes [Sat, 18 Aug 2007 01:46:44 +0000 (01:46 +0000)]
Mips generic fallback instruction schedule support!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41149
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Sat, 18 Aug 2007 00:00:32 +0000 (00:00 +0000)]
Avoid spliting loops where two split condition branches are not independent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41148
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 17 Aug 2007 22:02:15 +0000 (22:02 +0000)]
Add loop index split tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41146
91177308-0d34-0410-b5e6-
96231b3b80d8
Devang Patel [Fri, 17 Aug 2007 21:59:16 +0000 (21:59 +0000)]
When one branch of condition is eliminated then head of the other
branch is not necessary immediate dominators of merge blcok in all cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41144
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Fri, 17 Aug 2007 18:02:22 +0000 (18:02 +0000)]
Avoid issue on 64-bit hosts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41143
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 17 Aug 2007 16:49:19 +0000 (16:49 +0000)]
improve iplist comments. Switch iplist from allocating its sentinal object (for
end()) eagerly to allocating it lazily. This saves a lot of memory for JIT applications
that read a module but don't materialize most of the functions (e.g. 62K for 252.eon).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41142
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Fri, 17 Aug 2007 15:13:55 +0000 (15:13 +0000)]
Fix GLIBCXX_DEBUG error of comparing two singular iterators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41139
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 17 Aug 2007 05:45:26 +0000 (05:45 +0000)]
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41138
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Fri, 17 Aug 2007 05:44:59 +0000 (05:44 +0000)]
Fix PR1606:
The AC_CHECK_HEADER macro was used instead of AC_CHECK_HEADERS. The former does
not automatically add a #define to the configure variables while the latter
does. Consequently, the HAVE_PTHREAD_H symbol was not defined which caused the
Mutex.cpp file to compile to an empty implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41137
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 23:52:23 +0000 (23:52 +0000)]
New test. Make sure dynamic_stackalloc size is rounded up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41135
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 23:51:28 +0000 (23:51 +0000)]
Update test: dynamic_stackalloc size *must* be rounded to ensure stack ptr be left in a valid state.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41134
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 23:50:06 +0000 (23:50 +0000)]
If dynamic_stackalloc alignment is > stack alignment, first issue an instruction to align the stack ptr before the decrement.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41133
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 23:46:29 +0000 (23:46 +0000)]
- If a dynamic_stackalloc alignment requirement is <= stack alignment, then the alignment argument is ignored.
- *Always* round up the size of the allocation to multiples of stack
alignment to ensure the stack ptr is never left in an invalid state after a dynamic_stackalloc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41132
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Aug 2007 22:51:56 +0000 (22:51 +0000)]
Factor out some code into a helper function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41131
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Aug 2007 22:06:45 +0000 (22:06 +0000)]
Fix the verification for overloaded intrinsic types. Check that they are
what they're supposed to be before using them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41130
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Aug 2007 22:02:55 +0000 (22:02 +0000)]
Add some more comments to GVN.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41129
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Thu, 16 Aug 2007 21:57:19 +0000 (21:57 +0000)]
Add MVT::fAny for overloading intrinsics on floating-point types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41128
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Aug 2007 21:27:05 +0000 (21:27 +0000)]
Cache non-local memory dependence analysis. This is a significant compile
time performance win in most cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41126
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Thu, 16 Aug 2007 15:56:55 +0000 (15:56 +0000)]
This adds a bunch of static functions that implement unsigned
two's complement bignum arithmetic. They could be used to
implement much of APInt, but the idea is they are enough to
implement APFloat as well, which the current APInt interface
is not suited for.
Patch by Neil Booth!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41124
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Thu, 16 Aug 2007 13:09:02 +0000 (13:09 +0000)]
add byval test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41123
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 16 Aug 2007 07:47:30 +0000 (07:47 +0000)]
Improve error handling in the linker by:
1. Eliminate redundant error messages. LinkInFile and LinkInArchive
already call the error() method in each case so there's no use
telling the user again that an item couldn't be linked in.
2. Improve the formatting of error messages (separating content).
3. Change the wording for the warning about unrecognized files. Make
it clear that the file is being ignored.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41121
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 07:25:37 +0000 (07:25 +0000)]
Comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41119
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Thu, 16 Aug 2007 07:24:22 +0000 (07:24 +0000)]
Fix some kill info update bugs; add hidden option -disable-rematerialization to turn off remat for debugging.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41118
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 16 Aug 2007 07:23:37 +0000 (07:23 +0000)]
Ensure that error messages a propagated from calls to LinkInModule so they get
reported to the end user.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41117
91177308-0d34-0410-b5e6-
96231b3b80d8
Reid Spencer [Thu, 16 Aug 2007 07:22:43 +0000 (07:22 +0000)]
Add a test to ensure that obvious link messages are actually produced on
the standard error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41116
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Aug 2007 00:25:42 +0000 (00:25 +0000)]
Forgot a line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41115
91177308-0d34-0410-b5e6-
96231b3b80d8
Owen Anderson [Thu, 16 Aug 2007 00:18:32 +0000 (00:18 +0000)]
Add a copy constructor and an assignment operator to DenseMap.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41114
91177308-0d34-0410-b5e6-
96231b3b80d8
Lauro Ramos Venancio [Wed, 15 Aug 2007 22:13:27 +0000 (22:13 +0000)]
Implement FPOWI ExpandOp.
Fix PR1287.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41112
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 15 Aug 2007 21:12:30 +0000 (21:12 +0000)]
Properly use const qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41111
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 15 Aug 2007 20:30:10 +0000 (20:30 +0000)]
Test case for PR1609.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41110
91177308-0d34-0410-b5e6-
96231b3b80d8
Evan Cheng [Wed, 15 Aug 2007 20:20:34 +0000 (20:20 +0000)]
If the source of a move is in spill slot, the reload may be folded to essentially a load from stack slot. It's ok to mark the stack slot value as available for reuse. But it should not be clobbered since the destination of the move is live.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41109
91177308-0d34-0410-b5e6-
96231b3b80d8
David Greene [Wed, 15 Aug 2007 17:58:51 +0000 (17:58 +0000)]
Update .cvs file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41106
91177308-0d34-0410-b5e6-
96231b3b80d8
Anton Korobeynikov [Wed, 15 Aug 2007 17:12:32 +0000 (17:12 +0000)]
Move ReturnAddrIndex variable to X86MachineFunctionInfo structure. This fixed
hard to catch bugs with retaddr lowering
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41104
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Wed, 15 Aug 2007 16:58:38 +0000 (16:58 +0000)]
add a note.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41103
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Aug 2007 14:03:58 +0000 (14:03 +0000)]
svn propdel the svn:mime-type property of application/x-troff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41102
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Aug 2007 13:55:47 +0000 (13:55 +0000)]
This test used "wc | grep ..."; convert it to use the count script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41101
91177308-0d34-0410-b5e6-
96231b3b80d8
Dan Gohman [Wed, 15 Aug 2007 13:49:33 +0000 (13:49 +0000)]
Convert tests using "grep -c ... | grep ..." to use the count script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41100
91177308-0d34-0410-b5e6-
96231b3b80d8