1. Sep 14, 2018
  2. Sep 13, 2018
    • Peter Smith's avatar
      [ELF] Guard --fix-cortex-a53-843419 against --just-syms · f31f5961
      Peter Smith authored
      If --just-syms is used the mapping symbols from the ELF file will be
      absolute symbols with no section. The code to process mapping symbols in
      --fix-cortex-a53-843419 assumes that these symbols have a defining section
      so a crash will result when --just-syms is used. The simple fix is to not
      process the symbol when it doesn't have a section.
      
      Fixes PR37971
      
      Differential Revision: https://reviews.llvm.org/D52038
      
      llvm-svn: 342146
      f31f5961
    • Azharuddin Mohammed's avatar
      Add missing REQUIRES x86 to test/COFF/icf-safe.s · 4dce517c
      Azharuddin Mohammed authored
      Reviewers: ruiu, pcc
      
      Reviewed By: ruiu
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D51764
      
      llvm-svn: 342145
      4dce517c
    • Azharuddin Mohammed's avatar
      Fix typo in error message. NFC. · e41386b4
      Azharuddin Mohammed authored
      Summary: It should be "wasm-ld", not "wasm-lld".
      
      Reviewers: ruiu
      
      Reviewed By: ruiu
      
      Subscribers: aheejin, sunfish, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D51767
      
      llvm-svn: 342144
      e41386b4
    • Kirill Bobyrev's avatar
      [clangd] Fix Dexp build · bd72b08e
      Kirill Bobyrev authored
      %s/MaxCandidateCount/Limit/g after rL342138.
      
      llvm-svn: 342143
      bd72b08e
    • Jonas Devlieghere's avatar
      [DWARFExpression] Read literars as unsigned values. · bf2d112c
      Jonas Devlieghere authored
      After landing r341457, we started seeing a failure on the swift-lldb
      bots. The change was correct and pretty straightforward, a DW_OP_constu
      was replaced with DW_OP_lit23, the value remaining identical.
      
        0x000000f4: DW_TAG_variable
      		DW_AT_location    (0x00000000
      		  [0x0000000100000a51,  0x0000000100000d47): DW_OP_lit23, DW_OP_stack_value)
      		DW_AT_name        ("number")
      
      However, this broke LLDB.
      
        (Int) number = <extracting data from value failed>
      
      The value was read correctly, but apparently the value's type was different.
      When reading a constu it was reading a uint64 (m_type = e_ulonglong) while for
      the literal, it got a signed int (m_type = e_sint). This change makes sure we
      read the value as an unsigned.
      
      Differential revision: https://reviews.llvm.org/D51730
      
      llvm-svn: 342142
      bf2d112c
    • Sam Parker's avatar
      [ARM] Allow truncs as sources in ARM CGP · aaec3c62
      Sam Parker authored
      We previously only allowed truncs as sinks, but now allow them as
      sources too. We do this by checking that the result type is the
      narrow type that we're trying to optimise for.
      
      Differential Revision: https://reviews.llvm.org/D51978
      
      llvm-svn: 342141
      aaec3c62
    • Sam Parker's avatar
      [ARM] Fix FixConst for ARMCodeGenPrepare · 96f77f14
      Sam Parker authored
      Part of FixConsts wrongly assumes either a 8- or 16-bit constant
      which can result in the wrong constants being generated during
      promotion.
      
      Differential Revision: https://reviews.llvm.org/D52032
      
      llvm-svn: 342140
      96f77f14
    • David Bolvansky's avatar
      Print correctly dependency paths on Windows · c96cb25a
      David Bolvansky authored
      Summary:
      Before:
      main.o: main.c ../include/lib\test.h
      
      After:
      main.o: main.c ../include/lib/test.h
      
      Fixes PR38877
      
      Reviewers: zturner
      
      Subscribers: xbolva00, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D51847
      
      llvm-svn: 342139
      c96cb25a
    • Kirill Bobyrev's avatar
      [clangd] Cleanup FuzzyFindRequest filtering limit semantics · e6dd0806
      Kirill Bobyrev authored
      As discussed during D51860 review, it is better to use `llvm::Optional`
      here as it has clear semantics which reflect intended behavior.
      
      Reviewed By: sammccall
      
      Differential Revision: https://reviews.llvm.org/D52028
      
      llvm-svn: 342138
      e6dd0806
    • Kirill Bobyrev's avatar
      [clangd] Use JSON format in benchmark requests reader · 60be1f59
      Kirill Bobyrev authored
      After `FuzzyFindRequest` JSON (de)serialization was introduced, it
      should replace ad-hoc fuzzy-find request parsing implemented in the
      IndexBenchmark driver.
      
      Reviewed By: ilya-biryukov
      
      Differential Revision: https://reviews.llvm.org/D51971
      
      llvm-svn: 342137
      60be1f59
    • Jonas Devlieghere's avatar
      [MC/Dwarf] Unclamp DWARF linetables format on Darwin. · 64c901d2
      Jonas Devlieghere authored
      In r319995, we fixed the line table format to version 2 on Darwin
      because dsymutil didn't yet understand the new format which caused test
      failures for the LLDB bots. This has been resolved in the meantime so
      there's no reason to keep this limitation.
      
      rdar://problem/35968332
      
      llvm-svn: 342136
      64c901d2
    • Sam McCall's avatar
      [clangd] Allow all LSP methods to signal cancellation via $/cancelRequest · 45be5cf0
      Sam McCall authored
      Summary:
      The cancelable scopes are managed by JSONRPCDispatcher so that all Handlers
      run in cancelable contexts.
      (Previously ClangdServer did this, for code completion only).
      
      Cancellation request processing is therefore also in JSONRPCDispatcher.
      (Previously it was in ClangdLSPServer).
      
      This doesn't actually make any new commands *respect* cancellation - they'd
      need to check isCancelled() and bail out. But it opens the door to doing
      this incrementally, and putting such logic in common machinery like TUScheduler.
      
      I also rewrote the ClangdServer class/threading comments because I wanted to
      add to it and I got carried away.
      
      Reviewers: ilya-biryukov, kadircet
      
      Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D52004
      
      llvm-svn: 342135
      45be5cf0
    • Eric Liu's avatar
      [clangd] Clarify and hide -index flag. · 76b88d8e
      Eric Liu authored
      Summary:
      The wording implies global index support, which is confusing.
      As most users shouldn't care about this flag, also make it hidden to avoid
      further confusion.
      
      Reviewers: sammccall, ilya-biryukov
      
      Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D51977
      
      llvm-svn: 342134
      76b88d8e
    • Matt Arsenault's avatar
      AMDGPU: Fix not preserving alignent in call setups · ff987ac6
      Matt Arsenault authored
      If an argument was passed on the stack, this
      was using the default alignment.
      
      I'm not sure there's an observable change from this. This
      was observable due to bugs in expansion of unaligned
      loads and stores, but since that is fixed I don't think
      this matters much.
      
      llvm-svn: 342133
      ff987ac6
    • Matt Arsenault's avatar
      DAG: Fix expansion of unaligned FP loads and stores · 842cda63
      Matt Arsenault authored
      This was trying to scalarizing a scalar FP type,
      resulting in an assert.
      
      Fixes unaligned f64 stack stores for AMDGPU.
      
      llvm-svn: 342132
      842cda63
    • Matt Arsenault's avatar
      AMDGPU: Fix some outdated datalayouts in tests · 9de2fb58
      Matt Arsenault authored
      llvm-svn: 342131
      9de2fb58
    • Sam McCall's avatar
      [clangd] Simplify cancellation public API · c8758406
      Sam McCall authored
      Summary:
      Task is no longer exposed:
       - task cancellation is hidden as a std::function
       - task creation returns the new context directly
       - checking is via free function only, with no way to avoid the context lookup
      The implementation is essentially the same, but a bit terser as it's hidden.
      
      isCancelled() is now safe to use outside any task (it returns false).
      This will leave us free to sprinkle cancellation in e.g. TUScheduler without
      needing elaborate test setup, and lets callers that don't cancel "just work".
      
      Updated the docs to describe the new expected use pattern.
      One thing I noticed: there's nothing async-specific about the cancellation.
      Async tasks can be cancelled from any thread (typically the one that created
      them), sync tasks can be cancelled from any *other* thread in the same way.
      So the docs now refer to "long-running" tasks instead of async ones.
      
      Updated usage in code complete, without any structural changes.
      I didn't update all the names of the helpers in ClangdLSPServer (these will
      likely be moved to JSONRPCDispatcher anyway).
      
      Reviewers: ilya-biryukov, kadircet
      
      Subscribers: ioeric, MaskRay, jkorous, arphaman, jfb, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D51996
      
      llvm-svn: 342130
      c8758406
    • Kirill Bobyrev's avatar
      [docs] Provide pointers to known editor plugins and extensions · 778e0d24
      Kirill Bobyrev authored
      Many editors provide extensions and plugins with LSP Client
      functionality. Many of these are known to work with Clangd, this patch
      points users to the relevant resources for better experience.
      
      Reviewed By: ioeric, ilya-biryukov
      
      Differential Revision
      
      llvm-svn: 342129
      778e0d24
    • Simon Pilgrim's avatar
      Fix unused variable warning. NFCI. · 5b65e41a
      Simon Pilgrim authored
      llvm-svn: 342128
      5b65e41a
    • Tim Northover's avatar
      ARM: align loops to 4 bytes on Cortex-M3 and Cortex-M4. · c15d47bb
      Tim Northover authored
      The Technical Reference Manuals for these two CPUs state that branching
      to an unaligned 32-bit instruction incurs an extra pipeline reload
      penalty. That's bad.
      
      This also enables the optimization at -Os since it costs on average one
      byte per loop in return for 1 cycle per iteration, which is pretty good
      going.
      
      llvm-svn: 342127
      c15d47bb
    • Oliver Stannard's avatar
      [AArch64] Enable return address signing for static ctors · 95ac65bc
      Oliver Stannard authored
      Functions generated by clang and included in the .init_array section (such as
      static constructors) do not follow the usual code path for adding
      target-specific function attributes, so we have to add the return address
      signing attribute here too, as is currently done for the sanitisers.
      
      Differential revision: https://reviews.llvm.org/D51418
      
      llvm-svn: 342126
      95ac65bc
    • Simon Pilgrim's avatar
      Fix MSVC "illegal conversion; more than one user-defined conversion has been... · 4588fc80
      Simon Pilgrim authored
      Fix MSVC "illegal conversion; more than one user-defined conversion has been implicitly applied" warning. NFCI.
      
      llvm-svn: 342125
      4588fc80
    • Kirill Bobyrev's avatar
      [clangd] Don't create child AND and OR iterators with one posting list · d9f33b12
      Kirill Bobyrev authored
      `AND( AND( Child ) ... )` -> `AND( Child ... )`
      `AND( OR( Child ) ... )` -> `AND( Child ... )`
      
      This simple optimization results in 5-6% performance improvement in the
      benchmark with 2000 serialized `FuzzyFindRequest`s.
      
      Reviewed By: ilya-biryukov
      
      Differential Revision: https://reviews.llvm.org/D52016
      
      llvm-svn: 342124
      d9f33b12