summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement some framework for defaulted constructors.Alexis Hunt2011-05-0511-15/+78
| | | | | | There's some unused stuff for now. llvm-svn: 130912
* Update the gcov version used slightly, to make it stop causing modern gcov's toNick Lewycky2011-05-052-15/+35
| | | | | | crash. llvm-svn: 130911
* Always try and lookup the address in a register if it is encoded as anGreg Clayton2011-05-051-13/+5
| | | | | | | integer and the register byte size matches the size of a pointer. This removes the "--lookup" option. llvm-svn: 130910
* Frontend: Fix a crash in CC_LOG_DIAGNOSTICS handling.Daniel Dunbar2011-05-052-5/+11
| | | | llvm-svn: 130909
* Fix the "target stop-hook add" input reader so that it won't say the stop ↵Jim Ingham2011-05-051-1/+6
| | | | | | hook was added if the input was interrupted. llvm-svn: 130907
* Look through block pointers and ObjC object pointersMatt Beaumont-Gay2011-05-051-4/+3
| | | | llvm-svn: 130906
* Add a test script for verifying that the convenience variables:Johnny Chen2011-05-054-0/+103
| | | | | | | | | | | | o lldb.debugger o lldb.target o lldb.process o lldb.thread o lldb.frame "just works" when we stop at a breakpoint. llvm-svn: 130904
* Remove dead function.Nick Lewycky2011-05-051-5/+0
| | | | llvm-svn: 130903
* With invalid overloaded operators, we can get into funny cases whereDouglas Gregor2011-05-052-4/+22
| | | | | | | | | | the overloading of member and non-member functions results in arity mismatches that don't fit well into our overload-printing scheme. This only happens for invalid code (which breaks the arity invariants for these cases), so just suppress the diagnostic rather than inventing anything new. Fixes <rdar://problem/9222009>. llvm-svn: 130902
* Preserve the full name of the file, so that '-c -o foo.pic.o' producesNick Lewycky2011-05-056-20/+17
| | | | | | foo.pic.gcno instead of foo.gcno. llvm-svn: 130899
* Change cycle detection to be based off of a warning flag.Alexis Hunt2011-05-057-22/+13
| | | | llvm-svn: 130898
* When the path wasn't emitted by the frontend, discard any path on the sourceNick Lewycky2011-05-051-6/+11
| | | | | | filename. llvm-svn: 130897
* Disable physical register coalescing by default.Jakob Stoklund Olesen2011-05-041-1/+1
| | | | | | | | | | | | Joining physregs is inherently dangerous because it uses a heuristic to avoid creating invalid code. Linear scan had an emergency spilling mechanism to deal with those rare cases. The new greedy allocator does not. The greedy register allocator is much better at taking hints, so this has almost no impact on code size and quality. The few cases where it matters show up as unit tests that now have -join-physregs enabled explicitly. llvm-svn: 130896
* Set debug loc for new instructions.Devang Patel2011-05-041-3/+3
| | | | llvm-svn: 130895
* Set debug location for new PHI nodes created in exit block. Devang Patel2011-05-041-0/+2
| | | | llvm-svn: 130894
* Prepare remaining tests for -join-physreg going away.Jakob Stoklund Olesen2011-05-0415-34/+48
| | | | llvm-svn: 130893
* Fix X86RegisterInfo::getMatchingSuperRegClass for sub_8bit_hi.Jakob Stoklund Olesen2011-05-041-13/+8
| | | | | | | It is OK for B to be any GR8_ABCD_H superclass, the returned register class doesn't have to map surjectively onto B. llvm-svn: 130892
* Fix a batch of x86 tests to be coalescer independent.Jakob Stoklund Olesen2011-05-047-29/+38
| | | | | | | | Most of these tests require a single mov instruction that can come either before or after a 2-addr instruction. -join-physregs changes the behavior, but the results are equivalent. llvm-svn: 130891
* When adding KVC code completions, keep track of all of the selectorsDouglas Gregor2011-05-042-23/+46
| | | | | | | that we've previously seen, both in declared methods and from previous KVC completions, to eliminate duplicates. Fixes <rdar://problem/9162207>. llvm-svn: 130890
* Document the automatic alias printing of InstAliases.Bill Wendling2011-05-041-0/+5
| | | | llvm-svn: 130889
* there i fixed itAlexis Hunt2011-05-047-62/+142
| | | | | | | | | Increase robustness of the delegating constructor cycle detection mechanism. No more infinite loops on invalid or logic errors leading to false results. Ensure that this is maintained correctly accross serialization. llvm-svn: 130887
* ASTUnit::LoadFromASTFile(): recover the resources from an ASTReader if it ↵Ted Kremenek2011-05-041-0/+10
| | | | | | crashes during PCH validation. llvm-svn: 130886
* Add explicit 'unregister' method to CrashRecoveryConextCleanupRegistrar.Ted Kremenek2011-05-041-1/+6
| | | | llvm-svn: 130885
* Give this test an explicit register allocator, so that it can work even ifDan Gohman2011-05-041-1/+1
| | | | | | the default register allocator is changed. llvm-svn: 130883
* Clean up Sema::BuildCXXNestedNameSpecifier()'s creation of TypeLocDouglas Gregor2011-05-041-7/+15
| | | | | | | | information. Rather than looking at the declaration kind to figure out what TypeLoc to build, look at the type; it makes so much more sense. Fixes <rdar://problem/9086649>. llvm-svn: 130882
* SjLj EH could produce a machine basic block that legitimately has more than oneBill Wendling2011-05-042-1/+102
| | | | | | | | | | | | | landing pad as its successor. SjLj exception handling jumps to the correct landing pad via a switch statement that's generated right before code-gen. Loosen the constraint in the machine instruction verifier to allow for this. Note, this isn't the most rigorous check since we cannot determine where that switch statement came from. But it's marginally better than turning this check off when SjLj exceptions are used. <rdar://problem/9187612> llvm-svn: 130881
* Preserve line number information while threading jumps.Devang Patel2011-05-041-2/+5
| | | | llvm-svn: 130880
* Create the parent directories to place the .gcda files in if they don't exist.Nick Lewycky2011-05-041-0/+18
| | | | | | | That's kinda weird because the .gcno files are supposed to already be there, but libgcov does this and somehow Google has managed to depend on it. llvm-svn: 130879
* Implement Sema::isExprCallable.Matt Beaumont-Gay2011-05-044-111/+156
| | | | | | | | We can use this to produce nice diagnostics (and try to fixit-and-recover) in various cases where we might see "MyFunction" instead of "MyFunction()". The changes in SemaExpr are an example of how to use isExprCallable. llvm-svn: 130878
* Re-commit r130862 with a minor change to avoid an iterator running off the ↵Eli Friedman2011-05-043-29/+73
| | | | | | | | | | edge in some cases. Original message: Teach MachineCSE how to do simple cross-block CSE involving physregs. This allows, for example, eliminating duplicate cmpl's on x86. Part of rdar://problem/8259436 . llvm-svn: 130877
* Preserve line number info.Devang Patel2011-05-041-1/+4
| | | | llvm-svn: 130876
* This test fails on ARM. The test shouldn't explicitly specify alignment (and ↵Galina Kistanova2011-05-041-4/+4
| | | | | | alignment 4 is wrong) and requires hard-float. llvm-svn: 130875
* If builder is initialized using an instruction as insertion point, then use ↵Devang Patel2011-05-041-0/+1
| | | | | | the instruction's debug location as current debug location. llvm-svn: 130874
* When converting an integral template argument value to a non-typeDouglas Gregor2011-05-042-15/+32
| | | | | | | template parameter of type 'bool', force the value to be zero or one. Fixes <rdar://problem/9169404>. llvm-svn: 130873
* <rdar://problem/9014045> more support for Apple internal build environmentsNick Kledzik2011-05-041-5/+18
| | | | llvm-svn: 130872
* Add ability to search backwards through commandCaroline Tice2011-05-041-2/+3
| | | | | | history for a particular substring, using ctrl-r key. llvm-svn: 130871
* Pack ivar offsets together.Bill Wendling2011-05-044-20/+20
| | | | | | | | | | Ivar offsets for synthesized ivars are wrong, which could end up with a large number of dirty pages because of ivar fixups at runtime. When we pack all of the synthesized ivars into the same section, it limits the number of dirty pages created. Place them in the "__DATA,__objc_ivar" section. <rdar://problem/9374905> llvm-svn: 130870
* preserve line number info.Devang Patel2011-05-041-2/+3
| | | | llvm-svn: 130869
* Back out r130862; it appears to be breaking bootstrap.Eli Friedman2011-05-043-67/+29
| | | | llvm-svn: 130867
* Record where the GCOV data files should be placed.Nick Lewycky2011-05-046-0/+43
| | | | llvm-svn: 130866
* Use '-f c' to print each element of a string as a char.Johnny Chen2011-05-041-1/+1
| | | | llvm-svn: 130865
* Simplification noticed by Chris.Bill Wendling2011-05-041-3/+2
| | | | llvm-svn: 130864
* Teach MachineCSE how to do simple cross-block CSE involving physregs. This ↵Eli Friedman2011-05-043-29/+67
| | | | | | allows, for example, eliminating duplicate cmpl's on x86. Part of rdar://problem/8259436 . llvm-svn: 130862
* tests: Tweak test to at least use a standard arch, to ensure we try to invokeDaniel Dunbar2011-05-041-1/+1
| | | | | | Clang. llvm-svn: 130861
* Remove an unused variable.Duncan Sands2011-05-041-1/+0
| | | | llvm-svn: 130860
* Fix more register and coalescing dependencies.Jakob Stoklund Olesen2011-05-044-9/+7
| | | | llvm-svn: 130859
* Explicitly request physreg coalesing for a bunch of Thumb2 unit tests.Jakob Stoklund Olesen2011-05-047-7/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | These tests all follow the same pattern: mov r2, r0 movs r0, #0 $CMP r2, r1 it eq moveq r0, #1 bx lr The first 'mov' can be eliminated by rematerializing 'movs r0, #0' below the test instruction: $CMP r0, r1 mov.w r0, #0 it eq moveq r0, #1 bx lr So far, only physreg coalescing can do that. The register allocators won't yet split live ranges just to eliminate copies. They can learn, but this particular problem is not likely to show up in real code. It only appears because r0 is used for both the function argument and return value. llvm-svn: 130858
* Implement SystemZRegisterInfo::getMatchingSuperRegClass to enable ↵Jakob Stoklund Olesen2011-05-042-0/+18
| | | | | | cross-class joins. llvm-svn: 130857
* FileCheckize and break dependence on coalescing order.Jakob Stoklund Olesen2011-05-041-8/+6
| | | | llvm-svn: 130856
* Explicitly request -join-physregs for some tests that depend on it.Jakob Stoklund Olesen2011-05-042-2/+2
| | | | llvm-svn: 130855
OpenPOWER on IntegriCloud