summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clarify comments in genLoopLimit.Andrew Trick2013-10-241-3/+4
| | | | llvm-svn: 193292
* Optimizing MCJIT module state trackingAndrew Kaylor2013-10-243-124/+214
| | | | | | Patch co-developed with Yaron Keren. llvm-svn: 193291
* Implements 64 bit microsoft record layout and adds lit tests to cover Warren Hunt2013-10-2313-465/+1545
| | | | | | | | | it. Also removes all of the microsoft C++ ABI related code from the itanium layout builder. Differential Revision: http://llvm-reviews.chandlerc.com/D2003 llvm-svn: 193290
* (this is a corrected patch)Yaron Keren2013-10-233-2/+4
| | | | | | | | | | | | | | Calling _chkstk is required on ELF as well as COFF on Windows. Without _chkstk, functions requiring large stack crash in initialization code. Previous code tested for COFF format but not Mach-O and this patch modifies the code to test for Windows OS (both Windows target and MingW target) but not Mach-O object format: Looks like macho environment was used to build some EFI code. Credits to Andrew MacPherson. llvm-svn: 193289
* More wordsmithing on objc_requires_super documentation.Ted Kremenek2013-10-231-7/+11
| | | | llvm-svn: 193288
* Debug Info: code clean up.Manman Ren2013-10-232-31/+23
| | | | | | | | | | | Since we never insert DIE for DITemplateTypeParameter to a map, there is no need to call getDIE in getOrCreateTemplateTypeParameterDIE. It is also renamed to constructTemplateTypeParameterDIE to match with other construct functions in CompileUnit. Same applies to getOrCreateTemplateValueParameterDIE. llvm-svn: 193287
* Debug Info: code clean up.Manman Ren2013-10-232-5/+5
| | | | | | | Rename createMemberDIE to constructMemberDIE to match other construct functions in CompileUnit. llvm-svn: 193286
* Debug Info: code clean up.Manman Ren2013-10-232-18/+12
| | | | | | | Remove the unneeded return values from createMemberDIE, constructEnumTypeDIE, getOrCreateTemplateTypeParameterDIE, and getOrCreateTemplateValueParameterDIE. llvm-svn: 193285
* Debug Info: code clean up.Manman Ren2013-10-232-18/+18
| | | | | | | | | Unifying the argument ordering of private construct functions in CompileUnit to follow constructTypeDIE(DIE &, DIBasicType), constructTypeDIE(DIE &, DIDerivedType), constructTypeDIE(DIE &, DICompositeType), constructSubrangeDIE and constructArrayTypeDIE. llvm-svn: 193284
* Wordsmith text of objc_requires_super.Ted Kremenek2013-10-231-9/+9
| | | | llvm-svn: 193283
* Actually switch the default to use multiprocessingRafael Espindola2013-10-231-1/+1
| | | | llvm-svn: 193282
* Fix typo.Ted Kremenek2013-10-231-1/+1
| | | | llvm-svn: 193281
* [lit] Stop hacking the GIL check interval.Daniel Dunbar2013-10-231-6/+0
| | | | | | | - This was never a big win, and is irrelevant now that we commonly use multiprocessing based parallelism. llvm-svn: 193280
* [lit] Use multiprocessing based parallelism by default, on Unix.Daniel Dunbar2013-10-231-3/+7
| | | | llvm-svn: 193279
* Provide documentation on attribute((objc_requires_super)).Ted Kremenek2013-10-231-0/+39
| | | | llvm-svn: 193278
* Change title of section to reflect the concept, and not the mechanism.Ted Kremenek2013-10-231-2/+3
| | | | llvm-svn: 193277
* Remove {} from one-line block.Manman Ren2013-10-231-2/+1
| | | | llvm-svn: 193276
* Revert "Calling _chkstk is required on ELF as well as COFF on Windows. ↵Rafael Espindola2013-10-233-4/+2
| | | | | | | | | | Without _chkstk functions requiring large stack crash in initialization code. Previous code tested for COFF format but not Mach-O and this patch modifies the code to test for Windows." This reverts commit r193263. It is causing CodeGen/X86/mingw-alloca.ll to fail. llvm-svn: 193275
* Parse: Disable delayed template parsing for constexpr functionsDavid Majnemer2013-10-234-8/+14
| | | | | | | | | | | | | | | Commit r191484 treated constexpr function templates as normal function templates with respect to delaying their parsing. However, this is unnecessarily restrictive because there is no compatibility concern with constexpr, MSVC doesn't support it. Instead, simply disable delayed template parsing for constexpr function templates. This largely reverts the changes made in r191484 but keeps it's unit test. This fixes PR17661. llvm-svn: 193274
* Fixed doxygen comment to match Module.cppYuchen Wu2013-10-231-1/+1
| | | | llvm-svn: 193273
* Reduce casting and use a fully covered switch.Rafael Espindola2013-10-231-9/+14
| | | | llvm-svn: 193272
* Run layout-transitivity test only when debugging is enabled.Rui Ueyama2013-10-231-5/+1
| | | | | | Because it depends on "-mllvm -debug" flag, the test fails in Release build. llvm-svn: 193271
* X86: Custom lower sext v16i8 to v16i16, and the corresponding truncate.Benjamin Kramer2013-10-238-10/+58
| | | | | | Also update the cost model. llvm-svn: 193270
* AST: Mangle fields in anonymous structs/unionsDavid Majnemer2013-10-233-4/+15
| | | | | | | | | | | | | The Itanium mangler couldn't cope with mangling an IndirectFieldDecl. Instead, mangle the field the IndirectFieldDecl refers to. Further, give IndirectFieldDecl no linkage just like FieldDecl. N.B. Decl.cpp:getLVForNamespaceScopeDecl tried to calculate linkage for data members of anonymous structs/unions. However, this seems impossible so turn it into an assertion. llvm-svn: 193269
* Fixed comment typo in GCOVProfiling.cppYuchen Wu2013-10-231-1/+1
| | | | llvm-svn: 193268
* Intrinsics: fix extract & insert when index is out of bound.Manman Ren2013-10-234-11/+53
| | | | | | | | | Now, all extract & insert intrinsics should have the correct and operation to ignore higher bits. rdar://15250497 llvm-svn: 193267
* Remove unused variable.Rui Ueyama2013-10-231-3/+0
| | | | llvm-svn: 193266
* [analyzer] Generate a LazyCompoundVal when loading from a union-typed region.Jordan Rose2013-10-232-3/+62
| | | | | | | | | | This ensures that variables accessible through a union are invalidated when the union value is passed to a function. We still don't fully handle union values, but this should at least quiet some false positives. PR16596 llvm-svn: 193265
* Use a map instead of vector to store line counts.Yuchen Wu2013-10-232-24/+15
| | | | | | | | | | | | There are a few motivations for this: - Using a map allows for checking if line is in map. This differentiates unexecutable lines (such as comments) from unexecuted logical lines of code. "#####" is now outputted in this case, in line with gcov. - Source files are no longer read in twice: once when storing the line counts, and once when outputting the data. - Greatly simplifies the function FileInfo::addLineCount(). llvm-svn: 193264
* Calling _chkstk is required on ELF as well as COFF on Windows. Yaron Keren2013-10-233-2/+4
| | | | | | | | | | Without _chkstk functions requiring large stack crash in initialization code. Previous code tested for COFF format but not Mach-O and this patch modifies the code to test for Windows. Credits to Andrew MacPherson. llvm-svn: 193263
* X86: Custom lower zext v16i8 to v16i16.Benjamin Kramer2013-10-234-19/+29
| | | | | | | | | | | | | | | | | On sandy bridge (PR17654) we now get vpxor %xmm1, %xmm1, %xmm1 vpunpckhbw %xmm1, %xmm0, %xmm2 vpunpcklbw %xmm1, %xmm0, %xmm0 vinsertf128 $1, %xmm2, %ymm0, %ymm0 On haswell it's a simple vpmovzxbw %xmm0, %ymm0 There is a maze of duplicated and dead transforms and patterns in this area. Remove the dead custom lowering of zext v8i16 to v8i32, that's already handled by LowerAVXExtend. llvm-svn: 193262
* Fix PR17631Michael Liao2013-10-232-1/+32
| | | | | | | | | - Skip instructions added in prolog. For specific targets, prolog may insert helper function calls (e.g. _chkstk will be called when there're more than 4K bytes allocated on stack). However, these helpers don't use/def YMM/XMM registers. llvm-svn: 193261
* Fixed format strings as they still must specicy a '%' prior to using PRI*64 ↵Greg Clayton2013-10-232-5/+5
| | | | | | macros. llvm-svn: 193260
* Disable layout-transitivity test on FreeBSD for now.Rui Ueyama2013-10-231-3/+4
| | | | llvm-svn: 193259
* Add llvm-c-test to check-llvm.NAKAMURA Takumi2013-10-231-4/+1
| | | | llvm-svn: 193258
* llvm/tools/llvm-c-test should be built also on msvc.NAKAMURA Takumi2013-10-231-5/+1
| | | | llvm-svn: 193257
* llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.NAKAMURA Takumi2013-10-231-0/+4
| | | | | FIXME: I don't think it'd be smart. llvm-svn: 193256
* llvm-c/lto.h: Avoid use of bool.NAKAMURA Takumi2013-10-232-21/+18
| | | | llvm-svn: 193255
* llvm-c-test: Make them C89-compliant.NAKAMURA Takumi2013-10-235-15/+29
| | | | llvm-svn: 193254
* include/llvm-c: Whitespace.NAKAMURA Takumi2013-10-238-41/+40
| | | | llvm-svn: 193253
* X86: Make concat_vectors combine a bit more conservative.Jim Grosbach2013-10-231-0/+6
| | | | | | Per Nadav's review comments for r192866. llvm-svn: 193252
* Use address-taken to disambiguate global variable and indirect memops.Shuxin Yang2013-10-2318-11/+72
| | | | | | | | | | Major steps include: 1). introduces a not-addr-taken bit-field in GlobalVariable 2). GlobalOpt pass sets "not-address-taken" if it proves a global varirable dosen't have its address taken. 3). AA use this info for disambiguation. llvm-svn: 193251
* 64-Bit DWARF support for .debug_aranges and .debug_pubnamesEd Maste2013-10-232-4/+26
| | | | llvm-svn: 193250
* Mark zero-argument functions explicitly in C headers.Benjamin Kramer2013-10-231-4/+4
| | | | | | Pacifies GCC's -Wstrict-prototypes. llvm-svn: 193249
* A decl never becomes unused. Make that explicit in the API.Rafael Espindola2013-10-234-6/+9
| | | | llvm-svn: 193248
* Support for microMIPS relocations 1.Zoran Jovanovic2013-10-236-13/+129
| | | | llvm-svn: 193247
* Refactor out the circular reference to LambdaExpr in CXXRecordDecl.Faisal Vali2013-10-239-77/+161
| | | | | | | | | | | | | | | | | A prior commit of this patch was reverted because it was within the blamelist's purview of a failing test. The failure of that test has been addressed here: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131021/091546.html. Therefore I am recommitting this patch (all tests pass on windows, except for the usual modules & index suspects that never pass on my box). Some background: Both Doug and Richard had asked me in Chicago to remove the circular reference in CXXRecordDecl to LambdaExpr by factoring out and storing the needed information from LambdaExpr directly into CXXRecordDecl. In addition, I have added an IsGenericLambda flag - this makes life a little easier when we implement capturing, and are Sema-analyzing the body of a lambda (and the calloperator hasn't been wired to the closure class yet). Any inner lambdas can have potential captures that could require walking up the scope chain and checking if any generic lambdas are capture-ready. This 'bit' makes some of that checking easier. No change in functionality. This patch was approved by Doug with minor modifications (comments were cleaned up, and all data members were converted from bool/enum to unsigned, as requested): http://llvm-reviews.chandlerc.com/D1856 Thanks! llvm-svn: 193246
* [ASan] ASan can be combined with LSan and UBSan, so export symbol from them ↵Alexey Samsonov2013-10-231-0/+2
| | | | | | as well. llvm-svn: 193245
* [sanitizer] Fix OSX build.Evgeniy Stepanov2013-10-232-19/+27
| | | | llvm-svn: 193244
* Fix cmake dependency on llvm-c-test in testAnders Waldenborg2013-10-231-0/+4
| | | | llvm-svn: 193243
OpenPOWER on IntegriCloud