summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove explicit summaries from retain/releaseTed Kremenek2010-12-171-26/+0
| | | | | | | checker that are automatically handled now by the Cocoa conventions logic. llvm-svn: 122047
* Fix assertion failure in cocoa::deriveNamingConvention()Ted Kremenek2010-12-172-4/+10
| | | | | | when the selector is the string 'mutable'. llvm-svn: 122046
* improve switch formation to handle small range Chris Lattner2010-12-173-4/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | comparisons formed by comparisons. For example, this: void foo(unsigned x) { if (x == 0 || x == 1 || x == 3 || x == 4 || x == 6) bar(); } compiles into: _foo: ## @foo ## BB#0: ## %entry cmpl $6, %edi ja LBB0_2 ## BB#1: ## %entry movl %edi, %eax movl $91, %ecx btq %rax, %rcx jb LBB0_3 instead of: _foo: ## @foo ## BB#0: ## %entry cmpl $2, %edi jb LBB0_4 ## BB#1: ## %switch.early.test cmpl $6, %edi ja LBB0_3 ## BB#2: ## %switch.early.test movl %edi, %eax movl $88, %ecx btq %rax, %rcx jb LBB0_4 This catches a bunch of cases in GCC, which look like this: %804 = load i32* @which_alternative, align 4, !tbaa !0 %805 = icmp ult i32 %804, 2 %806 = icmp eq i32 %804, 3 %or.cond121 = or i1 %805, %806 %807 = icmp eq i32 %804, 4 %or.cond124 = or i1 %or.cond121, %807 br i1 %or.cond124, label %.thread, label %808 turning this into a range comparison. llvm-svn: 122045
* MC/ARM: Use aggressive symbol folding (important for jump tables, for example).Daniel Dunbar2010-12-171-1/+2
| | | | llvm-svn: 122044
* MC/Expr: Implemnt more aggressive folding during symbol evaluation usingDaniel Dunbar2010-12-172-8/+173
| | | | | | | | | | | | | | | | IsSymbolRefDifferenceFullyResolved(). For example, we will now fold away something like: -- _a: ... L0: ... L1: ... .long (L1 - L0) / 2 -- llvm-svn: 122043
* MC/Mach-O: On second thought, use a custom hook for enabling aggressiveDaniel Dunbar2010-12-174-4/+15
| | | | | | | | | | IsSymbolRefDifferenceFullyResolved, it turns out this does change behavior on enough cases for x86-32 that I would rather wait a bit on it. - In practice, we will want to change this eventually because it only means we generate less relocations (it also eliminates the need for the horrible '.set' hack that Darwin requires in some places). llvm-svn: 122042
* fix typoChris Lattner2010-12-172-2/+2
| | | | llvm-svn: 122041
* Move CocoaConventions.[h,cpp] from libCheckerTed Kremenek2010-12-175-5/+5
| | | | | | | | | to libAnalysis. Similar to Format (format string checking), CocoaConventions has the potential to serve clients other than the static analyzer. llvm-svn: 122040
* MC/Mach-O: Implement IsSymbolRefDifferenceFullyResolved.Daniel Dunbar2010-12-171-0/+25
| | | | | | | | - Unlike for fixups, we always do the "reliable" thing (not just for x86_64). - Since Darwin 'as' would typically reject things that using this will allow, we don't need to worry about compatibility. llvm-svn: 122038
* MC/ObjectWriter: Add a new IsSymbolRefDifferenceFullyResolved target format ↵Daniel Dunbar2010-12-174-2/+36
| | | | | | | | specific hook. - Currently just has stub implementations for Mach-O, ELF, and COFF. llvm-svn: 122037
* Revise Cocoa conventions detection: 'copy' and 'mutableCopy'Ted Kremenek2010-12-173-60/+40
| | | | | | | | only indicates the create rule if it starts at the beginning of the method name, not within the method name. llvm-svn: 122036
* Rename several methods/functions in the analyzerTed Kremenek2010-12-173-92/+92
| | | | | | | to start with lowercase characters. No functionality change. llvm-svn: 122035
* Provide LiveIntervalUnion::Query::checkLoopInterference.Jakob Stoklund Olesen2010-12-175-6/+73
| | | | | | | | This is a three-way interval list intersection between a virtual register, a live interval union, and a loop. It will be used to identify interference-free loops for live range splitting. llvm-svn: 122034
* Give hidden visibility to RTTI for derived types. This is kindof a hackyJohn McCall2010-12-172-3/+15
| | | | | | way to do this, but it fixes rdar://problem/8778973 llvm-svn: 122033
* MC/Assembler: Strip out object writer arguments, now that it is always availableDaniel Dunbar2010-12-175-73/+51
| | | | | | -- and remove FIXME asking for the same! llvm-svn: 122032
* MC/Assembler: Make the MCObjectWriter available through the lifetime of theDaniel Dunbar2010-12-173-28/+25
| | | | | | assembler. llvm-svn: 122031
* Microsoft's __uuidof operator returns a lvalue. Part 2.Francois Pichet2010-12-171-2/+2
| | | | llvm-svn: 122030
* Added access to set the current stack frame within a thread so any commandGreg Clayton2010-12-174-0/+60
| | | | | | | | | | | | line commands can use the current thread/frame. Fixed an issue with expressions that get sandboxed in an objective C method where unichar wasn't being passed down. Added a "static size_t Scalar::GetMaxByteSize();" function in case we need to know the max supported by size of something within a Scalar object. llvm-svn: 122027
* Trailing whitespace and 80 column fixups.Jim Grosbach2010-12-171-14/+15
| | | | llvm-svn: 122026
* MC/Target: Remove HasScatteredSymbols target hook variable, which has beenDaniel Dunbar2010-12-177-35/+6
| | | | | | superceded and was effectively dead. llvm-svn: 122024
* MC/Expr: Simplify.Daniel Dunbar2010-12-172-9/+4
| | | | llvm-svn: 122023
* Microsoft's __uuidof operator returns a lvalue.Francois Pichet2010-12-172-1/+3
| | | | llvm-svn: 122021
* Modify the regexp to match the debugger output of the 'Up Stack' and 'Down ↵Johnny Chen2010-12-171-1/+3
| | | | | | | | | Stack' gud commands in order to more reliably locate the program counter and to display the file-and-line. llvm-svn: 122020
* Complete tests for IntervalMapOverlaps.Jakob Stoklund Olesen2010-12-171-1/+106
| | | | llvm-svn: 122019
* Fix crash compiling a QQQQ REG_SEQUENCE for a Neon vld3_lane operation.Bob Wilson2010-12-173-5/+25
| | | | | | Radar 8776599 llvm-svn: 122018
* Use PairDRegs to implement ConcatVectors. No functionality change.Bob Wilson2010-12-171-7/+1
| | | | llvm-svn: 122017
* Fix a comment typo.Bob Wilson2010-12-171-2/+2
| | | | llvm-svn: 122016
* Neon intrinsic tests need to be compiled for Cortex-A9 for f16 support.Bob Wilson2010-12-171-1/+1
| | | | llvm-svn: 122015
* Revert r64460. strtol and friends cannot be marked readonly, even withDan Gohman2010-12-172-2/+3
| | | | | | | | | a null endptr argument, because they may write to errno. This fixes a seflhost miscompile observed on Linux targets when TBAA was enabled. llvm-svn: 122014
* MC: Remove another dead MCAssembler argument, and update clients.Daniel Dunbar2010-12-173-31/+15
| | | | llvm-svn: 122013
* MC: Remove dead MCAssembler argument -- Rafael, can you check the FIXME I addedDaniel Dunbar2010-12-172-14/+10
| | | | | | here? llvm-svn: 122012
* MC: Simplify (remove unnecessary MCAssembler argument, obsoleted by containmentDaniel Dunbar2010-12-171-12/+8
| | | | | | in MCAsmLayout). llvm-svn: 122011
* Fix 80-col viola.Daniel Dunbar2010-12-171-2/+2
| | | | llvm-svn: 122010
* Write => in a more normal form.Daniel Dunbar2010-12-171-1/+2
| | | | llvm-svn: 122009
* MC/Expr: Simplify (and add a FIXME).Daniel Dunbar2010-12-171-10/+16
| | | | llvm-svn: 122008
* "Fix" FDE alignment to match what gas does.Rafael Espindola2010-12-172-15/+34
| | | | llvm-svn: 122006
* Make pushq produce signed relocations.Rafael Espindola2010-12-162-1/+12
| | | | llvm-svn: 122005
* llvm-dis: Fix memory leak. ParseBitcodeFile should be taking ownership ofMichael J. Spencer2010-12-161-5/+7
| | | | | | the MemoryBuffer*, however, it doesn't seem to delete it. llvm-svn: 122004
* Getting Started: Add VS2010 instructions and specify an out of source build.Michael J. Spencer2010-12-161-4/+7
| | | | llvm-svn: 122003
* Fixes for linux building from Stephen Wilson.Greg Clayton2010-12-161-0/+2
| | | | llvm-svn: 122002
* Fixes for linux building from Stephen Wilson.Greg Clayton2010-12-161-0/+1
| | | | llvm-svn: 122001
* Added header doc for the recently added Process::ReadUnsignedInteger (addr_t ↵Greg Clayton2010-12-161-2/+26
| | | | | | addr, size_t int_byte_size, Error &error) function. llvm-svn: 121999
* Added the ability to read unsigned integers from the Process:Greg Clayton2010-12-162-0/+27
| | | | | | uint64_t Process::ReadUnsignedInteger (addr_t addr, size_t int_byte_size, Error &error); llvm-svn: 121996
* Add basic test exposing many bugs.Jakob Stoklund Olesen2010-12-162-6/+21
| | | | llvm-svn: 121995
* Fix MBlaze backend call instructions so that arguments passed through registersWesley Peck2010-12-162-10/+11
| | | | | | | are correctly marked as used. This removes a hack where the call instructions marked all possible argument registers as used in the tablegen description. llvm-svn: 121994
* Do lvalue-to-rvalue conversions on the LHS of a shift operator.John McCall2010-12-163-10/+8
| | | | | | Fixes rdar://problem/8776586. llvm-svn: 121992
* Pseudo-ize the Thumb1 tBfar pattern. rdar://8777974Jim Grosbach2010-12-162-3/+12
| | | | llvm-svn: 121990
* Use SBModule.GetDescription(SBStream) API to get the module description to matchJohnny Chen2010-12-161-3/+4
| | | | | | against. llvm-svn: 121989
* MC/Expr: Add a doxyment.Daniel Dunbar2010-12-161-0/+14
| | | | llvm-svn: 121988
* Update the comment section of blacklist.py with the command line to ↵Johnny Chen2010-12-161-1/+1
| | | | | | reproduce the crash. llvm-svn: 121986
OpenPOWER on IntegriCloud