summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix auto_ptr is deprecated warningsMatt Arsenault2013-02-262-22/+22
| | | | llvm-svn: 176123
* Fix assertion failure when a field is given an address space.Matt Arsenault2013-02-264-11/+35
| | | | llvm-svn: 176122
* Fix initializer for variables with attribute address_space set.Matt Arsenault2013-02-262-5/+26
| | | | | | | | | | | | This would error in C++ mode unless the variable also had a cv qualifier. e.g. __attribute__((address_space(2))) float foo = 1.0f; would error but __attribute__((address_space(2))) const float foo = 1.0f; would not. llvm-svn: 176121
* Debug Info: for static member variables, move AT_MIPS_linkage_name fromManman Ren2013-02-262-4/+7
| | | | | | | | | | | TAG_member inside a class to the specification DIE. Having AT_MIPS_linkage_name on TAG_member caused old gdb (GNU 6.3.50) to error out. Also gcc 4.7 has AT_MIPS_linkage_name on the specification DIE. rdar://problem/13291234 llvm-svn: 176120
* Add a test case for r176066.Chad Rosier2013-02-261-0/+10
| | | | llvm-svn: 176119
* AsmParser: More generic support for integer type suffices.Jim Grosbach2013-02-262-6/+15
| | | | | | | | | | For integer constants, allow 'L', 'UL' as well as 'ULL' and 'LL'. This provides better support for shared headers between .s and .c files that define bunches of constant values. rdar://9321056 llvm-svn: 176118
* Fix typoMatt Arsenault2013-02-261-1/+1
| | | | llvm-svn: 176117
* Ensure that DIType is regenerated after we visited an implementation that ↵Adrian Prantl2013-02-267-23/+166
| | | | | | adds ivars to an interface. Fixes rdar://13175234 llvm-svn: 176116
* [analyzer] Use 'MemRegion::printPretty()' instead of assuming the region is ↵Ted Kremenek2013-02-2616-253/+369
| | | | | | | | | | | | a VarRegion. Fixes PR15358 and <rdar://problem/13295437>. Along the way, shorten path diagnostics that say "Variable 'x'" to just be "'x'". By the context, it is obvious that we have a variable, and so this just consumes text space. llvm-svn: 176115
* Warn on dropping the return value from a warn_unused_result function, even inMatt Beaumont-Gay2013-02-262-5/+23
| | | | | | macros. llvm-svn: 176114
* Another test commit. Remove trailing whitespace.Matt Arsenault2013-02-261-1/+1
| | | | llvm-svn: 176113
* Use the most recent decl in getExplicitVisibility.Rafael Espindola2013-02-262-29/+59
| | | | | | | | | | | | | | | | | | | Now that implicitly hidden template arguments can make an instantiation hidden, it is important to look at more than just the canonical decl of the argument in order to see if an attribute is available in a more recent decl. This has the disadvantage of exposing when getExplicitVisibility is called, but lets us handle cases like template <typename T> struct __attribute__((visibility("default"))) barT { static void zed() {} }; class foo; class __attribute__((visibility("default"))) foo; template struct barT<foo>; llvm-svn: 176112
* Test commit. Remove trailing whitespace.Matt Arsenault2013-02-261-3/+3
| | | | llvm-svn: 176111
* Be more careful in applying pragma weak. Fixes pr14974.Rafael Espindola2013-02-262-2/+41
| | | | | | | | | | GCC applies a pragma weak to a decl if it matches the mangled name. We used to apply if it matched the plain name. This patch is a compromise: we apply the pragma only if it matches the name and the decl has C language linkage. llvm-svn: 176110
* Remove a few unused arguments.Chad Rosier2013-02-261-2/+2
| | | | llvm-svn: 176109
* [docs] Use reST link instead of direct HTML link.Sean Silva2013-02-261-1/+1
| | | | llvm-svn: 176108
* Slight cosmetic fixesEli Bendersky2013-02-261-7/+2
| | | | llvm-svn: 176107
* Backed out a hacky fix that is no longer needed.Greg Clayton2013-02-261-3/+0
| | | | llvm-svn: 176106
* R600/SI: Add promotion of e32 to e64 in operand foldingChristian Konig2013-02-261-2/+34
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176105
* R600/SI: add VOP mapping functionsChristian Konig2013-02-263-11/+35
| | | | | | | | Make it possible to map between e32 and e64 encoding opcodes. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176104
* R600/SI: swap operands if it helps foldingChristian Konig2013-02-261-1/+15
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176103
* R600/SI: add some more instruction flagsChristian Konig2013-02-263-14/+92
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176102
* R600/SI: add post ISel folding for SI v2Christian Konig2013-02-265-23/+231
| | | | | | | | | | Include immediate folding and SGPR limit handling for VOP3 instructions. v2: remove leftover hasExtraSrcRegAllocReq Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176101
* R600/SI: add folding helperChristian Konig2013-02-264-0/+30
| | | | | | Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176100
* R600/SI: fix VOP3b encoding v2Christian Konig2013-02-262-6/+32
| | | | | | | | | | v2: document why we hardcode VCC for now. This is a candidate for the mesa-stable branch. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176099
* R600/SI: fix and cleanup SI register definition v2Christian Konig2013-02-262-97/+135
| | | | | | | | | | | | | | | | Prevent producing real strange tablegen code by using proper register sizes, alignments and hierarchy. Also cleanup the unused definitions and add some comments. v2: add SGPR 512 bit registers, stop registers from wrapping around, fix SGPR alignment This is a candidate for the mesa-stable branch. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176098
* R600/SI: fix stupid typoChristian Konig2013-02-261-1/+1
| | | | | | | | This is a candidate for the mesa-stable branch. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 176097
* Adding ARM as supported architectureRenato Golin2013-02-261-3/+3
| | | | llvm-svn: 176096
* Proper XFAILs for ARMv7 / v5Renato Golin2013-02-267-6/+7
| | | | llvm-svn: 176095
* Fix PR15359.Bill Schmidt2013-02-262-0/+33
| | | | | | | The PowerPC TLS relocation types were not previously added to the necessary list in MCELFStreamer::fixSymbolsInTLSFixups(). Now they are! llvm-svn: 176094
* Michael van der Westhuizen: correction to the libcxx build instructions when ↵Howard Hinnant2013-02-261-1/+1
| | | | | | built with libcxxrt on Linux. llvm-svn: 176093
* Fix bad line break decision.Daniel Jasper2013-02-262-3/+5
| | | | | | | | | | | | Before: if (Intervals[i].getRange().getFirst() < Intervals[i - 1] .getRange().getLast()) {} After: if (Intervals[i].getRange().getFirst() < Intervals[i - 1].getRange().getLast()) {} llvm-svn: 176092
* [Sanitizer] Don't die if external symbolizer is used on Mac, where it's not ↵Alexey Samsonov2013-02-262-4/+6
| | | | | | implemented yet llvm-svn: 176091
* GCC 4.6.3 O3 miscompiles on ARMRenato Golin2013-02-261-0/+3
| | | | llvm-svn: 176090
* [sanitizer] A low-level vector implementation to be used in leak checking ↵Kostya Serebryany2013-02-262-0/+63
| | | | | | code. Patch by Sergey Matveev llvm-svn: 176089
* Allow dash before "ld" in android driver test.Evgeniy Stepanov2013-02-261-2/+2
| | | | | | Sometimes android linker is "arm-linux-androideabi-ld", and not just "ld". llvm-svn: 176088
* In range-based for-loops, prefer splitting after ":".Daniel Jasper2013-02-262-5/+7
| | | | | | | | | | | | Before: for (const aaaaaaaaaaaaaaaaaaaaa & aaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {} After: for (const aaaaaaaaaaaaaaaaaaaaa &aaaaaaaaa : aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {} llvm-svn: 176087
* Only keep empty lines in unwrapped lines if they preceed a line comment.Daniel Jasper2013-02-263-13/+19
| | | | | | | | | | | | | | | | | | Empty lines followed by line comments are often used to highlight the comment. Empty lines somewhere else are usually left over from manual or automatic formatting and should probably be removed. Before (clang-format would keep): S s = { a, b }; After: S s = { a, b }; llvm-svn: 176086
* [asan] a bit stricter lint for CHECK vs CHECK_XX (these CHECK_XX really help ↵Kostya Serebryany2013-02-265-6/+7
| | | | | | debugging!) llvm-svn: 176085
* Only break string literals as a last resort.Daniel Jasper2013-02-262-1/+7
| | | | | | | | | | | | | | | | | We might want to move towards doing this if the formatting can be significantly improved, but we need to carefully evaluate the different situations first. Before (the string literal was split by clang-format here): aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaa, aaaaaa("aaa aaaaa aaa aaa aaaaa aaa " "aaaaa aaa aaa aaaaaa")); After: aaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaa, aaaaaa("aaa aaaaa aaa aaa aaaaa aaa aaaaa aaa aaa aaaaaa")); llvm-svn: 176084
* Define CMake option CLANG_INCLUDE_TESTS *before* traversing into tests/ ↵Alexey Samsonov2013-02-261-3/+3
| | | | | | subdirectory. Otherwise, while configuring the build tree for the first time, Clang unit tests could avoid being added to 'check-clang' command, and thus avoid being built and executed. llvm-svn: 176080
* [tsan] enable tsan-vs-gvn test since it is now fixedKostya Serebryany2013-02-261-2/+1
| | | | llvm-svn: 176079
* [asan] fix the output for range accesses (memset, etc); improve the tests; ↵Kostya Serebryany2013-02-263-14/+18
| | | | | | more strict checking in memcmp llvm-svn: 176078
* [asan] use the new attribute syntax (no_address_safety_analysis => ↵Kostya Serebryany2013-02-263-3/+3
| | | | | | no_sanitize_address) llvm-svn: 176077
* Unify clang/llvm attributes for asan/tsan/msan (Clang part)Kostya Serebryany2013-02-2614-33/+320
| | | | | | | | | | | | | | | | | | | These are two related changes (one in llvm, one in clang). LLVM: - rename address_safety => sanitize_address (the enum value is the same, so we preserve binary compatibility with old bitcode) - rename thread_safety => sanitize_thread - rename no_uninitialized_checks -> sanitize_memory CLANG: - add __attribute__((no_sanitize_address)) as a synonym for __attribute__((no_address_safety_analysis)) - add __attribute__((no_sanitize_thread)) - add __attribute__((no_sanitize_memory)) for S in address thread memory If -fsanitize=S is present and __attribute__((no_sanitize_S)) is not set llvm attribute sanitize_S llvm-svn: 176076
* Unify clang/llvm attributes for asan/tsan/msan (LLVM part)Kostya Serebryany2013-02-2625-127/+127
| | | | | | | | | | | | | | | | | | | These are two related changes (one in llvm, one in clang). LLVM: - rename address_safety => sanitize_address (the enum value is the same, so we preserve binary compatibility with old bitcode) - rename thread_safety => sanitize_thread - rename no_uninitialized_checks -> sanitize_memory CLANG: - add __attribute__((no_sanitize_address)) as a synonym for __attribute__((no_address_safety_analysis)) - add __attribute__((no_sanitize_thread)) - add __attribute__((no_sanitize_memory)) for S in address thread memory If -fsanitize=S is present and __attribute__((no_sanitize_S)) is not set llvm attribute sanitize_S llvm-svn: 176075
* Update tests to do a full match against printed C++11 attributes.Michael Han2013-02-261-7/+7
| | | | llvm-svn: 176074
* [Pass][Layout] Fix bug and add debug printing.Michael J. Spencer2013-02-261-2/+21
| | | | | | | | | | Fix a bug where if two atoms had the same index in the override map, the compare would return false. It now goes to the next check when they are equal. No test because it currently can't be tested. An upcomming patch will test it. llvm-svn: 176073
* Use a DenseMap instead of a std::map for AnalysisID -> Pass* maps. This ↵Michael Ilseman2013-02-262-10/+9
| | | | | | reduces the pass-manager overhead from FPPassManager::runOnFunction() by about 10%. llvm-svn: 176072
* A quick variable rename Sean and I had discussed earlier to make things a ↵Greg Clayton2013-02-261-9/+9
| | | | | | bit clearer. llvm-svn: 176071
OpenPOWER on IntegriCloud