summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix syntax in lldb lit.cfgReid Kleckner2017-09-151-1/+1
| | | | llvm-svn: 313332
* [cmake] Fix a variable shadowing bugReid Kleckner2017-09-151-0/+1
| | | | llvm-svn: 313331
* [COFF] Remove unused variable NFCReid Kleckner2017-09-151-1/+0
| | | | llvm-svn: 313330
* [codeview] Use a type index of zero for static method "this" typesReid Kleckner2017-09-152-4/+40
| | | | | | | Otherwise VS won't show anything in the autos or watch window of static methods. llvm-svn: 313329
* [lit] Revert "Add a lit.llvm module that all llvm projects can use"Zachary Turner2017-09-156-164/+157
| | | | | | | This is breaking due to some changes I forgot to merge in, so I'm temporarily reverting them until I can re-test that this works. llvm-svn: 313328
* Wire up the breakpoint name help string.Jim Ingham2017-09-157-12/+69
| | | | llvm-svn: 313327
* [lit] Remove some code that I forgot to remove.Zachary Turner2017-09-151-8/+0
| | | | llvm-svn: 313326
* [lit] Add a lit.llvm module that all test suites can use.Zachary Turner2017-09-156-157/+172
| | | | | | | | | | | | | | To further reduce duplicate code, this patch introduces a module that configs can simply import and get access to a lot of useful functionality such as setting up paths, adding features that are useful across all projects, and other utility-type functions. For now this only updates llvm's suite to use this new library, but subsequent patches will update other projects. Differential Revision: https://reviews.llvm.org/D37778 llvm-svn: 313325
* Fix accidental ADL in std::allocator_traits meta-programming.Eric Fiselier2017-09-159-6/+90
| | | | | | | | | | | There were a number of cases where __double_underscore functions, for example __has_construct_test, were called without being qualified, causing ADL to occur. This patch qualifies those calls to avoid this problem. Thanks to David L. Jones for point out the issue initially. llvm-svn: 313324
* [Sema] Correct typos in LHS, RHS before building a binop expression.Volodymyr Sapsai2017-09-153-15/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, typo correction should be done before dispatching between different kinds of binary operations like pseudo-object assignment, overloaded binary operation, etc. Without this change we hit an assertion Assertion failed: (!LHSExpr->hasPlaceholderType(BuiltinType::PseudoObject)), function CheckAssignmentOperands when in Objective-C we reference a property without `self` and there are 2 equally good typo correction candidates: ivar and a class name. In this case LHS expression in `BuildBinOp` is CXXDependentScopeMemberExpr `-TypoExpr and instead of handling Obj-C property assignment as pseudo-object assignment, we call `CreateBuiltinBinOp` which corrects typo to ObjCPropertyRefExpr '<pseudo-object type>' but cannot handle pseudo-objects and asserts about it (indirectly, through `CheckAssignmentOperands`). rdar://problem/33102722 Reviewers: rsmith, ahatanak, majnemer Reviewed By: ahatanak Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37322 llvm-svn: 313323
* Refactor collectChildrenInLoop to LoopUtils [NFC]Alina Sbirlea2017-09-153-23/+26
| | | | | | | | | | | | Summary: Move to LoopUtils method that collects all children of a node inside a loop. Reviewers: majnemer, sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D37870 llvm-svn: 313322
* [lsan] Disable clang-format on few RUN: statementsVitaly Buka2017-09-153-1/+12
| | | | llvm-svn: 313321
* Fix reStructuredText warning.Douglas Gregor2017-09-141-1/+1
| | | | llvm-svn: 313320
* [MSan] Specify use-after-dtor default value in header.Matt Morehouse2017-09-141-1/+3
| | | | llvm-svn: 313319
* Minor cleanups to address feedback from Bruno. NFCDouglas Gregor2017-09-142-9/+7
| | | | llvm-svn: 313318
* Add /System/Library/PrivateFrameworks as a header search path.Douglas Gregor2017-09-141-0/+1
| | | | | | Addresses rdar://problem/34438708. llvm-svn: 313317
* [Module map] Introduce a private module re-export directive.Douglas Gregor2017-09-1410-2/+128
| | | | | | | | | | | | | Introduce a new "export_as" directive for top-level modules, which indicates that the current module is a "private" module whose symbols will eventually be exported through the named "public" module. This is in support of a common pattern in the Darwin ecosystem where a single public framework is constructed of several private frameworks, with (currently) header duplication and some support from the linker. Addresses rdar://problem/34438420. llvm-svn: 313316
* Diagnostic specific failed condition in a static_assert.Douglas Gregor2017-09-145-16/+64
| | | | | | | | When a static_assert fails, dig out a specific condition to diagnose, using the same logic that we use to find the enable_if condition to diagnose. llvm-svn: 313315
* [MSan] Add flag to disable use-after-dtor.Matt Morehouse2017-09-144-4/+17
| | | | | | | | | | | | | | Summary: Flag is -fno-sanitize-use-after-dtor. Reviewers: vitalybuka, eugenis, kcc Reviewed By: vitalybuka, eugenis Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D37867 llvm-svn: 313314
* [WebAssembly] Use a separate wasm data segment for each global symbolSam Clegg2017-09-145-104/+164
| | | | | | | | | | This is stepping stone towards honoring -fdata-sections and letting the assembler decide how many wasm data segments to create. Differential Revision: https://reviews.llvm.org/D37834 llvm-svn: 313313
* Fix bug 34608 by moving private header out of public header.Eric Beckmann2017-09-142-1/+1
| | | | | | | | | | | | | | | | | | WindowsManifestMerger.h should not include llvm/Config/config.h, since it is private. The include has been moved to the source instead. Summary: The checksums had already been placed in the IR, this patch allows MCCodeView to actually write it out to an MCStreamer. Move private config.h header dependency out of public header file. Addresses Bug 34608 Subscribers: javed.absar, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D37863 llvm-svn: 313312
* [X86] Remove an unnecessary SmallVector from LowerBUILD_VECTOR.Craig Topper2017-09-141-4/+2
| | | | | | I think this may have existed to convert from SDUse to SDValue, but it doesn't look like its needed now. llvm-svn: 313311
* [sanitizer] Move stack overflow and signal reporting from Asan into common.Vitaly Buka2017-09-144-57/+89
| | | | | | | | | | | | Summary: Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl Subscribers: kubamracek Differential Revision: https://reviews.llvm.org/D37844 llvm-svn: 313310
* [asan] Remove ErrorStackOverflowVitaly Buka2017-09-145-86/+62
| | | | | | | | | | | | | | | | Summary: The only difference from ErrorDeadlySignal is reporting code and it lives in sanitizer common. Part of https://github.com/google/sanitizers/issues/637 Reviewers: eugenis, alekseyshl, filcab Subscribers: llvm-commits, kubamracek Differential Revision: https://reviews.llvm.org/D37868 llvm-svn: 313309
* Fix ASAN build with older compiler-rt versions.Eric Fiselier2017-09-141-3/+2
| | | | | | | | | | | compiler-rt recently added the __asan_handle_no_return() function that libc++abi needs to use, however older versions of compiler-rt don't declare this interface publicly and that breaks the libc++abi build. This patch attempts to fix the issues by declaring the asan function explicitly, so we don't depend on compiler-rt to provide the declaration. llvm-svn: 313308
* [WebAssembly] Fix wasm-toolchain.c testsSam Clegg2017-09-141-11/+3
| | | | | | | | | | Summary: This test should have been updated in r313299 Subscribers: jfb, dschuff, jgravelle-google, aheejin Differential Revision: https://reviews.llvm.org/D37873 llvm-svn: 313307
* [ASAN] Revert r313303 - Add macro denoting availability of new ↵Eric Fiselier2017-09-141-4/+0
| | | | | | | | | | `__asan_handle_no_return()` function. It was pointed out that compiler-rt has always defined the symbol, but only recently added it to the public headers. Meaning that libc++abi can re-declare it instead of needing this macro. llvm-svn: 313306
* Mention breakpoint names in the tutorial.Jim Ingham2017-09-141-3/+64
| | | | llvm-svn: 313305
* [libc++abi] Fix ASAN build with older compiler-rt versions.Eric Fiselier2017-09-141-1/+2
| | | | | | | | | | | | | | | | | | | Summary: compiler-rt recently added the `__asan_handle_no_return()` function that libc++abi needs to use, however older versions of compiler-rt don't provide this interface and that breaks the libc++abi build. This patch attempts to fix the issues by using a macro to detect if `asan_interface.h` is new enough to provide the function. See D37871 Reviewers: phosek, vitalybuka Reviewed By: phosek, vitalybuka Subscribers: dberris, cfe-commits Differential Revision: https://reviews.llvm.org/D37872 llvm-svn: 313304
* [ASAN] Add macro denoting availability of new `__asan_handle_no_return()` ↵Eric Fiselier2017-09-141-0/+4
| | | | | | | | | | | | | | | | | | | function. Summary: Libc++abi attempts to use the newly added `__asan_handle_no_return()` when built under ASAN. Unfortunately older versions of compiler-rt do not provide this symbol, and so libc++abi needs a way to detect if `asan_interface.h` actually provides the function. This patch adds the macro `SANITIZER_ASAN_INTERFACE_HAS_HANDLE_NO_RETURN` which can be used to detect the availability of the new function. Reviewers: phosek, kcc, vitalybuka, alekseyshl Reviewed By: phosek Subscribers: mclow.lists, cfe-commits Differential Revision: https://reviews.llvm.org/D37871 llvm-svn: 313303
* Fix warnings in r313297.Jan Sjodin2017-09-142-5/+3
| | | | llvm-svn: 313302
* [lit] Fix some windows line endings that snuck in.Zachary Turner2017-09-141-2/+2
| | | | llvm-svn: 313301
* Fix 2 stage build on some apple bots.Zachary Turner2017-09-141-0/+1
| | | | | | | | | | | | The recent lit refactor changed the location of the lit script run by check targets from <source>/utils/lit/lit.py to <bin>/llvm-lit.py. In some 2-stage build scenarios, the location of <bin> was not properly passed through to the second stage, and it was looking for /llvm-lit.py instead, causing failures. Fix suggested by Mike Edwards and Chris Bieneman @apple llvm-svn: 313300
* [WebAssembly] Remove invliad lld argumentsSam Clegg2017-09-141-27/+0
| | | | | | | | | | | These arguments don't (not yet at least) make sense for the wasm lld port. Subscribers: jfb, dschuff, jgravelle-google, aheejin Differential Revision: https://reviews.llvm.org/D36595 llvm-svn: 313299
* AMDGPU: Fix violating constant bus restrictionMatt Arsenault2017-09-142-4/+27
| | | | | | You can't use madmk/madmk if it already uses an SGPR input. llvm-svn: 313298
* Add AddresSpace to PseudoSourceValue.Jan Sjodin2017-09-149-30/+87
| | | | | | Differential Revision: https://reviews.llvm.org/D35089 llvm-svn: 313297
* Remove BreakpointName.h from all targets so it doesn't Jim Ingham2017-09-141-2/+0
| | | | | | get included in headermaps or put in a CopyFiles phase. llvm-svn: 313296
* Subtarget support for parameterized register class informationKrzysztof Parzyszek2017-09-145-5/+48
| | | | | | | | Implement "checkFeatures" and emitting HW mode check code. Differential Revision: https://reviews.llvm.org/D31959 llvm-svn: 313295
* [scudo] Fix bad request handling when allocator has not been initializedKostya Kortchinsky2017-09-143-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: In a few functions (`scudoMemalign` and the like), we would call `ScudoAllocator::FailureHandler::OnBadRequest` if the parameters didn't check out. The issue is that if the allocator had not been initialized (eg: if this is the first heap related function called), we would use variables like `allocator_may_return_null` and `exitcode` that still had their default value (as opposed to the one set by the user or the initialization path). To solve this, we introduce `handleBadRequest` that will call `initThreadMaybe`, allowing the options to be correctly initialized. Unfortunately, the tests were passing because `exitcode` was still 0, so the results looked like success. Change those tests to do what they were supposed to. Reviewers: alekseyshl Reviewed By: alekseyshl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D37853 llvm-svn: 313294
* Add new files to the cmake lists.Jim Ingham2017-09-142-0/+3
| | | | llvm-svn: 313293
* Make breakpoint names real entities.Jim Ingham2017-09-1450-607/+2744
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When introduced, breakpoint names were just tags that you could apply to breakpoints that would allow you to refer to a breakpoint when you couldn't capture the ID, or to refer to a collection of breakpoints. This change makes the names independent holders of breakpoint options that you can then apply to breakpoints when you add the name to the breakpoint. It adds the "breakpoint name configure" command to set up or reconfigure breakpoint names. There is also full support for then in the SB API, including a new SBBreakpointName class. The connection between the name and the breakpoints sharing the name remains live, so if you reconfigure the name, all the breakpoint options all change as well. This allows a quick way to share complex breakpoint behavior among a bunch of breakpoints, and a convenient way to iterate on the set. You can also create a name from a breakpoint, allowing a quick way to copy options from one breakpoint to another. I also added the ability to make hidden and delete/disable protected names. When applied to a breakpoint, you will only be able to list, delete or disable that breakpoint if you refer to it explicitly by ID. This feature will allow GUI's that need to use breakpoints for their own purposes to keep their breakpoints from getting accidentally disabled or deleted. <rdar://problem/22094452> llvm-svn: 313292
* Revert "[mips] Fix sem_init_glibc test for MIPS."Simon Dardis2017-09-141-5/+3
| | | | | | | | | | | The commit did not fix the failing test and instead exposed an inconsistency between lsan and (t|m|a)san. I'm reverting the patch as it causes more failures and the original patch had a '||' instead of '&&', which meant that an N32 build of test would have be incorrect w.r.t. __HAVE_64B_ATOMICS for glibc. This reverts commit r313248. llvm-svn: 313291
* Fix refactoring missed in previous commit r313270 which resulted in an ↵Douglas Yung2017-09-141-1/+1
| | | | | | undefined variable being used. llvm-svn: 313290
* Add tests for -out-implib.Rui Ueyama2017-09-141-0/+6
| | | | llvm-svn: 313289
* [TargetTransformInfo] Detect 0 latency instructionsGuozhi Wei2017-09-142-1/+21
| | | | | | | | For instructions that unlikely generate machine instructions, they should also have 0 latency. Differential Revision: https://reviews.llvm.org/D37833 llvm-svn: 313288
* Remove usages of deprecated std::unary_function and std::binary_function.Benjamin Kramer2017-09-147-13/+12
| | | | | | | | | | These are removed in C++17. We still have some users of unary_function::argument_type, so just spell that typedef out. No functionality change intended. Note that many of the argument types are actually wrong :) llvm-svn: 313287
* Accept not only --foo but also -foo.Rui Ueyama2017-09-142-5/+12
| | | | | | | | | | | | | GNU ld manual says that multi-letter long option can be prefixed with either -- or -. Therefore, we should accept not only --subsystem but also -subsystem, for example. There is one exception. If an option starts with "o", it should only be prefixed with -- to avoid ambiguity with -o<filename> option. Differential Revision: https://reviews.llvm.org/D37825 llvm-svn: 313286
* Filenames are case-insensitive on Windows, so .DEF is the same as .def.Rui Ueyama2017-09-142-3/+6
| | | | | | Differential Revision: https://reviews.llvm.org/D37823 llvm-svn: 313285
* [libc++] Prevent stale site configuration headersShoaib Meenai2017-09-141-1/+7
| | | | | | | | | | | If we define cmake macros that require a site config, and then undefine all such macros, a stale site config header will be left behind. Explicitly delete any generate site config if we don't need one to avoid this. Differential Revision: https://reviews.llvm.org/D36720 llvm-svn: 313284
* [asan] Disable two dynamic tests on armhfVitaly Buka2017-09-142-0/+6
| | | | | | | This is not an regression. Tests are old and we just recently started to run them on bots with dynamic runtime. llvm-svn: 313283
OpenPOWER on IntegriCloud