summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Fix assertion failure on `at` function in modernize-loop-convert.Haojian Wu2016-02-084-3/+12
| | | | | | | | | | Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16926 llvm-svn: 260107
* Re-apply for the 2nd-time r259977 - [OpenMP] Reorganize code to allow ↵Samuel Antao2016-02-087-3/+92
| | | | | | | | specialized code generation for different devices. This was reverted by r260036, but was not the cause of the problem in the buildbot. llvm-svn: 260106
* [clang-tidy] Correct IncorrectRoundings namespace.Haojian Wu2016-02-082-1/+4
| | | | | | | | | | Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D16987 llvm-svn: 260105
* Move static functions returning UDTs outside of the extern "C" block. ↵Aaron Ballman2016-02-081-32/+33
| | | | | | Silences an MSVC warning, and reduces the number of exported symbols. llvm-svn: 260104
* Fix the alignment of PT_PHDR.Rafael Espindola2016-02-084-4/+5
| | | | | | | We were claiming it was aligned to 8 bytes even on 32 bit files, which is not the case. llvm-svn: 260102
* [AVX512][PROLQ][PROLD] Change imm8 to intMichael Zuckerman2016-02-084-42/+42
| | | | | | Differential Revision: http://reviews.llvm.org/D16983 llvm-svn: 260101
* [clang-tidy] Reshuffled paragraphs a bit, added contents.Alexander Kornienko2016-02-081-13/+19
| | | | llvm-svn: 260100
* [clang-tidy] Fix an error in .rstAlexander Kornienko2016-02-081-2/+4
| | | | llvm-svn: 260099
* [clang-tidy] Update documentationAlexander Kornienko2016-02-081-0/+9
| | | | | | | | | | | | Summary: We have 2 scripts add_new_check.py and rename_check.py to bootstrap a new check creation. There is also clang-query to aid with the matcher creation. These were not mentioned in the current document, add them so it's available to the masses. Reviewers: alexfh Patch by Deniz Türkoglu! Differential Revision: http://reviews.llvm.org/D16944 llvm-svn: 260098
* Reverting r260096; it causes build bot failures:Aaron Ballman2016-02-084-185/+171
| | | | | | | http://bb.pgr.jp/builders/cmake-clang-tools-x86_64-linux/builds/23351 http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/492 llvm-svn: 260097
* Expand the simplify boolean expression check to handle implicit conversion ↵Aaron Ballman2016-02-084-171/+185
| | | | | | | | | | | | of integral types to bool and improve the handling of implicit conversion of member pointers to bool. Implicit conversion of member pointers are replaced with explicit comparisons to nullptr. Implicit conversions of integral types are replaced with explicit comparisons to 0. Patch by Richard Thomson. llvm-svn: 260096
* [SLP] Fix placement of debug statement (NFC)Igor Breger2016-02-081-7/+7
| | | | | | | | By Ayal Zaks (ayal.zaks@intel.com) Differential Revision: http://reviews.llvm.org/D16976 llvm-svn: 260094
* clang/test/OpenMP/parallel_private_codegen.cpp: Fix an expression.NAKAMURA Takumi2016-02-081-1/+1
| | | | | | | | | | call x86_thiscallcc void @_ZN2SSC1ERi( It matched to: <call> x86_this<callcc void @_ZN2SSC1ERi(> llvm-svn: 260093
* [OPENMP] Fix test incompatibility with arm buildbotsAlexey Bataev2016-02-081-2/+2
| | | | llvm-svn: 260092
* [OPENMP] Fixed test incompat with MSVCAlexey Bataev2016-02-081-1/+1
| | | | llvm-svn: 260091
* [asan] XFAIL local_alias.cc testcase on android in order to fix ↵Maxim Ostapenko2016-02-081-0/+2
| | | | | | sanitizer-x86_64-linux buildbot. llvm-svn: 260090
* AVX512: Change builtin function name for scalar intrinsics. Add "mask" to ↵Igor Breger2016-02-081-38/+38
| | | | | | | | function name to reflect the function behavior. Differential Revision: http://reviews.llvm.org/D16958 llvm-svn: 260089
* AVX512: Change builtin function name for scalar intrinsics. Add "mask" to ↵Igor Breger2016-02-083-96/+96
| | | | | | | | function name to reflect the function behavior. Differential Revision: http://reviews.llvm.org/D16957 llvm-svn: 260088
* Revert r260086 and r260085. They have broken the memorySilviu Baranga2016-02-0810-727/+41
| | | | | | sanitizer bots. llvm-svn: 260087
* [LoopVersioning] Don't assert when there are no memchecksSilviu Baranga2016-02-082-11/+10
| | | | | | | | | | | | We shouldn't assert when there are no memchecks, since we can have SCEV checks. There is already an assert covering the case where there are no SCEV checks or memchecks. This also changes the LAA pointer wrapping versioning test to use the loop versioning pass (this was how I managed to trigger the assert in the loop versioning pass). llvm-svn: 260086
* [SCEV][LAA] Add no wrap SCEV predicates and use use them to improve strided ↵Silviu Baranga2016-02-089-40/+727
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | pointer detection Summary: This change adds no wrap SCEV predicates with: - support for runtime checking - support for expression rewriting: (sext ({x,+,y}) -> {sext(x),+,sext(y)} (zext ({x,+,y}) -> {zext(x),+,sext(y)} Note that we are sign extending the increment of the SCEV, even for the zext case. This is needed to cover the fairly common case where y would be a (small) negative integer. In order to do this, this change adds two new flags: nusw and nssw that are applicable to AddRecExprs and permit the transformations above. We also change isStridedPtr in LAA to be able to make use of these predicates. With this feature we should now always be able to work around overflow issues in the dependence analysis. Reviewers: mzolotukhin, sanjoy, anemet Subscribers: mzolotukhin, sanjoy, llvm-commits, rengolin, jmolloy, hfinkel Differential Revision: http://reviews.llvm.org/D15412 llvm-svn: 260085
* [clang-tidy] Move incorrect-roundings to upstream.Haojian Wu2016-02-087-1/+216
| | | | | | | | | | | | Summary: This is originally implemented by Jacques Pienaar. Reviewers: alexfh Subscribers: cfe-commits, jpienaar Differential Revision: http://reviews.llvm.org/D16764 llvm-svn: 260084
* [ELF][MIPS] Support R_MIPS_COPY relocationSimon Atanasyan2016-02-083-0/+72
| | | | | | | Generate R_MIPS_COPY relocation for 'static' relocations against object symbols defined in a shared libraries. llvm-svn: 260083
* Show real error message in -data-evaluate-expressionEugene Leviant2016-02-083-4/+9
| | | | llvm-svn: 260082
* Revert "Enable test_lldbmi_settings_set_target_run_args_before on linux"Pavel Labath2016-02-081-0/+1
| | | | | | Test is still flaky. llvm-svn: 260081
* clang-format: Fix weird alignment when not aligning after brackets.Daniel Jasper2016-02-082-1/+7
| | | | | | | | | | | | | | | | Before: bbbbbbbbbbbb(aaaaaaaaaaaaaaaaaaaaaaaa, // ccccccc(aaaaaaaaaaaaaaaaa, // b)); After: bbbbbbbbbbbb(aaaaaaaaaaaaaaaaaaaaaaaa, // ccccccc(aaaaaaaaaaaaaaaaa, // b)); This fixes llvm.org/PR24905. llvm-svn: 260080
* [asan] XFAIL local alias related tests on Mips due to ↵Maxim Ostapenko2016-02-082-0/+3
| | | | | | https://llvm.org/bugs/show_bug.cgi?id=26525. llvm-svn: 260079
* Have lldb-server log the timestamp in its log messagesPavel Labath2016-02-081-1/+1
| | | | llvm-svn: 260078
* [OPENMP 4.5] Ccapture/codegen of private non-static data members.Alexey Bataev2016-02-0819-31/+343
| | | | | | | OpenMP 4.5 introduces privatization of non-static data members of current class in non-static member functions. To correctly handle such kind of privatization a new (pseudo)declaration VarDecl-based node is added. It allows to reuse an existing code for capturing variables in Lambdas/Block/Captured blocks of code for correct privatization and codegen. llvm-svn: 260077
* [asan] Introduce new approach for ODR violation detection based on odr ↵Maxim Ostapenko2016-02-086-12/+122
| | | | | | | | | | | | | | indicator symbols. This is a compiler-rt part of this http://reviews.llvm.org/D15642 patch. Here, we add a new approach for ODR violation detection. Instead of using __asan_region_is_poisoned(g->beg, g->size_with_redzone) on global address (that would return false now due to using private alias), we can use new globally visible indicator symbol to perform the check. Differential Revision: http://reviews.llvm.org/D15644 llvm-svn: 260076
* [asan] Introduce new hidden -asan-use-private-alias option.Maxim Ostapenko2016-02-082-6/+67
| | | | | | | | | | | | | | | | As discussed in https://github.com/google/sanitizers/issues/398, with current implementation of poisoning globals we can have some CHECK failures or false positives in case of mixing instrumented and non-instrumented code due to ASan poisons innocent globals from non-sanitized binary/library. We can use private aliases to avoid such errors. In addition, to preserve ODR violation detection, we introduce new __odr_asan_gen_XXX symbol for each instrumented global that indicates if this global was already registered. To detect ODR violation in runtime, we should only check the value of indicator and report an error if it isn't equal to zero. Differential Revision: http://reviews.llvm.org/D15642 llvm-svn: 260075
* [Concepts] Implement a portion of Concepts TS[dcl.spec.concept]p1 byNathan Wilson2016-02-085-24/+83
| | | | | | | | | | | | | | diagnosing when 'concept' is specified on a function or template specialization. Since a concept can only be applied to a function or variable template, the concept bit is stored in TemplateDecl as a PointerIntPair. Reviewers: rsmith, faisalv, aaron.ballman, hubert.reinterpretcast Differential Revision: http://reviews.llvm.org/D13357 llvm-svn: 260074
* ELF: Simplify getFdeEncoding.Rui Ueyama2016-02-081-58/+15
| | | | | | | | | | | | | | | | | | | I found that the handling of 'L' character in an augmentation string is wrong because 'L' means that the next byte is the length field. I could have fixed that by just skipping the next byte, but I decided to take a different approach. Teaching the linker about all the types of CIE internal records just to skip them is silly. And the code doing that is not actually executed now (that's why the bug did not cause any issue.) It is because the 'R' field, which we want to read, is always at beginning of the CIE. So I reduced the code dramatically by assuming that that's always the case. I want to see how it works in the wild. If it doesn't work, we can roll this back (with a fix for 'L'). http://reviews.llvm.org/D16939 llvm-svn: 260073
* [LLDB][MIPS] Fix TestExpressionInSyscall.py for MIPSBhushan D. Attarde2016-02-082-4/+26
| | | | | | | | | | | | SUMMARY: This patch fixes TestExpressionInSyscall.py and solves bug 23659 for MIPS. Corrected indentation at couple of places. Reviewers: clayborg Subscribers: mohit.bhakkad, sagar, jaydeep, lldb-commits Differential Revision: http://reviews.llvm.org/D16916 llvm-svn: 260072
* build: silence warnings in in-tree buildSaleem Abdulrasool2016-02-081-14/+17
| | | | | | | | Avoid the developer warnings from cmake when configuring libc++ as part of the LLVM layout. Setup the custom macro paths earlier to re-use the detection logic prior to setting the project properties. llvm-svn: 260071
* [WebAssembly] Add another optimization idea to README.txt.Dan Gohman2016-02-081-0/+5
| | | | llvm-svn: 260070
* [X86] Change FeatureIFMA string to 'avx512ifma'. Matches gcc and fixes PR26461.Craig Topper2016-02-085-5/+5
| | | | llvm-svn: 260069
* [Support] Use hexdigit. NFCCraig Topper2016-02-081-3/+2
| | | | llvm-svn: 260068
* [Support] Fix the examples and assertion for format_hex_no_prefix to take ↵Craig Topper2016-02-081-4/+4
| | | | | | into account that there are no prefix characters to include in Width. llvm-svn: 260067
* [analyzer] Avoid crash when attempting to evaluate binary operation on ↵Devin Coughlin2016-02-082-0/+19
| | | | | | | | | | | LazyCompoundVal. Instead, return UnknownValue if either operand is a nonloc::LazyCompoundVal. This is a spot fix for PR 24951. rdar://problem/23682244 llvm-svn: 260066
* [clang-tidy] Reformatted docs + minor updatesAlexander Kornienko2016-02-082-175/+223
| | | | llvm-svn: 260065
* Disable llvm/test/tools/llvm-profdata/value-prof.proftext on win32 for now. ↵NAKAMURA Takumi2016-02-071-0/+2
| | | | | | Investigating. llvm-svn: 260064
* [X86][SSE] Resolve target shuffle inputs to sentinels to permit more combinesSimon Pilgrim2016-02-073-48/+113
| | | | | | | | | | | | The combineX86ShufflesRecursively only supports unary shuffles, but was missing the opportunity to combine binary shuffles with a zero / undef second input. This patch resolves target shuffle inputs, converting the shuffle mask elements to SM_SentinelUndef/SM_SentinelZero where possible. It then resolves the updated mask to check if we have created a faux unary shuffle. Additionally, we now attempt to recursively call combineX86ShufflesRecursively for all input operands (we used to just recurse for unary integer shuffles and unary unpacks) - it safely returns early if its not a target shuffle. Differential Revision: http://reviews.llvm.org/D16683 llvm-svn: 260063
* [MS ABI] Don't emit RTTI descriptors for dllimport vtablesDavid Majnemer2016-02-072-1/+5
| | | | | | | | A dllimport'd vtable always points one past the RTTI data, this means that the initializer will never end up referencing the data. Our emission is a harmless waste. llvm-svn: 260062
* [X86][SSE] Regenerate PSHUFB shuffle mask comments testsSimon Pilgrim2016-02-071-11/+32
| | | | llvm-svn: 260061
* clang-format: [JS] Don't count shortened object literals as blocks.Daniel Jasper2016-02-072-1/+6
| | | | | | | | | | | | | | | Before: f({a}, () => { g(); // }); After: f({a}, () => { g(); // }); llvm-svn: 260060
* Revert r259961, r259978, r259981.Nico Weber2016-02-074-301/+1
| | | | | | | | | | | | The "sanitizer-windows" buildbot has been failing for two days because of this: FAILED: cl.exe asan_report.cc asan_scariness_score.h(60) : error C2536: '__asan::ScarinessScore::__asan::ScarinessScore::descr' : cannot specify explicit initializer for arrays asan_scariness_score.h(60) : see declaration of '__asan::ScarinessScore::descr' llvm-svn: 260059
* Make nozlibcompress.c pass and reenable it.Nico Weber2016-02-071-5/+1
| | | | llvm-svn: 260058
* clang-format: [JS] Support @see annotations in JSDoc comments in GoogleDaniel Jasper2016-02-071-1/+1
| | | | | | style. llvm-svn: 260057
* Disable failing nozlibcompress.cNico Weber2016-02-071-0/+4
| | | | | | | This test hasn't been running after it was added until r259976 made "REQUIRES: nozlib" work, and now that the test runs it fails. llvm-svn: 260056
OpenPOWER on IntegriCloud