summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Test CXXNoexceptExpr codegen and serialization.Sebastian Redl2010-09-102-0/+23
| | | | llvm-svn: 113630
* Implement CXXNoexceptExpr codegen.Sebastian Redl2010-09-101-0/+4
| | | | llvm-svn: 113629
* Add another small test case.Sebastian Redl2010-09-101-0/+1
| | | | llvm-svn: 113628
* Serialization support for CXXNoexceptExpr.Sebastian Redl2010-09-105-11/+41
| | | | llvm-svn: 113627
* Make 'setProperty()', 'setBase()', and 'setLocation()' private in ↵Ted Kremenek2010-09-101-3/+5
| | | | | | ObjCPropertyRefExpr, and friend ASTStmtReader so that it is the only class that can use them. llvm-svn: 113626
* Tests for noexcept in templates.Sebastian Redl2010-09-101-0/+31
| | | | llvm-svn: 113625
* First version of a testcase, plus fixes.Sebastian Redl2010-09-103-2/+139
| | | | llvm-svn: 113624
* Define and implement CXXNoexceptExpr. Create it in Sema.Sebastian Redl2010-09-1012-5/+89
| | | | llvm-svn: 113623
* Parse the noexcept operator and stub out sema.Sebastian Redl2010-09-104-3/+32
| | | | llvm-svn: 113622
* Implement Expr::CanThrow, a function that applies the noexcept operator ↵Sebastian Redl2010-09-102-2/+213
| | | | | | rules to expressions. llvm-svn: 113621
* Make CallExpr::getCalleeDecl look through pointer derefs.Sebastian Redl2010-09-102-0/+9
| | | | llvm-svn: 113620
* Fix a comment.Sebastian Redl2010-09-101-1/+1
| | | | llvm-svn: 113619
* Add X86 MMX type to bitcode and Type.Dale Johannesen2010-09-1017-11/+64
| | | | | | | (The Ada bindings probably need it too, but all the obvious places to change say "do not edit this file".) llvm-svn: 113618
* <rdar://problem/8279559> [libstdcxx] use new linker options to make symbols ↵Nick Kledzik2010-09-107-8/+4725
| | | | | | non-weak llvm-svn: 113616
* Use StringRef which performs the "early exit" when compared against a constantBill Wendling2010-09-101-6/+1
| | | | | | string. llvm-svn: 113615
* Add DEBUG message.Devang Patel2010-09-102-4/+16
| | | | llvm-svn: 113614
* Polish diagnostics for null dereferences via ObjC ivar accesses. Finishes ↵Ted Kremenek2010-09-102-0/+32
| | | | | | up <rdar://problem/6352035>. llvm-svn: 113612
* There was a check to make sure that the frame had a valid function before ↵Greg Clayton2010-09-101-10/+1
| | | | | | the expression parser would allow decl lookups which was not needed. After removing this you can evaluate expressions correctly when stopped in a frame that only has a symbol or has no symbol context at all. llvm-svn: 113611
* Reapply r113585. The msvc machine is mercurial.Bill Wendling2010-09-101-2/+2
| | | | llvm-svn: 113610
* Fixed the breakage of "breakpoint command add -p 1 2" caused by r113596 asJohnny Chen2010-09-101-2/+2
| | | | | | | pointed out by Jim Ingham. The convenient one-liner specification should only apply when there is only one breakpoint id being specified for the time being. llvm-svn: 113609
* This transform is also performed by InstructionSimplify, remove the duplicate.Benjamin Kramer2010-09-101-3/+0
| | | | llvm-svn: 113608
* Updated help text for "breakpoint command add" to reflect r113596 changeset.Johnny Chen2010-09-101-0/+16
| | | | llvm-svn: 113607
* r113585 was causing clang-i686-xp-msvc9 to fail in mysterious ways that I can'tBill Wendling2010-09-101-2/+2
| | | | | | understand (the log file was no help). llvm-svn: 113605
* Early exit with simple checks.Bill Wendling2010-09-101-3/+6
| | | | llvm-svn: 113603
* IRGen fix for using property-dot syntax to pass Fariborz Jahanian2010-09-103-2/+29
| | | | | | | reference object to a c++ member function. fixes radar 8409336. llvm-svn: 113602
* Auto-upgrade the magic ".llvm.eh.catch.all.value" global toBill Wendling2010-09-105-0/+28
| | | | | | "llvm.eh.catch.all.value". Only the name needs to be changed. llvm-svn: 113600
* Added some missing API for address resolving within a module, and lookingGreg Clayton2010-09-1011-17/+375
| | | | | | | | | | up a seciton offset address (SBAddress) within a module that returns a symbol context (SBSymbolContext). Also added a SBSymbolContextList in preparation for adding find/lookup APIs that can return multiple results. Added a lookup example code that shows how to do address lookups. llvm-svn: 113599
* These two files should have been in r113596. Oops!Johnny Chen2010-09-102-0/+34
| | | | llvm-svn: 113598
* Calculate the number of VLDM/VSTM registers by subtracting the number ofBob Wilson2010-09-101-2/+2
| | | | | | fixed operands from the total number of operands (including the variadic ones). llvm-svn: 113597
* Added the capability to specify a one-liner Python script as the callbackJohnny Chen2010-09-105-8/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | command for a breakpoint, for example: (lldb) breakpoint command add -p 1 "conditional_break.stop_if_called_from_a()" The ScriptInterpreter interface has an extra method: /// Set a one-liner as the callback for the breakpoint command. virtual void SetBreakpointCommandCallback (CommandInterpreter &interpreter, BreakpointOptions *bp_options, const char *oneliner); to accomplish the above. Also added a test case to demonstrate lldb's use of breakpoint callback command to stop at function c() only when its immediate caller is function a(). The following session shows the user entering the following commands: 1) command source .lldb (set up executable, breakpoint, and breakpoint command) 2) run (the callback mechanism will skip two breakpoints where c()'s immeidate caller is not a()) 3) bt (to see that indeed c()'s immediate caller is a()) 4) c (to continue and finish the program) test/conditional_break $ ../../build/Debug/lldb (lldb) command source .lldb Executing commands in '.lldb'. (lldb) file a.out Current executable set to 'a.out' (x86_64). (lldb) breakpoint set -n c Breakpoint created: 1: name = 'c', locations = 1 (lldb) script import sys, os (lldb) script sys.path.append(os.path.join(os.getcwd(), os.pardir)) (lldb) script import conditional_break (lldb) breakpoint command add -p 1 "conditional_break.stop_if_called_from_a()" (lldb) run run Launching '/Volumes/data/lldb/svn/trunk/test/conditional_break/a.out' (x86_64) (lldb) Checking call frames... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`a at main.c:25 frame #3: a.out`main at main.c:44 frame #4: a.out`start c called from b Continuing... Checking call frames... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`b at main.c:34 frame #2: a.out`main at main.c:47 frame #3: a.out`start c called from b Continuing... Checking call frames... Stack trace for thread id=0x2e03 name=None queue=com.apple.main-thread: frame #0: a.out`c at main.c:39 frame #1: a.out`a at main.c:27 frame #2: a.out`main at main.c:50 frame #3: a.out`start c called from a Stopped at c() with immediate caller as a(). a(1) returns 4 b(2) returns 5 Process 20420 Stopped * thread #1: tid = 0x2e03, 0x0000000100000de8 a.out`c + 7 at main.c:39, stop reason = breakpoint 1.1, queue = com.apple.main-thread 36 37 int c(int val) 38 { 39 -> return val + 3; 40 } 41 42 int main (int argc, char const *argv[]) (lldb) bt bt thread #1: tid = 0x2e03, stop reason = breakpoint 1.1, queue = com.apple.main-thread frame #0: 0x0000000100000de8 a.out`c + 7 at main.c:39 frame #1: 0x0000000100000dbc a.out`a + 44 at main.c:27 frame #2: 0x0000000100000e4b a.out`main + 91 at main.c:50 frame #3: 0x0000000100000d88 a.out`start + 52 (lldb) c c Resuming process 20420 Process 20420 Exited a(3) returns 6 (lldb) llvm-svn: 113596
* Lower the unrolling theshold to 150. Empirical tests indicate that this is ↵Owen Anderson2010-09-101-1/+1
| | | | | | | | a sweet spot in the performance per code size increase curve. llvm-svn: 113595
* x86mmx is 64 bits.Dale Johannesen2010-09-101-1/+1
| | | | llvm-svn: 113594
* add a comment explicitly calling out that allocation orders may includeJim Grosbach2010-09-101-3/+6
| | | | | | | reserved regs and that register allocators need to explicitly check for them. llvm-svn: 113593
* I am experimenting with putting visibility-default attributes on all ↵Howard Hinnant2010-09-104-9/+9
| | | | | | struct/classes in libc++. This checkin decorates only basic_string and vector as an experiment, and for review by those in this audience that might know more about visibilty than I do. If I get no negative feedback on this procedure I will begin to decorate the entire library in this way. llvm-svn: 113590
* Don't flatten lldb and import everything into the global namespace. Instead,Johnny Chen2010-09-101-2/+2
| | | | | | set the debugger_unique_id with the lldb prefix. llvm-svn: 113589
* Mark the sse_load_f32 and sse_load_f64 load patterns as having memoperands soBill Wendling2010-09-101-2/+2
| | | | | | | that the memoperands are properly set after DAG building and general mucking about. llvm-svn: 113585
* Reword since this may not be a bug but intended behavior.Bill Wendling2010-09-101-10/+6
| | | | llvm-svn: 113584
* Re-devirtualize this. A new virtual method snuck in.Chandler Carruth2010-09-101-4/+4
| | | | llvm-svn: 113582
* The first part of an lldb native stack unwinder.Jason Molenda2010-09-1041-1279/+3097
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Unwind and RegisterContext subclasses still need to be finished; none of this code is used by lldb at this point (unless you call into it by hand). The ObjectFile class now has an UnwindTable object. The UnwindTable object has a series of FuncUnwinders objects (Function Unwinders) -- one for each function in that ObjectFile we've backtraced through during this debug session. The FuncUnwinders object has a few different UnwindPlans. UnwindPlans are a generic way of describing how to find the canonical address of a given function's stack frame (the CFA idea from DWARF/eh_frame) and how to restore the caller frame's register values, if they have been saved by this function. UnwindPlans are created from different sources. One source is the eh_frame exception handling information generated by the compiler for unwinding an exception throw. Another source is an assembly language inspection class (UnwindAssemblyProfiler, uses the Plugin architecture) which looks at the instructions in the funciton prologue and describes the stack movements/register saves that are done. Two additional types of UnwindPlans that are worth noting are the "fast" stack UnwindPlan which is useful for making a first pass over a thread's stack, determining how many stack frames there are and retrieving the pc and CFA values for each frame (enough to create StackFrameIDs). Only a minimal set of registers is recovered during a fast stack walk. The final UnwindPlan is an architectural default unwind plan. These are provided by the ArchDefaultUnwindPlan class (which uses the plugin architecture). When no symbol/function address range can be found for a given pc value -- when we have no eh_frame information and when we don't have a start address so we can't examine the assembly language instrucitons -- we have to make a best guess about how to unwind. That's when we use the architectural default UnwindPlan. On x86_64, this would be to assume that rbp is used as a stack pointer and we can use that to find the caller's frame pointer and pc value. It's a last-ditch best guess about how to unwind out of a frame. There are heuristics about when to use one UnwindPlan versues the other -- this will all happen in the still-begin-written UnwindLLDB subclass of Unwind which runs the UnwindPlans. llvm-svn: 113581
* Support strlen() and __builtin_strlen() as constant expressions withDouglas Gregor2010-09-102-0/+22
| | | | | | | the call argument is a string literal. Fixes <rdar://problem/8413477>. llvm-svn: 113580
* Makefile.rules: LOADABLE_MODULE/Win32: "all" components may be linkedNAKAMURA Takumi2010-09-101-3/+6
| | | | | | | | only when ENABLE_SHARED=1. Loadable module for Win32 requires all symbols resolved for linking. llvm-svn: 113579
* Don't build redundant libLLVMgold.a.NAKAMURA Takumi2010-09-101-1/+0
| | | | | | | Building archive would be executed due to definition of BUILD_ARCHIVE, even if BUILD_ARCHIVE = "0". llvm-svn: 113578
* Fix test so it passes on non-Darwin hosts.Evan Cheng2010-09-101-1/+1
| | | | llvm-svn: 113577
* Fix merging base-updates for VLDM/VSTM: Before I switched these instructionsBob Wilson2010-09-102-2/+7
| | | | | | | | | | to use AddrMode4, there was a count of the registers stored in one of the operands. I changed that to just count the operands but forgot to adjust for the size of D registers. This was noticed by Evan as a performance problem but it is a potential correctness bug as well, since it is possible that this could merge a base update with a non-matching immediate. llvm-svn: 113576
* If the file the user specifies can't be found in the current directory,Caroline Tice2010-09-109-1/+111
| | | | | | | and the user didn't specify a particular directory, search for the file using the $PATH environment variable. llvm-svn: 113575
* Add checker implementation for my previous commit!Ted Kremenek2010-09-101-0/+87
| | | | llvm-svn: 113574
* Implement: <rdar://problem/6351970> rule request: warn if @synchronized ↵Ted Kremenek2010-09-104-1/+19
| | | | | | mutex can be nil llvm-svn: 113573
* Add ObjCAtSynchronizedStmt to the CFG and add GRExprEngine support (PreVisit ↵Ted Kremenek2010-09-104-1/+31
| | | | | | for checkers). llvm-svn: 113572
* Cleaned up the output of "image lookup --address <ADDR>" which involvedGreg Clayton2010-09-109-47/+65
| | | | | | | | cleaning up the output of many GetDescription objects that are part of a symbol context. This fixes an issue where no ranges were being printed out for functions, blocks and symbols. llvm-svn: 113571
* Teach if-converter to be more careful with predicating instructions that wouldEvan Cheng2010-09-1028-80/+160
| | | | | | | | | | | take multiple cycles to decode. For the current if-converter clients (actually only ARM), the instructions that are predicated on false are not nops. They would still take machine cycles to decode. Micro-coded instructions such as LDM / STM can potentially take multiple cycles to decode. If-converter should take treat them as non-micro-coded simple instructions. llvm-svn: 113570
OpenPOWER on IntegriCloud