summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When printing a qualified type, look through a substituted templateDouglas Gregor2011-02-177-13/+73
| | | | | | | | | | parameter type to see what's behind it, so that we don't end up printing silly things like "float const *" when "const float *" would make more sense. Also, replace the pile of "isa" tests with a simple switch enumerating all of the cases, making a few more obvious cases use prefix qualifiers. llvm-svn: 125729
* Switch to SmallVector in SimpleRegisterCoalescing for a 3.5% speedup on 403.gcc.Cameron Zwarich2011-02-171-3/+3
| | | | llvm-svn: 125728
* Adjust indenting of arguments.Cameron Zwarich2011-02-171-3/+3
| | | | llvm-svn: 125727
* Return Changed from SplitPHIEdges rather than always returning true.Cameron Zwarich2011-02-171-1/+1
| | | | llvm-svn: 125726
* lit/TestingConfig.py: Add the environment variable PRINTF_EXPONENT_DIGITS as ↵NAKAMURA Takumi2011-02-171-0/+1
| | | | | | | | | | workaround [PR6745] for mingw's tests. Danil Malyshev suggested this. FIXME: It does not improve MSVC's issue. [Danil Malyshev] Defining PRINTF_EXPONENT_DIGITS env is the suggested way to make MinGW ANSI/POSIX compatible. This is not only about the case we are discussing, but in general, I'd like to have explicitly defined compatibility mode for all the tests running on MinGW. llvm-svn: 125725
* simplify a bit.Chris Lattner2011-02-172-4/+2
| | | | llvm-svn: 125724
* tidy upChris Lattner2011-02-171-2/+2
| | | | llvm-svn: 125723
* Improve parser recovery in "for" statements, from Richard Smith!Douglas Gregor2011-02-172-7/+38
| | | | llvm-svn: 125722
* Add serialization for Expr* arguments for attributes to clang tablegen files.Alexis Hunt2011-02-171-0/+2
| | | | | | Patch thanks to Zach Anderson. llvm-svn: 125721
* I will not hold on to temporary StringRefs.Douglas Gregor2011-02-171-50/+51
| | | | | | | | | | | | | | | I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. I will not hold on to temporary StringRefs. llvm-svn: 125718
* When Parser::ParseExpressionList isn't given a completer, fall back toDouglas Gregor2011-02-172-0/+16
| | | | | | | normal "expression" completion. Fixes the most annoying code-completion bug I've found. llvm-svn: 125715
* Fix PR9025 and add a diagnostic (and sometimes a fixit) for an overloadedMatt Beaumont-Gay2011-02-173-6/+77
| | | | | | | function name used as the base of a member expression. Early feedback from Chandler Carruth, and code review from Nick Lewycky. llvm-svn: 125714
* Bump up IdentifierInfo::ObjCOrBuiltinID to use 11 bits instead of 10. Fixes ↵Ted Kremenek2011-02-171-2/+2
| | | | | | | | PR 9231. Apparently we can blow out the number of builtin IDs on FreeBSD with only 10 bits. llvm-svn: 125713
* Begin overhaul of scan-build/ccc-analyzer's handling of checker options.Ted Kremenek2011-02-172-119/+61
| | | | | | | | We now rely on 'clang --analyze' to provide the default set of checkers. We're still working on the new '-analyzer-checker <checker>' interface, and once that's ready we'll wire it up to scan-build. llvm-svn: 125712
* preserve NUW/NSW when transforming add x,xChris Lattner2011-02-172-2/+15
| | | | llvm-svn: 125711
* filecheckizeChris Lattner2011-02-171-3/+14
| | | | llvm-svn: 125710
* Fix thinko, basic blocks are SESE. The exits may have many edges though.Nick Lewycky2011-02-171-1/+1
| | | | llvm-svn: 125709
* Disable default synthesized properties until we can properly re-evaluate the ↵Ted Kremenek2011-02-171-2/+1
| | | | | | feature. llvm-svn: 125708
* fix clang -MM output to escape spaces in filenames. This seems to beChris Lattner2011-02-171-7/+18
| | | | | | the only character that GCC escapes. PR9224. llvm-svn: 125707
* Modified version of Marco Minutoli's host arch patch.Greg Clayton2011-02-171-14/+8
| | | | llvm-svn: 125706
* update this test now that reassociate isn't stripping nsw's pointlessly.Chris Lattner2011-02-171-2/+2
| | | | llvm-svn: 125705
* Convert MaxFieldAlignment to CharUnits from bits. No change in functionalityKen Dyck2011-02-171-18/+23
| | | | | | intended. llvm-svn: 125704
* Add comment for the helper method WriteCoreRegisterWithFlags().Johnny Chen2011-02-171-0/+3
| | | | llvm-svn: 125703
* add some notes on compares + binops. Remove redundant entries.Chris Lattner2011-02-171-20/+47
| | | | llvm-svn: 125702
* Refactoring. Wrap the following pseudocode from the ARM Architecture ↵Johnny Chen2011-02-172-117/+90
| | | | | | | | | | | | | | | | | | | | | Reference Manul: // if d == 15 then // Can only occur for encoding A1 // ALUWritePC(result); // setflags is always FALSE here // else // R[d] = result; // if setflags then // APSR.N = result<31>; // APSR.Z = IsZeroBit(result); // APSR.C = carry; // // APSR.V unchanged into a helper method WriteCoreRegisterWithFlags, and modified the existing methods to take advantage of it. Plus add two emulation methods (declaration only for now) for ORR (immediate) and ORR (register). llvm-svn: 125701
* fix PR9215, preventing -reassociate from clearing nsw/nuw whenChris Lattner2011-02-172-3/+11
| | | | | | it swaps the LHS/RHS of a single binop. llvm-svn: 125700
* Improve diagnostics when property names an object type ofFariborz Jahanian2011-02-173-0/+30
| | | | | | a forward class. // rdar://8851803 llvm-svn: 125699
* Implement code completion results for the Objective-C Key-Value CodingDouglas Gregor2011-02-174-21/+772
| | | | | | (KVC) and Key-Value Observing (KVO) protocols. llvm-svn: 125696
* Do not use constants from stdint.h that we cannot portably provide on all ↵Stephen Wilson2011-02-171-4/+2
| | | | | | platforms. llvm-svn: 125695
* Ensure that the NRVO flag has some block to insert into. Fixes PR9178!Nick Lewycky2011-02-162-1/+19
| | | | llvm-svn: 125694
* Fix assertion failure in -Warray-bounds on template parameters used as arrays.Ted Kremenek2011-02-162-1/+8
| | | | llvm-svn: 125693
* Clean up a bit of the type getting code where lldb_private:Type now hasGreg Clayton2011-02-1612-105/+48
| | | | | | | | | | | | | | clang_type_t GetClangFullType(); // Get a completely defined clang type clang_type_t GetClangLayoutType(); // Get a clang type that can be used for type layout clang_type_t GetClangForwardType(); // A type that can be completed if needed, but is more efficient. llvm-svn: 125691
* Block rewriting bug. Don't take address of captured Fariborz Jahanian2011-02-162-1/+52
| | | | | | | byref variables again when passing them to inner blocks. // rdar://9006279 llvm-svn: 125690
* Add emulation methods for ROR (immediate), ROR (register), and RRX.Johnny Chen2011-02-163-6/+127
| | | | | | | | | | Turns out that they can be funneled through the helper methods EmulateShiftImm()/ EmulateShiftReg() as well. Modify EmulateShiftImm() to handle SRType_ROR and SRType_RRX. And fix a typo in the impl of utility Shift_C() in ARMUtils.h. llvm-svn: 125689
* Placate Doug and change capitalization of diagnostic note.Ted Kremenek2011-02-162-3/+3
| | | | llvm-svn: 125688
* Makes most methods in SVals.h conform to the naming guide. ReviewedZhanyong Wan2011-02-1618-47/+46
| | | | | | by kremenek. llvm-svn: 125687
* Add code to emulate STRB (Thumb) instruction.Caroline Tice2011-02-162-1/+147
| | | | llvm-svn: 125686
* 3000 Sema diagnostics should be enough for anyone.Chandler Carruth2011-02-161-1/+1
| | | | llvm-svn: 125684
* Add encoding entries for LSL (immediate and register) and LSR (immediate and ↵Johnny Chen2011-02-161-1/+21
| | | | | | | | register) to ARM and Thumb opcode tables. llvm-svn: 125683
* Fix clang++ warning building the executable for testing.Johnny Chen2011-02-161-1/+1
| | | | llvm-svn: 125682
* Add a few missed xforms from GCC PR14753Chris Lattner2011-02-161-0/+29
| | | | llvm-svn: 125681
* Fix a thinko with llvm::Optional, which is clearly the most dangerous class ↵Douglas Gregor2011-02-161-4/+8
| | | | | | template in the universe llvm-svn: 125679
* Teach the CXCodeCompleteResults results structure, which storesDouglas Gregor2011-02-163-7/+33
| | | | | | | | | code-completion results accessed via libclang, to extend the lifetime of the allocator used for cached global code-completion results at least until these completion results are destroyed. Fixes <rdar://problem/8997369>. llvm-svn: 125678
* If preprocessed token introduced empty filename then use main translation ↵Devang Patel2011-02-162-1/+10
| | | | | | unit's filename for debug info entries. llvm-svn: 125672
* Add tagging for EmulateLDRRtRnImm().Johnny Chen2011-02-161-0/+1
| | | | llvm-svn: 125671
* Improve the invalidation logic for the cache of global codeDouglas Gregor2011-02-162-31/+117
| | | | | | | | completions. We now compute a hash of the names of all top-level declarations and macro definitions, and invalidate the cache when the hash value changes. llvm-svn: 125670
* Teach PPChainedCallbacks to forward the InclusionDirective() callback.Douglas Gregor2011-02-161-0/+12
| | | | llvm-svn: 125669
* Destroy the dynamic loader plugin in Process::Finalize. If you wait till ↵Jim Ingham2011-02-162-2/+7
| | | | | | the auto_ptr gets deleted in the normal course of things the real process class will have been destroyed already, and it's hard to shut down the dynamic loader without accessing some process pure virtual method. llvm-svn: 125668
* Swap VT and DebugLoc operands of getExtLoad() for consistency withStuart Hastings2011-02-1613-63/+62
| | | | | | other getNode() methods. Radar 9002173. llvm-svn: 125665
* Warning -> ExtWarnArgyrios Kyrtzidis2011-02-161-2/+2
| | | | llvm-svn: 125664
OpenPOWER on IntegriCloud