- Jan 26, 2020
-
-
George Burgess IV authored
Pointed out by Stepan on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2020-January/138617.html
-
Mehdi Amini authored
This is an artifact from merging MLIR into LLVM, the file headers are now aligned with the rest of the project.
-
Craig Topper authored
Every case in the switch had a string version of themselves. Two of them had a typo that used : instead of :: By using a macro we can automate the string creation and avoid the possibility of typos like this. This is similar to what is done on the AMDGPU target.
-
Fangrui Song authored
-fno-pie produces a pair of non-GOT-non-PLT relocations R_PPC_ADDR16_{HA,LO} (R_ABS) referencing external functions. ``` lis 3, func@ha la 3, func@l(3) ``` In a -no-pie/-pie link, if func is not defined in the executable, a canonical PLT entry (st_value>0, st_shndx=0) will be needed. References to func in shared objects will be resolved to this address. -fno-pie -pie should fail with "can't create dynamic relocation ... against ...", so we just need to think about -no-pie. On x86, the PLT entry passes the JMP_SLOT offset to the rtld PLT resolver. On x86-64: the PLT entry passes the JUMP_SLOT index to the rtld PLT resolver. On ARM/AArch64: the PLT entry passes &.got.plt[n]. The PLT header passes &.got.plt[fixed-index]. The rtld PLT resolver can compute the JUMP_SLOT index from the two addresses. For these targets, the canonical PLT entry can just reuse the regular PLT entry (in PltSection). On PPC32: PltSection (.glink) consists of `b PLTresolve` instructions and `PLTresolve`. The rtld PLT resolver depends on r11 having been set up to the .plt (GotPltSection) entry. On PPC64 ELFv2: PltSection (.glink) consists of `__glink_PLTresolve` and `bl __glink_PLTresolve`. The rtld PLT resolver depends on r12 having been set up to the .plt (GotPltSection) entry. We cannot reuse a `b PLTresolve`/`bl __glink_PLTresolve` in PltSection as a canonical PLT entry. PPC64 ELFv2 avoids the problem by using TOC for any external reference, even in non-pic code, so the canonical PLT entry scenario should not happen in the first place. For PPC32, we have to create a PLT call stub as the canonical PLT entry. The code sequence sets up r11. Reviewed By: Bdragon28 Differential Revision: https://reviews.llvm.org/D73399 -
Saar Raz authored
We would previously try to evaluate atomic constraints of non-template functions as-is, and since they are now unevaluated at first, this would cause incorrect evaluation (bugs #44657, #44656). Substitute into atomic constraints of non-template functions as we would atomic constraints of template functions, in order to rebuild the expressions in a constant-evaluated context.
-
Simon Pilgrim authored
-
Fangrui Song authored
Symbol information can be used to improve out-of-range/misalignment diagnostics. It also helps R_ARM_CALL/R_ARM_THM_CALL which has different behaviors with different symbol types. There are many (67) relocateOne() call sites used in thunks, {Arm,AArch64}errata, PLT, etc. Rename them to `relocateNoSym()` to be clearer that there is no symbol information. Reviewed By: grimar, peter.smith Differential Revision: https://reviews.llvm.org/D73254 -
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Jacques Pienaar authored
Revert the MSVC specific parts in whole_archive_link to previous form to potentially address https://bugs.llvm.org/show_bug.cgi?id=44660.
-
Simon Pilgrim authored
[TargetLowering] SimplifyDemandedBits - Remove ashr if all our demandedbits already match the sign bit Differential Revision: https://reviews.llvm.org/D73412
-
Jacques Pienaar authored
Add basic doxygen config following clang and llvm example with minimal changes.
-
Francis Visoiu Mistrih authored
A recent change added a new line after the prefix, so it's now part of the prefix list.
-
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
-