- Jan 26, 2020
-
-
serge-sans-paille authored
Implement a pessimistic evaluator of the minimal required size for a buffer based on the format string, and couple that with the fortified version to emit a warning when the buffer size is lower than the lower bound computed from the format string. Differential Revision: https://reviews.llvm.org/D71566
-
- Jan 25, 2020
-
-
Sam McCall authored
I just fixed a test involving a similar Notification class: 18e6a65b The pattern (notify() on one thread, wait() and then destroy the Notification on the other) seems innocuous enough. I'm not sure we actually use it in clangd, but better safe than sorry.
-
Sam McCall authored
-
Tom Stellard authored
This was introduced by 86c944d7 and caught by the sanitizer-x86_64-linux-fast bot.
-
Jonas Devlieghere authored
BreakpointSites know they're backed by hardware based on whether the "hardware index" is set. This does not appear the to be done for arm/aarch64. https://llvm.org/PR44659
-
Jonas Devlieghere authored
Update test to account for the new 'hardware' field between 'resolved' and 'hit count'.
-
Matt Arsenault authored
-
Tom Stellard authored
Summary: This improves merging of sequences like: store a, ptr + 4 store b, ptr + 8 store c, ptr + 12 store d, ptr + 16 store e, ptr + 20 store f, ptr Prior to this patch the basic block was scanned in order to find instructions to merge and the above sequence would be transformed to: store4 <a, b, c, d>, ptr + 4 store e, ptr + 20 store r, ptr With this change, we now sort all the candidate merge instructions by their offset, so instructions are visited in offset order rather than in the order they appear in the basic block. We now transform this sequnce into: store4 <f, a, b, c>, ptr store2 <d, e>, ptr + 16 Another benefit of this change is that since we have sorted the mergeable lists by offset, we can easily check if an instruction is mergeable by checking the offset of the instruction that becomes before or after it in the sorted list. Once we determine an instruction is not mergeable we can remove it from the list and avoid having to do the more expensive mergeablilty checks. Reviewers: arsenm, pendingchaos, rampitec, nhaehnle, vpykhtin Reviewed By: arsenm, nhaehnle Subscribers: kerbowa, merge_guards_bot, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D65966
-
Jonas Devlieghere authored
Include whether or not a breakpoint is a hardware breakpoint in the breakpoint location. This will show up in things like the breakpoint list. Differential revision: https://reviews.llvm.org/D73389
-
Jonas Devlieghere authored
Recognize hardware breakpoints as breakpoints instead of just mach exceptions. The mach exception is the same for watch and breakpoints, so we have to try each to figure out which is which. Differential revision: https://reviews.llvm.org/D73401
-
James Nagurne authored
I believe this is an oversight from the import of libunwind into its own library from libc++abi. In libc++abi, these files had the .s suffix, which indicates that the file is a preprocessed assembly source file. This caused problems because the files rely upon preprocessors to guard target-specific blocks. To fix this, the CMakeLists file marked these files as C so that the preprocessor would be run over them, but then the compiler would correctly identify the files as assembly and compile them as such. When imported to libunwind, these files were (correctly) renamed with .S suffixes, which are non-preprocessed assembly. Thus, we no longer need the C language property. The benefit here is that the files can now benefit from CMAKE_ASM_FLAGS rather than CMAKE_C_FLAGS. Patch By: JamesNagurne Differential Revision: https://reviews.llvm.org/D72952
-
Richard Smith authored
When used as qualified names, pseudo-destructors are always named as if they were members of the type, never as members of the namespace enclosing the type.
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Weverything authored
-
Vedant Kumar authored
... as well as: Revert "[DWARF] Defer creating declaration DIEs until we prepare call site info" This reverts commit fa4701e1. This reverts commit 79daafc9. There have been reports of this assert getting hit: CalleeDIE && "Could not find DIE for call site entry origin
-
Reid Kleckner authored
SemaDecl.cpp and SemaType.cpp don't have any TreeTransforms.
-
Reid Kleckner authored
-
Reid Kleckner authored
Reduces compile time of SemaDeclAttr.cpp down to 28s from 50s. The new TU does a few RecursiveASTVisitor instantiations, so it takes 30s. Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D73385
-
Reid Kleckner authored
StringMap.h is very popular (4K uses), and it doesn't need to see BumpPtrAllocator, which is relatively expensive according to ClangBuildAnalyzer. StringMap only needs MallocAllocator, so split that into AllocatorBase.h and use it instead. Here is the change in header uses: $ diff -u thedeps-before.txt thedeps-after.txt | \ grep '^[-+] ' | sort | uniq -c | sort -nr 3993 + ../llvm/include/llvm/Support/AllocatorBase.h 758 - ../llvm/include/llvm/Support/Allocator.h 270 - ../llvm/include/llvm/Support/Alignment.h 13 - ../llvm/include/llvm/Support/Host.h 6 - ../llvm/include/llvm/ADT/StringMap.h 4 - ../llvm/include/llvm/Support/SwapByteOrder.h 4 - ../llvm/include/llvm/Support/MathExtras.h 4 - ../llvm/include/llvm/Support/AlignOf.h 4 - ../llvm/include/llvm/ADT/SmallVector.h 1 - ../llvm/include/llvm/Support/PointerLikeTypeTraits.h Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D73392 -
Reid Kleckner authored
Copying operand bundles doesn't need to be inlined, and this template instantiation shows up in ClangBuildAnalyzer.
-
Roland McGrath authored
This is a small refactoring to prepare for porting LSan to Fuchsia. Factor out parts of lsan_thread.{cpp,h} that don't apply to Fuchsia. Since existing supported systems are POSIX-based, the affected code is moved to lsan_posix.{cpp.h}. Patch By: mcgrathr Differential Revision: https://reviews.llvm.org/D73309 -
Roland McGrath authored
This is a small refactoring to prepare for porting LSan to Fuchsia. On Fuchsia, the system supplies a unified API for suspending threads and enumerating roots from OS-specific places like thread state and global data ranges. So its LockStuffAndStopTheWorld implementation will make specific callbacks for all the OS-specific root collection work before making the common callback that includes the actual leak-checking logic. Patch By: mcgrathr Differential Revision: https://reviews.llvm.org/D72988
-
Quentin Colombet authored
Teach the GISelKnowBits analysis how to deal with PHI operations. PHIs are essentially COPYs happening on edges, so we can just reuse the code for COPY. This is NFC COPY-wise has we leave Depth untouched when calling computeKnownBitsImpl for COPYs, like it was before this patch. Increasing Depth is however required for PHIs as they may loop back to themselves and we would end up in an infinite loop if we were not increasing Depth. Differential Revision: https://reviews.llvm.org/D73317
-
Roland McGrath authored
This is needed to port lsan to Fuchsia. Patch By: mcgrathr Differential Revision: https://reviews.llvm.org/D72886
-
aartbik authored
Summary: Rewrites the extract/insert_slices operation in terms of strided_slice/insert_strided_slice ops with intermediate tuple uses (that should get optimimized away with typical usage). This is done in a separate "pass" to enable testing this particular rewriting in isolation. Reviewers: nicolasvasilache, andydavis1, ftynse Reviewed By: nicolasvasilache Subscribers: merge_guards_bot, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, arpith-jacob, mgester, lucyrfox, liufengdb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73295
-
Jonas Devlieghere authored
The current lldbtest format has a number of shortcomings, all related to how we omit information based on why the test fails. For example, a successful test would print nothing, even when `-a` is passed to lit. It's not up to the test format to decide whether to print something or not, that's handled by lit itself. For other test results we would sometimes print stdout & stderr, but not always, such as when a timeout was reached or we couldn't parse the dotest output. This patch changes the lldbtest format and makes it behave more like lit. We now always print the dotest invocation, the exit code, the output to stdout & stderr. If you're used to dealing with ShTests in lit, this will feel all very familiar. Differential revision: https://reviews.llvm.org/D73384
-
Reid Kleckner authored
These are left over from when the class was more complicated. Add a header comment banner to the .cpp file, which was missing.
-
Diogo Sampaio authored
Summary: As discussed in http://lists.llvm.org/pipermail/cfe-dev/2019-October/063459.html the overflow of the souce locations (limited to 2^31 chars) can generate all sorts of weird things (bogus warnings, hangs, crashes, miscompilation and correct compilation). In debug mode this assert would fail. So it might be a good start, as in PR42301, to detect the failure and exit with a proper error message. Reviewers: rsmith, thakis, miyuki Reviewed By: miyuki Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70183
-
Siva Chandra Reddy authored
This allows us to get rid of the PAGE_SIZE macro and use EXEC_PAGESIZE from linux/param.h. Few other points about this change: 1. The linux syscall functions have been moved into a linux specific area instead of src/unistd/syscall.h. The Linux syscall function from unistd.h is a public vararg function. What we have currently are linux speciif internal overloaded C++ functions. So, moving them to a Linux only area is more meaningful. 2. The implementations of mmap and munmap are now in a 'linux' directory within src/sys/mman. The idea here is that platform specific implementations will live in a platform specific subdirectories like these. Infrastructure common to a platform will live in the platform's config directory. For example, the linux syscall implementations live in config/linux. Reviewers: abrachet Tags: #libc-project Differential Revision: https://reviews.llvm.org/D73302
-
Jonas Devlieghere authored
This implements hardware breakpoints for x86_64 and i386 in debugserver. It's based on Pedro's patch sent to lldb-commits [1] although most of it is the same as the existing hardware watchpoint implementation. [1] http://lists.llvm.org/pipermail/lldb-commits/Week-of-Mon-20200113/060327.html Differential revision: https://reviews.llvm.org/D72985
-
Jonas Devlieghere authored
Unify the interface for enabling and disabling breakpoints with their watchpoint counterpart. This allows both to go through DoHardwareBreakpointAction. Differential revision: https://reviews.llvm.org/D72981
-
Mitch Phillips authored
Summary: Adds names to anonymous GWP-ASan mappings. This helps Android with debugging via. /proc/maps, as GWP-ASan-allocated mappings are now easily identifyable. Reviewers: eugenis, cferris Reviewed By: eugenis Subscribers: merge_guards_bot, #sanitizers, llvm-commits, cryptoad, pcc Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D73373
-
@justice_adams (Justice Adams) authored
[SelectionDag] Updated FoldConstantArithmetic method signature in preparation for merge with FoldConstantVectorArithmetic Updated FoldConstantArithmetic method signature to match that of FoldConstantVectorArithmetic in preparation for merging the two functions together https://bugs.llvm.org/show_bug.cgi?id=36544 This is the first step in combining the various FoldConstantVectorArithmetic and FoldConstantVectorArithmetic functions into one FoldConstantArithmetic function. Differential Revision: https://reviews.llvm.org/D72870
-
Duncan P. N. Exon Smith authored
Since 2009 (in r63846) we've been `#define`-ing OBJC_NEW_PROPERTIES all the time on Darwin, but this macro only makes sense for `-x objective-c` and `-x objective-c++`. Restrict it to those cases (for which there is already separate logic). https://reviews.llvm.org/D72970 rdar://problem/10050342
-
Craig Topper authored
I believe for STRICT_FP I need to use a STRICT_FP_EXTEND for the extending to f80 for returning f32/f64 in 32-bit mode when SSE is enabled. The STRICT_FP_EXTEND node requires a Chain. I need to get that node onto the chain before any CopyToRegs are emitted. This is because all the CopyToRegs are glued and chained together. So I can't put a STRICT_FP_EXTEND on the chain between the glued nodes without also glueing the STRICT_ FP_EXTEND. This patch moves all the extend creation to a first pass and then creates the copytoregs and fills out RetOps in a second pass. Differential Revision: https://reviews.llvm.org/D72665
-
Roman Lebedev authored
Long `cl::value_desc()` is added right after the flag name, before `cl::desc()` column. And thus the `cl::desc()` column, for all flags, is padded to the right, which makes the output unreadable.
-
Evgenii Stepanov authored
Summary: These instructions ignore parts of the input vectors which makes the default MSan handling too strict and causes false positive reports. Reviewers: vitalybuka, RKSimon, thakis Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73374
-
Heejin Ahn authored
Summary: This adds bulk memory and tail call to "bleeding-edge" CPU, since their implementation in LLVM/clang seems mostly complete. Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, sunfish, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73322
-
Heejin Ahn authored
Summary: This adds the reference types target feature. This does not enable any more functionality in LLVM/clang for now, but this is necessary to embed the info in the target features section, which is used by Binaryen and Emscripten. It turned out that after D69832 `-fwasm-exceptions` crashed because we didn't have the reference types target feature. Reviewers: tlively Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73320
-