summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Revert Mon Ping's change 99928, since it broke all the llvm-gcc buildbots.Bob Wilson2010-03-3027-313/+144
| | | | llvm-svn: 99948
* Formatting tweaks.Daniel Dunbar2010-03-301-4/+4
| | | | llvm-svn: 99947
* IRGen: Narrow getCGRecordLayout type.Daniel Dunbar2010-03-302-2/+2
| | | | llvm-svn: 99946
* IRgen: Move CGRecordLayout to its own happy little file.Daniel Dunbar2010-03-305-30/+52
| | | | llvm-svn: 99945
* Minor formatting/FIXME cleanups.Daniel Dunbar2010-03-303-5/+2
| | | | llvm-svn: 99944
* Fix an oversight with access control for address-of-function.John McCall2010-03-301-0/+1
| | | | llvm-svn: 99942
* Remember the regparm attribute in FunctionType::ExtInfo.Rafael Espindola2010-03-3012-35/+118
| | | | | | Fixes PR3782. llvm-svn: 99940
* When "delayed parsing" C++ default arguments, if there is an error, there ↵Argyrios Kyrtzidis2010-03-302-0/+21
| | | | | | | | | | | | may be tokens left in the token stream that will interfere (they will be parsed as if they are after the class' '}') and a crash will occur because the CachedTokens that holds them will be deleted while the lexer is still using them. Make sure that the tokens of default args are removed from the token stream. Fixes PR6647. llvm-svn: 99939
* Ignore invalid metadata.Devang Patel2010-03-302-0/+32
| | | | llvm-svn: 99938
* Add a test for C++ [stmt.select]p3, which specifies that redeclaring aDouglas Gregor2010-03-301-0/+11
| | | | | | | | name in the outermost block of a if/else that declares the same name is ill-formed. Turns out that Clang and MSVC were right about PR6739; GCC is too lax. llvm-svn: 99937
* Propagate the "found declaration" (i.e. the using declaration instead ofJohn McCall2010-03-3016-149/+338
| | | | | | | | | | | | | the underlying/instantiated decl) through a lot of API, including "intermediate" MemberExprs required for (e.g.) template instantiation. This is necessary because of the access semantics of member accesses to using declarations: only the base class *containing the using decl* need be accessible from the naming class. This allows us to complete an access-controlled selfhost, if there are no recent regressions. llvm-svn: 99936
* Revert "Enable -sse-domain-fix by default. What could possibly go wrong?"Jakob Stoklund Olesen2010-03-301-1/+6
| | | | | | Not running 'make check-all' before committing is a bad idea. llvm-svn: 99933
* Fix this test on windows. When running on windows we printRafael Espindola2010-03-301-1/+1
| | | | | | | | double 0.000000e+000 instead of double 0.000000e+00 llvm-svn: 99932
* Enable -sse-domain-fix by default. What could possibly go wrong?Jakob Stoklund Olesen2010-03-301-6/+1
| | | | llvm-svn: 99931
* Added support for address spaces and added a isVolatile field to memcpy, ↵Mon P Wang2010-03-3010-56/+99
| | | | | | memmove, and memset llvm-svn: 99930
* Added support for address spaces and added a isVolatile field to memcpy, ↵Mon P Wang2010-03-3027-144/+313
| | | | | | | | | memmove, and memset, e.g., llvm.memcpy.i32(i8*, i8*, i32, i32) -> llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) A update of langref will occur in a subsequent checkin. llvm-svn: 99928
* move some method definitions to files that make sense.Chris Lattner2010-03-303-55/+54
| | | | llvm-svn: 99927
* Improve diagnostics when printing a template instantiation backtraceDouglas Gregor2010-03-303-7/+19
| | | | | | | | | | involving substitution of deduced template arguments into a class template partial specialization or function template, or when substituting explicitly-specific template arguments into a function template. We now print the actual deduced argument bindings so the user can see what got deduced. llvm-svn: 99923
* RegionStore: specially handle loads from integer global variables declared ↵Ted Kremenek2010-03-302-1/+51
| | | | | | | | 'const'. Fixes a false positive reported in PR 6288. llvm-svn: 99922
* Use 'const Optional<SVal>&' to avoid an extra copy.Ted Kremenek2010-03-301-8/+8
| | | | llvm-svn: 99921
* the big refactoring bits of PR3782.Rafael Espindola2010-03-3034-253/+279
| | | | | | | | This introduces FunctionType::ExtInfo to hold the calling convention and the noreturn attribute. The next patch will extend it to include the regparm attribute and fix the bug. llvm-svn: 99920
* Introduce SpecificBumpPtrAllocator, a wrapper for BumpPtrAllocator which allowsBenjamin Kramer2010-03-309-49/+58
| | | | | | | only a single type of object to be allocated. Use it to make VNInfo destruction typesafe. llvm-svn: 99919
* Typo noticed by Duncan.Torok Edwin2010-03-301-1/+1
| | | | llvm-svn: 99918
* Fix a grammaro.Dan Gohman2010-03-304-5/+5
| | | | llvm-svn: 99917
* Add cross-block inference to SSEDomainFix.Jakob Stoklund Olesen2010-03-301-29/+85
| | | | llvm-svn: 99916
* Fix llvm-ld to clean up its output files in case of an error.Dan Gohman2010-03-302-38/+59
| | | | llvm-svn: 99915
* fix two cases where the arguments were extracted from the wrong range out of ↵Gabor Greif2010-03-301-3/+3
| | | | | | | | the InvokeInst spotted by baldrick -- thanks\! llvm-svn: 99914
* Introduce new AST statistics that keep track of the number of isa (orDouglas Gregor2010-03-3017-1/+234
| | | | | | | | | | | | | | | | | | | | | dyn_cast) invocations for C++ and Objective-C types, declarations, expressions, and statements. The statistics will be printed when -print-stats is provided to Clang -cc1, with results such as: 277073 clang - Number of checks for C++ declaration nodes 13311 clang - Number of checks for C++ expression nodes 18 clang - Number of checks for C++ statement nodes 174182 clang - Number of checks for C++ type nodes 92300 clang - Number of checks for Objective-C declaration nodes 9800 clang - Number of checks for Objective-C expression nodes 7 clang - Number of checks for Objective-C statement nodes 65733 clang - Number of checks for Objective-C type nodes The statistics are only gathered when NDEBUG is not defined, since they introduce potentially-expensive operations into very low-level routines (isa). llvm-svn: 99912
* Remove the pmulld intrinsic and autoupdate it as a vector multiply.Eric Christopher2010-03-308-7/+58
| | | | | | | Rewrite the pmulld patterns, and make sure that they fold in loads of arguments into the instruction. llvm-svn: 99910
* Change the analyzer to recognize (but ignore) assignments to isa. Fixes PR ↵Ted Kremenek2010-03-302-0/+15
| | | | | | 6302. llvm-svn: 99904
* Add Support for 'warn_unused_result" attribute onFariborz Jahanian2010-03-305-11/+39
| | | | | | objective-c methods. (radar 7418262). llvm-svn: 99903
* Rip out the 'is temporary' nonsense from the MCContext interface toChris Lattner2010-03-3017-77/+42
| | | | | | | | | create symbols. It is extremely error prone and a source of a lot of the remaining integrated assembler bugs on x86-64. This fixes rdar://7807601. llvm-svn: 99902
* Funky indentation.Evan Cheng2010-03-301-5/+5
| | | | llvm-svn: 99901
* Don't produce a vtable if we are just instantiating a method and theRafael Espindola2010-03-302-3/+26
| | | | | | | | class has no key function. Fix PR6738. llvm-svn: 99900
* There is no need to fall through after processing DBG_VALUE machine instruction.Devang Patel2010-03-301-0/+1
| | | | llvm-svn: 99899
* Switch isa_impl from a function template to a class template with aDouglas Gregor2010-03-303-44/+78
| | | | | | | static inline member function doit(). This enables the use of partial specialization to override the last stage of the "isa" check. llvm-svn: 99898
* Fix FileEntry declaration.Daniel Dunbar2010-03-302-1/+1
| | | | llvm-svn: 99896
* Fix -Asserts warning.Daniel Dunbar2010-03-301-4/+0
| | | | llvm-svn: 99895
* Teach Clang's -cc1 option -print-stats to print LLVM statistics.Douglas Gregor2010-03-302-0/+7
| | | | llvm-svn: 99894
* Introduce namespace-scope functions to enable LLVM statistics withoutDouglas Gregor2010-03-302-21/+47
| | | | | | | passing the command-line parameter "-stats" and to print the resulting statistics without calling llvm_shutdown(). llvm-svn: 99893
* Change PointerUnionX::getFromOpaqueValue() to be declared 'static inline' ↵Ted Kremenek2010-03-301-3/+3
| | | | | | instead of 'static'. llvm-svn: 99892
* Fix a bug where we would incorrectly report an error about initializing two ↵Anders Carlsson2010-03-302-17/+29
| | | | | | fields in an anonymous struct. llvm-svn: 99891
* Reduce nesting.Anders Carlsson2010-03-301-15/+15
| | | | llvm-svn: 99889
* XFAIL some PIC16 tests when running under valgrind-leaks. I don't expect theseBenjamin Kramer2010-03-307-0/+8
| | | | | | to be fixed any time soon. llvm-svn: 99888
* PIC16: Plug a leak in PIC16Section by allocating name & address strings in theBenjamin Kramer2010-03-302-13/+20
| | | | | | MCContext. There is still one leak left in PIC16Section (the Items vector). llvm-svn: 99887
* Don't overwrite previous value, if it succeeded.Torok Edwin2010-03-301-1/+2
| | | | llvm-svn: 99886
* Honour addGlobalMapping() in the interpreter, if it was used to add mappings forTorok Edwin2010-03-301-0/+1
| | | | | | external Functions (the JIT does honour this). llvm-svn: 99885
* Replace some constant-sized SmallVectors.Benjamin Kramer2010-03-302-14/+11
| | | | llvm-svn: 99884
* Reapply r99881 with some fixes: only call destructor in releaseMemory!Torok Edwin2010-03-305-12/+28
| | | | llvm-svn: 99883
* Revert 99881, it brooke smooshlab's llvm-gcc-i386-darwin9.Torok Edwin2010-03-303-27/+1
| | | | llvm-svn: 99882
OpenPOWER on IntegriCloud