summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert commit 126684 "Use the correct shift amount type". It is only the ↵Duncan Sands2011-03-041-1/+1
| | | | | | | | | | | correct type after type legalization has completed. Before then it may simply not be big enough to hold the shift amount, particularly on x86 which uses a very small type for shifts (this issue broke stuff in the past which is why LegalizeTypes carefully uses a large type for shift amounts). llvm-svn: 127000
* Fixed source range for ClassTemplateSpecializationDecl.Abramo Bagnara2011-03-043-3/+18
| | | | llvm-svn: 126999
* Allow vector shifts (shl,lshr,ashr) on SPU.Kalle Raiskila2011-03-042-54/+71
| | | | | | | | | There was a previous implementation with patterns that would have matched e.g. shl <v4i32> <i32>, but this is not valid LLVM IR so they never were selected. llvm-svn: 126998
* Move private structs into anonymous namespaces.Benjamin Kramer2011-03-042-23/+25
| | | | llvm-svn: 126997
* Improved TemplateTypeParmDecl end location.Abramo Bagnara2011-03-044-6/+18
| | | | llvm-svn: 126996
* Allow load from constant on SPU.Kalle Raiskila2011-03-043-1/+21
| | | | | | A 'load <4 x i32>* null' crashes llc before this fix. llvm-svn: 126995
* Fixed end location of NonTypeTemplateParamDecl.Abramo Bagnara2011-03-042-2/+5
| | | | llvm-svn: 126994
* Fixed end location of FriendDecl.Abramo Bagnara2011-03-041-0/+11
| | | | llvm-svn: 126993
* Don't consider visibility from template parameter lists if we'reJohn McCall2011-03-042-5/+23
| | | | | | | | | computing for a nested decl with explicit visibility. This is all part of the general philosophy of explicit visibility attributes, where any information that was obviously available at the attribute site should probably be ignored. Fixes PR9371. llvm-svn: 126992
* Fold "icmp pred (srem X, Y), Y" like we do for urem. Handle signed comparisonsNick Lewycky2011-03-043-3/+59
| | | | | | | in the urem case, though not the other way around. This is enough to get #3 from PR9343! llvm-svn: 126991
* Access ivars with inbounds GEPs, even in -fwrapv. It's unlikely thatJohn McCall2011-03-041-1/+1
| | | | | | | this can have any optimization effect, given the opacity of objects pointers, but you never know. llvm-svn: 126990
* Let's do super message sends with static allocas instead of dynamic ones.John McCall2011-03-041-2/+2
| | | | llvm-svn: 126989
* Teach instruction simplify to use constant ranges to solve problems of the formNick Lewycky2011-03-042-41/+137
| | | | | | | | | "icmp pred %X, CI" and a number of examples where "%X = binop %Y, CI2". Some of these cases (div and rem) used to make it through opt -O2, but the others are probably now making code elsewhere redundant (probably instcombine). llvm-svn: 126988
* Followup to r126970: add 64-bit encoding tests for str with reg operand.Eli Friedman2011-03-041-0/+16
| | | | llvm-svn: 126987
* Make AttributedTypes for GC-qualified types and fix some miscellaneousJohn McCall2011-03-044-10/+89
| | | | | | | bugs with such types. Not sure this is quite how I want the desugaring and a.k.a. logic to go, but it suffices. llvm-svn: 126986
* DenseMap<uintptr_t,...> doesn't allow all values as keys.Jakob Stoklund Olesen2011-03-041-0/+2
| | | | | | | Avoid colliding with the sentinels, hopefully unbreaking llvm-gcc-x86_64-linux-selfhost. llvm-svn: 126982
* Minor pre-RA-sched fixes and cleanup.Andrew Trick2011-03-041-7/+15
| | | | | | | | Fix the PendingQueue, then disable it because it's not required for the current schedulers' heuristics. Fix the logic for the unused list-ilp scheduler. llvm-svn: 126981
* Add objc source file and Makefile. Test case to follow.Johnny Chen2011-03-042-0/+53
| | | | llvm-svn: 126980
* Add the ability for the test suite to specify a list of compilers and a list ↵Johnny Chen2011-03-043-31/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of architectures on the command line. For example, use '-A x86_64^i386' to launch the inferior use both x86_64 and i386. This is an example of building the debuggee using both clang and gcc compiers: [17:30:46] johnny:/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -C clang^gcc -v -f SourceManagerTestCase.test_modify_source_file_while_debugging Session logs for test failures/errors will go into directory '2011-03-03-17_31_39' Command invoked: python ./dotest.py -C clang^gcc -v -f SourceManagerTestCase.test_modify_source_file_while_debugging Configuration: compiler=clang ---------------------------------------------------------------------- Collected 1 test 1: test_modify_source_file_while_debugging (TestSourceManager.SourceManagerTestCase) Modify a source file while debugging the executable. ... Command 'run' failed! original content: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello world.\n"); // Set break point at this line. return 0; } new content: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello lldb.\n"); // Set break point at this line. return 0; } os.path.getmtime() after writing new content: 1299202305.0 content restored to: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello world.\n"); // Set break point at this line. return 0; } os.path.getmtime() after restore: 1299202307.0 ok ---------------------------------------------------------------------- Ran 1 test in 8.259s OK Configuration: compiler=gcc ---------------------------------------------------------------------- Collected 1 test 1: test_modify_source_file_while_debugging (TestSourceManager.SourceManagerTestCase) Modify a source file while debugging the executable. ... original content: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello world.\n"); // Set break point at this line. return 0; } new content: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello lldb.\n"); // Set break point at this line. return 0; } os.path.getmtime() after writing new content: 1299202307.0 content restored to: #include <stdio.h> int main(int argc, char const *argv[]) { printf("Hello world.\n"); // Set break point at this line. return 0; } os.path.getmtime() after restore: 1299202309.0 ok ---------------------------------------------------------------------- Ran 1 test in 2.301s OK [17:31:49] johnny:/Volumes/data/lldb/svn/trunk/test $ llvm-svn: 126979
* Add ArrayRef variant.Devang Patel2011-03-042-0/+6
| | | | llvm-svn: 126978
* Correctly handle nested switch statements in CFGBuilder when on switch ↵Ted Kremenek2011-03-042-11/+25
| | | | | | statement has a condition that evaluates to a constant. llvm-svn: 126977
* Precompute block frequencies, pow() isn't free.Jakob Stoklund Olesen2011-03-043-17/+15
| | | | llvm-svn: 126975
* Expose ConnectRemote API through SBTarget and SBProcess.James McIlree2011-03-044-0/+144
| | | | | | Patch verified by Greg Clayton prior to checkin. llvm-svn: 126974
* Fixed a bug in the expression parser where the 'this'Sean Callanan2011-03-041-30/+64
| | | | | | | or 'self' variable was not properly read if the compiler optimized it into a register. llvm-svn: 126973
* Use an IndexedMap instead of a DenseMap for the live-out cache.Jakob Stoklund Olesen2011-03-043-48/+56
| | | | | | | This speeds up updateSSA() so it only accounts for 5% of the live range splitting time. llvm-svn: 126972
* PR9377: Handle x86 str with register operand in a way consistent with gas.Eli Friedman2011-03-042-4/+17
| | | | llvm-svn: 126970
* There are times when the landing pad won't have a call to 'eh.selector' inBill Wendling2011-03-032-11/+26
| | | | | | | | | | | | | | it. It's been assumed up til now that it would be in its immediate successor. However, this isn't necessarily the case. It could be in one of its successor's successors. Modify the code to more thoroughly check for an 'eh.selector' call in successors. It only looks at a successor if we get there as a result of an unconditional branch. Testcase ObjC/exceptions-4.m in r126968. llvm-svn: 126969
* PR8053: Fix encoding of S bit in some ARM instructions.Bob Wilson2011-03-031-1/+1
| | | | | | Patch by Zonr Chang! llvm-svn: 126967
* -Woverloaded-virtual shouldn't warn for static functions. Fixes ↵Argyrios Kyrtzidis2011-03-032-1/+14
| | | | | | rdar://9083431 & http://llvm.org/PR9396. llvm-svn: 126966
* Add code to emulate RFE Arm instruction.Caroline Tice2011-03-033-3/+243
| | | | | | | | | Add new instruction context for RFE instruction. Add several new helper functions to help emulate RFE instruction (including CurrentModeIsPrivileged, BadMode, and CPSRWriteByInstr). llvm-svn: 126965
* Revert r123908; the code in question is completely untested and wrong.Eli Friedman2011-03-033-56/+0
| | | | llvm-svn: 126964
* Bug#9033: For the ELF assembler output, always quote the section name.Joerg Sonnenberger2011-03-0317-37/+61
| | | | llvm-svn: 126963
* Fix typo.Devang Patel2011-03-031-1/+1
| | | | llvm-svn: 126962
* Fix PR9390 in not one, but two ways:Douglas Gregor2011-03-032-2/+2
| | | | | | | | | | | | | | 1) When we do an instantiation of the injected-class-name type, provide a proper source location. This is just plain good hygiene. 2) When we're building a NestedNameSpecifierLoc from a CXXScopeSpec, only return an empty NestedNameSpecifierLoc if there's no representation. Both problems contributed to the horrible test case in PR9390 that I couldn't reduce down to something palatable. llvm-svn: 126961
* Encode argument numbering in debug info so that code generator can emit them ↵Devang Patel2011-03-035-20/+27
| | | | | | | | in order. This fixes few blocks.exp regressions. llvm-svn: 126960
* Fix thinko in previous check-in.Devang Patel2011-03-031-1/+3
| | | | | | Add comment. llvm-svn: 126959
* llvm::Function argument count is not a good indicator of how many arugments ↵Devang Patel2011-03-031-1/+4
| | | | | | does the function have at source level. If we need more space, just resize vector conservatively. This vector is only used once per function. llvm-svn: 126957
* Allow a target to choose whether to prefer the scavenger emergency spill slotJim Grosbach2011-03-032-7/+13
| | | | | | be next to the frame pointer or the stack pointer. llvm-svn: 126956
* Add TestDisasmAPI.py which exercises the newly added ↵Johnny Chen2011-03-035-10/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SBFunction/SBSymbol.GetStartAddress(), among other things: // When stopped on breakppint 1, we can get the line entry using SBFrame API // SBFrame.GetLineEntry(). We'll get the start address for the the line entry // with the SBAddress type, resolve the symbol context using the SBTarget API // SBTarget.ResolveSymbolContextForAddress() in order to get the SBSymbol. // // We then stop at breakpoint 2, get the SBFrame, and the the SBFunction object. // // The address from calling GetStartAddress() on the symbol and the function // should point to the same address, and we also verify that. And add one utility function disassemble(target, function_or_symbol) to lldbutil.py: """Disassemble the function or symbol given a target. It returns the disassembly content in a string object. """ TestDisasm.py uses the disassemble() function to do disassembly on the SBSymbol, and then the SBFunction object. llvm-svn: 126955
* Add code to emulate UXTH Arm instruction.Caroline Tice2011-03-031-2/+87
| | | | llvm-svn: 126954
* Add code to emulate UXTB Arm instruction.Caroline Tice2011-03-031-6/+92
| | | | llvm-svn: 126953
* Fixed source range for LabelDecl.Abramo Bagnara2011-03-036-12/+20
| | | | llvm-svn: 126952
* Add code to emulate SXTH Arm instruction.Caroline Tice2011-03-031-5/+93
| | | | llvm-svn: 126951
* Don't emit unused warning for deleted functions. Fixes rdar://8365684 & ↵Argyrios Kyrtzidis2011-03-032-1/+5
| | | | | | http://llvm.org/PR9391. llvm-svn: 126950
* Add code to emulate SXTB Arm instruction.Caroline Tice2011-03-031-4/+101
| | | | llvm-svn: 126949
* Finish updated testDouglas Gregor2011-03-031-2/+2
| | | | llvm-svn: 126948
* Add coverage test for CFGImplicitDtor::getDestructorDecl() when handling ↵Ted Kremenek2011-03-031-0/+9
| | | | | | typedefs. llvm-svn: 126947
* Eliminate redundant nested-name-specifiers onDouglas Gregor2011-03-033-2/+24
| | | | | | TemplateSpecializationTypes, which also fixes PR9388. llvm-svn: 126946
* Removed left brace location from LinkageSpecDecl.Abramo Bagnara2011-03-035-14/+5
| | | | llvm-svn: 126945
* Fixed end source location for LinkageSpecDecl.Abramo Bagnara2011-03-036-22/+44
| | | | llvm-svn: 126943
OpenPOWER on IntegriCloud