summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* [PowerPC] Expand v2i64 shiftsHal Finkel2014-03-272-0/+46
| | | | | | | | These operations need to be expanded during legalization so that isel does not crash. In theory, we might be able to custom lower some of these. That, however, would need to be follow-up work. llvm-svn: 204963
* Register Allocator: refactoring and add comments.Manman Ren2014-03-271-35/+58
| | | | | | | | No functionality change. Thanks Andy for reviewing. rdar://16162005 llvm-svn: 204962
* Remove another unused argument.Rafael Espindola2014-03-2710-29/+21
| | | | llvm-svn: 204961
* Win installer: provide a pretty iconHans Wennborg2014-03-272-0/+2
| | | | llvm-svn: 204960
* Support for -Wa,-compress-debug-sections.David Blaikie2014-03-278-7/+24
| | | | | | Also, while I'm here, support -nocompress-debug-sections too. llvm-svn: 204959
* DebugInfo: Support for compressed debug info sectionsDavid Blaikie2014-03-277-10/+112
| | | | | | | | | | | | | | | | | | | 1) When creating a .debug_* section and instead create a .zdebug_ section. 2) When creating a fragment in a .zdebug_* section, make it a compressed fragment. 3) When computing the size of a compressed section, compress the data and use the size of the compressed data. 4) Emit the compressed bytes. Also, check that only if a section has a compressed fragment, then that is the only fragment in the section. Assert-fail if the fragment's data is modified after it is compressed. Initial review on llvm-commits by Eric Christopher and Rafael Espindola. llvm-svn: 204958
* DebugInfo: TargetOptions/MCAsmInfo support for compressed debug info sectionsDavid Blaikie2014-03-273-2/+17
| | | | llvm-svn: 204957
* Remove unused argument.Rafael Espindola2014-03-2710-43/+25
| | | | llvm-svn: 204956
* Reverting r204952, while I figure out what's going on with the makefile build.Aaron Ballman2014-03-2713-158/+55
| | | | llvm-svn: 204955
* Don't emit exit-time destructor warnings for trivial explicitly defaulted dtorsStephan Tolksdorf2014-03-273-3/+33
| | | | | | | | This commit also adds an additional test case for the global destructor warning. Reviewed in http://llvm-reviews.chandlerc.com/D3205 llvm-svn: 204954
* Recognize simple cases of trivial explicitly defaulted public dtors as ↵Stephan Tolksdorf2014-03-271-3/+8
| | | | | | | | irrelevant Reviewed in http://llvm-reviews.chandlerc.com/D3190 llvm-svn: 204953
* Clean up the __has_attribute implementation without modifying its behavior. Aaron Ballman2014-03-2713-55/+158
| | | | | | | | Replaces the tablegen-driven AttrSpellings.inc, which lived in the lexing layer with AttrHasAttributeImpl.inc, which lives in the basic layer. Updates the preprocessor to call through to this new functionality which can take additional information into account (such as scopes and syntaxes). Expose the ability for parts of the compiler to ask whether an attribute is supported for a given spelling (including scope), syntax, triple and language options. llvm-svn: 204952
* Fix PR18307: Properly (de)serialize inherited constructors and their using ↵Stephan Tolksdorf2014-03-274-8/+68
| | | | | | | | declarations Reviewed in http://llvm-reviews.chandlerc.com/D3102 llvm-svn: 204951
* Improve handling of bool expressions in template arguments.Manuel Klimek2014-03-273-3/+17
| | | | | | | Now correctly formats: foo<true && false>(); llvm-svn: 204950
* Add an explanatory comment and FIXME about the function declarationEric Christopher2014-03-271-0/+5
| | | | | | for a subprogram DIE. llvm-svn: 204949
* InstCombine: Don't combine constants on unsigned icmpsReid Kleckner2014-03-272-1/+12
| | | | | | | | | Fixes a miscompile introduced in r204912. It would miscompile code like (unsigned)(a + -49) <= 5U. The transform would turn this into (unsigned)a < 55U, which would return true for values in [0, 49], when it should not. llvm-svn: 204948
* Add clang-tidy check to remove redundant .get() calls on smart pointers.Samuel Benzaquen2014-03-276-3/+252
| | | | | | | | | | | | | | | Summary: This check finds and removes redundant .get() calls on smart pointers. Example: ptr.get()->Foo() ==> ptr->Foo() Reviewers: alexfh CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D3186 llvm-svn: 204947
* R600: Implement isZExtFree.Matt Arsenault2014-03-277-6/+66
| | | | | | | This allows 64-bit operations that are truncated to be reduced to 32-bit ones. llvm-svn: 204946
* R600/SI: Fix unreachable with a sext_in_reg to an illegal type.Matt Arsenault2014-03-275-4/+49
| | | | llvm-svn: 204945
* Comment parsing: use different comment styles in different test casesDmitri Gribenko2014-03-271-2/+2
| | | | llvm-svn: 204944
* [mips] Some uses of isMips64()/hasMips64() are really tests for 64-bit GPR'sDaniel Sanders2014-03-276-23/+23
| | | | | | | | | | | | Summary: No functional change since these predicates are (currently) synonymous. Extracted from a patch by David Chisnall His work was sponsored by: DARPA, AFRL Differential Revision: http://llvm-reviews.chandlerc.com/D3202 llvm-svn: 204943
* Comment parsing: attach comments to enums declared using the NS_ENUM macroDmitri Gribenko2014-03-273-17/+47
| | | | | | Previously we would only attach comments to the typedef. llvm-svn: 204942
* Enforce the restriction that a parameter to a kernel functionDavid Tweed2014-03-273-2/+19
| | | | | | | | | cannot be a pointer to the private address space (as clarified in the OpenCL 1.2 specification). Patch by Fraser Cormack! llvm-svn: 204941
* [AArch64] Lower SHL_PARTS, SRA_PARTS and SRL_PARTSLogan Chien2014-03-273-0/+134
| | | | | | | | Lower SHL_PARTS, SRA_PARTS and SRL_PARTS to perform 128-bit integer shift Patch by GuanHong Liu. llvm-svn: 204940
* InstrProf: Pull in runtime on non-DarwinDuncan P. N. Exon Smith2014-03-271-0/+7
| | | | | | | r204379 changed the way the profile runtime gets pulled in, but missed updating non-Darwin targets. llvm-svn: 204939
* Add a module cache path to the test that uses -fmodulesDmitri Gribenko2014-03-271-1/+2
| | | | llvm-svn: 204938
* clang-format: Avoid line-breaks that increase the current column.Daniel Jasper2014-03-272-8/+11
| | | | | | | | | | | | | | | | | | While these might make sense for some rule (e.g. break after multi-line operand), they generally appear ugly and confusing. Before: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) After: fffffffffff(R\"x( multiline raw string literal xxxxxxxxxxxxxx )x\" + bbbbbb) llvm-svn: 204937
* Comment parsing: when comment ranges are deserialized from multiple modules,Dmitri Gribenko2014-03-278-18/+68
| | | | | | | | | correctly order comments in SourceManager::isBeforeInTranslationUnit() order Unfortunately, this is not as simple as it was implemented previously, and actually requires doing a merge sort. llvm-svn: 204936
* Handle and warn on aliases to weak aliases.Rafael Espindola2014-03-274-1/+42
| | | | | | | This produces valid IR now that llvm rejects aliases to weak aliases and warns the user that the resolution is not changed if the weak alias is overridden. llvm-svn: 204935
* Prevent alias from pointing to weak aliases.Rafael Espindola2014-03-2718-61/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds back r204781. Original message: Aliases are just another name for a position in a file. As such, the regular symbol resolutions are not applied. For example, given define void @my_func() { ret void } @my_alias = alias weak void ()* @my_func @my_alias2 = alias void ()* @my_alias We produce without this patch: .weak my_alias my_alias = my_func .globl my_alias2 my_alias2 = my_alias That is, in the resulting ELF file my_alias, my_func and my_alias are just 3 names pointing to offset 0 of .text. That is *not* the semantics of IR linking. For example, linking in a @my_alias = alias void ()* @other_func would require the strong my_alias to override the weak one and my_alias2 would end up pointing to other_func. There is no way to represent that with aliases being just another name, so the best solution seems to be to just disallow it, converting a miscompile into an error. llvm-svn: 204934
* [OPENMP] OMPExecutableDirective re-factoringAlexander Musman2014-03-272-24/+32
| | | | | | | | Store the number of clauses and children of OMPExecutableDirective and dynamically compute the locations of corresponding arrays. http://llvm-reviews.chandlerc.com/D2977 llvm-svn: 204933
* [mips] Attempting to use register $32 should be an error instead of an ↵Daniel Sanders2014-03-272-1/+9
| | | | | | | | | | | | assertion. Reviewers: matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3201 llvm-svn: 204932
* ClangTidy.cpp: Don't use non-static member initializer, for msc17.NAKAMURA Takumi2014-03-271-3/+3
| | | | llvm-svn: 204931
* clang-format: Extract getNewLineColumn out of addTokenOnNewLine.Daniel Jasper2014-03-272-74/+103
| | | | | | No functional changes intended. llvm-svn: 204930
* [sanitizer] Intercept __bzero on Mac.Evgeniy Stepanov2014-03-273-3/+17
| | | | | | This should make memset_test pass on Mac. llvm-svn: 204929
* The forward declare should be a struct instead of a class (to be consistent ↵Aaron Ballman2014-03-271-1/+1
| | | | | | with the definition, as well as to silence an MSVC C4099 warning). llvm-svn: 204928
* [sanitizer] Fix Android build.Evgeniy Stepanov2014-03-271-1/+1
| | | | llvm-svn: 204927
* [msan] Implement __msan_set_death_callback.Evgeniy Stepanov2014-03-276-0/+56
| | | | llvm-svn: 204926
* Add support for _expand[_dbg] so we don't crash when _aligned_* allocation ↵Timur Iskhodzhanov2014-03-272-0/+20
| | | | | | functions are used llvm-svn: 204925
* [mips] Add support for .cpsetupDaniel Sanders2014-03-272-0/+169
| | | | | | | | | | | | | | Summary: Patch by Robert N. M. Watson His work was sponsored by: DARPA, AFRL Small corrections by myself. CC: theraven, matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3199 llvm-svn: 204924
* [msan] Intercept several malloc-related functions.Evgeniy Stepanov2014-03-275-9/+73
| | | | llvm-svn: 204923
* [mips] The decision between GOT_DISP and GOT16 for global addresses depends ↵Daniel Sanders2014-03-271-2/+2
| | | | | | | | | | | | | | on ABI rather than MIPS64 Summary: No functional change (for supported use cases) Reviewers: matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3191 llvm-svn: 204922
* Split the file MipsAsmBackend.cpp in Split the file MipsAsmBackend.cpp and ↵Zoran Jovanovic2014-03-272-195/+241
| | | | | | | | Split the file MipsAsmBackend.h. Differential Revision: http://llvm-reviews.chandlerc.com/D3134 llvm-svn: 204921
* All new elements except the last one initialized to NULL. Ideally, once ↵Karthik Bhat2014-03-273-7/+165
| | | | | | | | | parsing is complete, all elements should be non-NULL. To safe-guard BitcodeReader, this patch adds null check for all access to these list. Patch by Dinesh Dwivedi! llvm-svn: 204920
* [mips] Remove unused private field.Matheus Almeida2014-03-271-2/+1
| | | | llvm-svn: 204919
* [mips] NaCl should now use the custom MipsELFStreamer (recently added) in spiteMatheus Almeida2014-03-273-14/+18
| | | | | | | | | | | | | | of MCELFStreamer. This is so that changes to MipsELFStreamer will automatically propagate through its subclasses. No functional changes (MipsELFStreamer has the same functionality of MCELFStreamer at the moment). Differential Revision: http://llvm-reviews.chandlerc.com/D3130 llvm-svn: 204918
* [mips] Implement custom MCELFStreamer.Matheus Almeida2014-03-274-1/+66
| | | | | | | | | | | | | This allows us to insert some hooks before emitting data into an actual object file. For example, we can capture the register usage for a translation unit by overriding the EmitInstruction method. The register usage information is needed to generate .reginfo and .Mips.options ELF sections. No functional changes. Differential Revision: http://llvm-reviews.chandlerc.com/D3129 llvm-svn: 204917
* Untabify.NAKAMURA Takumi2014-03-271-3/+3
| | | | llvm-svn: 204916
* SmallVector<3> may be used here.NAKAMURA Takumi2014-03-271-1/+1
| | | | llvm-svn: 204915
* IRTests/InstructionsTest.cpp: Avoid initializer list.NAKAMURA Takumi2014-03-271-4/+4
| | | | llvm-svn: 204914
OpenPOWER on IntegriCloud