Chris Lattner
05a23b1e61
silence a conditional assignment -Wuninitialized warning.
...
llvm-svn: 127453
2011-03-11 02:12:51 +00:00
Jim Ingham
bad87feca2
CommandInterpreter::HandleCommands should take its commands as a "const StringList &" since it doesn't modify it...
...
Also, don't turn on the immediate output in the temporary result, or you'll get doubled output.
llvm-svn: 127452
2011-03-11 01:51:49 +00:00
Jim Ingham
e1e96027a6
Fix a few things in the CommandArguments table.
...
llvm-svn: 127451
2011-03-11 01:50:30 +00:00
Jim Ingham
b2605bc96d
Declare some const functions as const.
...
llvm-svn: 127450
2011-03-11 01:48:52 +00:00
Jim Ingham
17de754181
Fix a typo in a comment.
...
llvm-svn: 127449
2011-03-11 01:48:09 +00:00
Jim Grosbach
eb52c23646
Make the register enum value part of the CodeGenRegister struct.
...
llvm-svn: 127448
2011-03-11 01:33:54 +00:00
Jim Grosbach
f910bf29a9
Trailing whitespace.
...
llvm-svn: 127447
2011-03-11 01:27:24 +00:00
Jim Grosbach
b1ac770fa3
Trailing whitespace.
...
llvm-svn: 127446
2011-03-11 01:19:05 +00:00
Jim Grosbach
d0fc231e13
Tidy up since ARM MOVCCi and MOVCCi16 are now pseudos.
...
llvm-svn: 127445
2011-03-11 01:16:49 +00:00
Johnny Chen
fdc94ff97e
Add test cases to exercise the SBThread.GetProcess() API. We launch the process using the
...
SBTarget.Launch() API, stop at a breakpoint, get the stopped thread, and verify that the
pid of the stopped thread's process is equal to the pid of the process returned by
SBTarget.Launch().
llvm-svn: 127444
2011-03-11 01:16:03 +00:00
Jim Grosbach
d025498271
Properly pseudo-ize ARM MOVCCi and MOVCCi16.
...
llvm-svn: 127442
2011-03-11 01:09:28 +00:00
Eric Christopher
cf56a5034f
Change the x86 32-bit scheduler to register pressure and fix up the
...
corresponding testcases back to the previous versions.
Fixes some performance regressions only seen on 32-bit.
llvm-svn: 127441
2011-03-11 01:05:58 +00:00
Evan Cheng
adb9c03e41
Avoid replacing the value of a directly stored load with the stored value if the load is indexed. rdar://9117613.
...
llvm-svn: 127440
2011-03-11 00:48:56 +00:00
Johnny Chen
24e99aa833
Minor typo fix and TAB removals.
...
llvm-svn: 127439
2011-03-11 00:28:50 +00:00
Caroline Tice
c288e8ca0c
Add some explanatory comments.
...
llvm-svn: 127438
2011-03-11 00:21:55 +00:00
Johnny Chen
2d799cca03
Add a test case test_run_to_address() to exercise the SBThread.RunToAddress(lldb::addr_t addr) API.
...
The test itself is not working yet.
llvm-svn: 127436
2011-03-11 00:00:15 +00:00
Jim Grosbach
62a7b473af
Properly pseudo-ize MOVCCr and MOVCCs.
...
llvm-svn: 127434
2011-03-10 23:56:09 +00:00
Sean Callanan
b3396b226e
Fixed the -r parameter to the disassemble command
...
so that it actually triggers raw output.
llvm-svn: 127433
2011-03-10 23:35:12 +00:00
Johnny Chen
f93286f20c
Add test cases to TestThreadAPI.py to exercise SBThread.StepOver() by stopping at a breakpoint,
...
doing three step-over's, then verifying that the correct source line number is reached.
llvm-svn: 127432
2011-03-10 22:32:47 +00:00
Caroline Tice
b904ca5015
Add a test case to make sure that all the settings that currently ought to
...
exist are actually there.
llvm-svn: 127431
2011-03-10 22:29:54 +00:00
Caroline Tice
20bd37f747
The UserSettings controllers must be initialized & terminated in the
...
correct order. Previously this was tacitly implemented but not
enforced, so it was possible to accidentally do things in the wrong
order and cause problems. This fixes that problem.
llvm-svn: 127430
2011-03-10 22:14:10 +00:00
Chris Lattner
15bc34c7c2
don't compile modsi3 into an infinite loop, patch by Matt Johnson!
...
llvm-svn: 127429
2011-03-10 22:11:46 +00:00
Ted Kremenek
339f7c3c58
Tweak ccc-analyzer's 'Analyze' function to not mutate the original arguments list.
...
llvm-svn: 127428
2011-03-10 21:10:08 +00:00
Dan Gohman
affbc66f60
RecursivelyDeleteTriviallyDeadInstructions only needs a
...
Value, not an Instruction, so casting is not necessary. Also,
it's theoretically possible that the Value is not an
Instruction, since WeakVH follows RAUWs.
llvm-svn: 127427
2011-03-10 20:57:44 +00:00
Rafael Espindola
cbe6a1ae86
Don't compute the file size if we don't need to.
...
llvm-svn: 127426
2011-03-10 20:54:07 +00:00
Ted Kremenek
4c0826c236
Profiling showed that 'CheckImplicitConversions' was very slow because of the call to getSpellingLoc(). On 'aes.c'
...
in the LLVM test suite, this function was consuming 7.4% of -fsyntax-only time. This change fixes this issue
by delaying the check that the warning would be issued within a system macro by as long as possible. The
main negative of this change is now the logic for this check is done in multiple places in this function instead
of just in one place up front.
llvm-svn: 127425
2011-03-10 20:03:42 +00:00
Dan Gohman
154ed49784
Fix reassociate to postpone certain instruction deletions until
...
after it has finished all of its reassociations, because its
habit of unlinking operands and holding them in a datastructure
while working means that it's not easy to determine when an
instruction is really dead until after all its regular work is
done. rdar://9096268.
llvm-svn: 127424
2011-03-10 19:51:54 +00:00
Jim Grosbach
e5ccac85d3
DMB can just be a pat referencing MCR.
...
llvm-svn: 127423
2011-03-10 19:27:17 +00:00
Jim Grosbach
b75c0db9d2
Reorganize a bit. No functional change, just moving patterns up.
...
llvm-svn: 127422
2011-03-10 19:21:08 +00:00
Johnny Chen
d9f2c08a0a
Test cleanup. Check for the full caller symbol of malloc -- b(int).
...
llvm-svn: 127421
2011-03-10 19:18:04 +00:00
Jim Grosbach
e175682781
Pseudo-instructions are codegenonly by definition.
...
llvm-svn: 127420
2011-03-10 19:06:39 +00:00
Jim Grosbach
a186cadcaa
Memory barrier instructions don't need special handling in tblgen anymore.
...
llvm-svn: 127419
2011-03-10 19:05:48 +00:00
Benjamin Kramer
b49b964b98
InstCombine: Turn umul_with_overflow into mul nuw if we can prove that it cannot overflow.
...
This happens a lot in clang-compiled C++ code because it adds overflow checks to operator new[]:
unsigned *foo(unsigned n) { return new unsigned[n]; }
We can optimize away the overflow check on 64 bit targets because (uint64_t)n*4 cannot overflow.
llvm-svn: 127418
2011-03-10 18:40:14 +00:00
Rafael Espindola
258a605fce
Add r127409 back now that the windows file was updated.
...
llvm-svn: 127417
2011-03-10 18:33:29 +00:00
Rafael Espindola
510b00c67c
Try to fix the windows build.
...
llvm-svn: 127416
2011-03-10 18:30:48 +00:00
Jakob Stoklund Olesen
e413d9d341
Revert r127409 which broke all the Windows bots.
...
llvm-svn: 127413
2011-03-10 18:01:43 +00:00
Howard Hinnant
8f934e42d8
http://llvm.org/bugs/show_bug.cgi?id=9444
...
llvm-svn: 127412
2011-03-10 17:27:57 +00:00
Howard Hinnant
8cad46266c
I have to revert this recent fix to tuple conversions until clang implements cwg 1170. Without this fix pair and tuple don't convert properly. With it, associative containers get access errors when they shouldn't. cwg 1170 fixes the latter.
...
llvm-svn: 127411
2011-03-10 17:27:30 +00:00
Justin Holewinski
72ff7e4fa9
PTX: Add preliminary support for floating-point divide and multiply-and-add
...
llvm-svn: 127410
2011-03-10 16:57:18 +00:00
Rafael Espindola
ea5a137e55
Add support for MemoryBuffers that are not null terminated and add
...
support for creating buffers that cover only a part of a file.
llvm-svn: 127409
2011-03-10 16:10:30 +00:00
NAKAMURA Takumi
dd63436808
lib/CodeGen/CGCall.cpp: Don't invoke multiple Builder.CreateBitCast() on Builder.CreateMemCpy. Or we would see sideeffect incompatibility among gcc and clang.
...
llvm-svn: 127405
2011-03-10 14:02:21 +00:00
Abramo Bagnara
0adf29a5bd
Avoid do drop outer template parameter lists on the floor.
...
llvm-svn: 127404
2011-03-10 13:28:31 +00:00
Abramo Bagnara
19fd03e277
Fixed class type generation for MemberPointerType.
...
llvm-svn: 127401
2011-03-10 10:18:27 +00:00
Chris Lattner
0d364306be
rip out llvm 2.8 release notes to make room for llvm 2.9 notes.
...
llvm-svn: 127399
2011-03-10 07:43:44 +00:00
Cameron Zwarich
7930407339
Add an option to disable critical edge splitting in PHIElimination.
...
llvm-svn: 127398
2011-03-10 05:59:17 +00:00
Che-Liang Chiou
6e9fb0d056
ptx: add the rest of special registers of ISA version 2.0
...
llvm-svn: 127397
2011-03-10 04:05:57 +00:00
Ted Kremenek
a099c595bf
When doing reachability analysis for warnings issued under DiagRuntimeBehavior, don't construct a ParentMap or CFGStmtMap.
...
Instead, create a small set of Stmt* -> CFGBlock* mappings during CFG construction for only the statements we care about
relating to the diagnostics we want to check for reachability.
llvm-svn: 127396
2011-03-10 03:50:34 +00:00
Stephen Wilson
1636265248
Add Makefile support for the Platform plugins.
...
This patch supports building the Linux platform plugin, and should also support
the MacOSX plugin as well (the MacOSX side has not been tested, unfortunately).
A small typo was corrected in lldb.cpp to initialize the new platform code on
Linux.
llvm-svn: 127393
2011-03-10 03:08:28 +00:00
Greg Clayton
c574ede632
Centralize the GDB remote timeout value into the GDBRemoteCommunication as a
...
member variable (m_packet_timeout which is a value in seconds). This value is
then used for all packets sent to/from the remote GDB server.
llvm-svn: 127392
2011-03-10 02:26:48 +00:00
Ken Dyck
a1a2e8decb
Instead of round up sizes to '8', round them up to the alignment of the char
...
type.
llvm-svn: 127391
2011-03-10 02:00:35 +00:00