1. Sep 02, 2019
    • Sylvestre Ledru's avatar
      ThinLTO: Document the option BOOTSTRAP_LLVM_ENABLE_LTO · 4fa267bc
      Sylvestre Ledru authored
      llvm-svn: 370671
      4fa267bc
    • Simon Pilgrim's avatar
    • George Rimar's avatar
      Recommit r370661 "[llvm-nm] - Add a test case for case when we dump a symbol... · 78e8011a
      George Rimar authored
      Recommit r370661 "[llvm-nm] - Add a test case for case when we dump a symbol that belongs to a section with a broken sh_name."
      
      Fix: add a 'consumeError()' call to ObjectFile.cpp.
      This error was never checked.
      
      Original commit message:
      
      It adds a test case for a problem fixed by D66976 <https://reviews.llvm.org/D66976>.
      
      It was introduced by me in D66089 <https://reviews.llvm.org/D66089>.
      The error reported was never consumed because of a wrong variable name used,
      so it could fail when LLVM_ENABLE_ABI_BREAKING_CHECKS is used.
      
      Differential revision: https://reviews.llvm.org/D67002
      
      llvm-svn: 370669
      78e8011a
    • Sanjay Patel's avatar
      [DAGCombiner] try to form test+set out of shift+mask patterns · 4e54cf3e
      Sanjay Patel authored
      The motivating bugs are:
      https://bugs.llvm.org/show_bug.cgi?id=41340
      https://bugs.llvm.org/show_bug.cgi?id=42697
      
      As discussed there, we could view this as a failure of IR canonicalization,
      but then we would need to implement a backend fixup with target overrides
      to get this right in all cases. Instead, we can just view this as a codegen
      opportunity. It's not even clear for x86 exactly when we should favor
      test+set; some CPUs have better theoretical throughput for the ALU ops than
      bt/test.
      
      This patch is made more complicated than I expected because there's an early
      DAGCombine for 'and' that can change types of the intermediate ops via
      trunc+anyext.
      
      Differential Revision: https://reviews.llvm.org/D66687
      
      llvm-svn: 370668
      4e54cf3e
    • Jay Foad's avatar
      Partially revert D61491 "AMDGPU: Be explicit about whether the high-word in... · 6e18266a
      Jay Foad authored
      Partially revert D61491 "AMDGPU: Be explicit about whether the high-word in SI_PC_ADD_REL_OFFSET is 0"
      
      Summary:
      D61491 caused us to use relocs when they're not strictly necessary, to
      refer to symbols in the text section. This is a pessimization and it's a
      problem for some loaders that don't support relocs yet.
      
      Reviewers: nhaehnle, arsenm, tpr
      
      Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, t-tye, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D65813
      
      llvm-svn: 370667
      6e18266a
    • Dmitry Preobrazhensky's avatar
      [AMDGPU][MC][GFX10] Corrected constant bus checks to exclude null · 4aa90ea5
      Dmitry Preobrazhensky authored
      See AMD SWDEV-157286
      
      Reviewers: atamazov, arsenm
      
      Differential Revision: https://reviews.llvm.org/D65229
      
      llvm-svn: 370665
      4aa90ea5
    • Thomas Preud'homme's avatar
      [FileCheck] Make NumericVariable ctor explicit · efa1ca2c
      Thomas Preud'homme authored
      Summary:
      Make FileCheckNumericVariable constructor explicit to avoid implicit
      conversions from StringRef.
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D66640
      
      llvm-svn: 370664
      efa1ca2c
    • Thomas Preud'homme's avatar
      [FileCheck] Forbid using var defined on same line · a291b950
      Thomas Preud'homme authored
      Summary:
      Commit r366897 introduced the possibility to set a variable from an
      expression, such as [[#VAR2:VAR1+3]]. While introducing this feature, it
      introduced extra logic to allow using such a variable on the same line
      later on. Unfortunately that extra logic is flawed as it relies on a
      mapping from variable to expression defining it when the mapping is from
      variable definition to expression. This flaw causes among other issues
      PR42896.
      
      This commit avoids the problem by forbidding all use of a variable
      defined on the same line, and removes the now useless logic. Redesign
      will be done in a later commit because it will require some amount of
      refactoring first for the solution to be clean. One example is the need
      for some sort of transaction mechanism to set a variable temporarily and
      from an expression and rollback if the CHECK pattern does not match so
      that diagnostics show the right variable values.
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: JonChesterfield, rogfer01, hfinkel, kristina, rnk, tra, arichardson, grimar, dblaikie, probinson, llvm-commits, hiraditya
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D66141
      
      llvm-svn: 370663
      a291b950
    • George Rimar's avatar
      Revert r370661 "[llvm-nm] - Add a test case for case when we dump a symbol... · b567ce76
      George Rimar authored
      Revert r370661 "[llvm-nm] - Add a test case for case when we dump a symbol that belongs to a section with a broken sh_name"
      
      It broke BB:
      http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/16955/steps/test/logs/stdio
      
      Expected<T> must be checked before access or destruction.
      Unchecked Expected<T> contained error:
      a section [index 1] has an invalid sh_name (0xffff) offset which goes past the end of the section name string tableStack dump:
      0.	Program arguments: /srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm /srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/test/tools/llvm-nm/Output/format-sysv-section.test.tmp2.o --format=sysv 
       #0 0x00000000008af7c4 PrintStackTraceSignalHandler(void*) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x8af7c4)
       #1 0x00000000008ad8be llvm::sys::RunSignalHandlers() (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x8ad8be)
       #2 0x00000000008afbd8 SignalHandler(int) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x8afbd8)
       #3 0x00007f0a6b989730 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x12730)
       #4 0x00007f0a6b48d7bb raise (/lib/x86_64-linux-gnu/libc.so.6+0x377bb)
       #5 0x00007f0a6b478535 abort (/lib/x86_64-linux-gnu/libc.so.6+0x22535)
       #6 0x000000000042004b llvm::Expected<llvm::StringRef>::fatalUncheckedExpected() const (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x42004b)
       #7 0x00000000008367f5 (/sv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x8367f5)
       #8 0x0000000000817b80 llvm::object::IRObjectFile::findBitcodeInObject(llvm::object::ObjectFile const&) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x817b80)
       #9 0x0000000000838416 llvm::object::SymbolicFile::createSymbolicFile(llvm::MemoryBufferRef, llvm::file_magic, llvm::LLVMContext*) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x838416)
      #10 0x00000000007f36cb llvm::object::createBinary(llvm::MemoryBufferRef, llvm::LLVMContext*) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x7f36cb)
      #11 0x0000000000413123 dumpSymbolNamesFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x413123)
      #12 0x0000000000412e38 main (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x412e38)
      #13 0x00007f0a6b47a09b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409b)
      #14 0x00000000004120da _start (/srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/llvm-nm+0x4120da)
      FileCheck error: '-' is empty.
      FileCheck command line:  /srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /srv/llvm-buildbot-srcatch/llvm-build-dir/clang-x86_64-debian-fast/llvm.src/test/tools/llvm-nm/format-sysv-section.test --check-prefix=ERR
      
      --
      
      llvm-svn: 370662
      b567ce76
    • George Rimar's avatar
      [llvm-nm] - Add a test case for case when we dump a symbol that belongs to a... · 4b9233ca
      George Rimar authored
      [llvm-nm] - Add a test case for case when we dump a symbol that belongs to a section with a broken sh_name.
      
      It adds a test case for a problem fixed by D66976.
      
      It was introduced by me in D66089.
      The error reported was never consumed because of a wrong variable name used,
      so it could fail when LLVM_ENABLE_ABI_BREAKING_CHECKS is used.
      
      Differential revision: https://reviews.llvm.org/D67002
      
      llvm-svn: 370661
      4b9233ca
    • Dmitry Preobrazhensky's avatar
      [AMDGPU][MC][GFX10] Enabled null with 64-bit operands · 9c68eddb
      Dmitry Preobrazhensky authored
      See Bug 42745: https://bugs.llvm.org/show_bug.cgi?id=42745
      
      Reviewers: atamazov, arsenm
      
      https://reviews.llvm.org/D65231
      
      llvm-svn: 370660
      9c68eddb
    • Sanjay Patel's avatar
      [InstCombine] recognize bswap disguised as shufflevector · 561c3999
      Sanjay Patel authored
      bitcast <N x i8> (shuf X, undef, <N, N-1,...0>) to i{N*8} --> bswap (bitcast X to i{N*8})
      
      In PR43146:
      https://bugs.llvm.org/show_bug.cgi?id=43146
      ...we have a more complicated case where SLP is making a mess of bswap. This patch won't
      do anything for that currently, but we need to improve bswap recognition in instcombine,
      SLP, and/or a standalone pass to avoid that problem.
      
      This is limited using the data-layout so we don't try to do this transform with actual
      vector types. The backend does not appear to have folds to convert in either direction,
      so we don't want to mess up something that is actually better lowered as a shuffle.
      
      On x86, we're trading something like this:
      
        vmovd	%edi, %xmm0
        vpshufb	LCPI0_0(%rip), %xmm0, %xmm0 ## xmm0 = xmm0[3,2,1,0,u,u,u,u,u,u,u,u,u,u,u,u]
        vmovd	%xmm0, %eax
      
      For:
      
        movl	%edi, %eax
        bswapl	%eax
      
      Differential Revision: https://reviews.llvm.org/D66965
      
      llvm-svn: 370659
      561c3999
    • Pavel Labath's avatar
      [dotest] Add @skipIfCursesSupportMissing and annotate the new gui test · eafede2a
      Pavel Labath authored
      Summary:
      The gui command requires curses support, which can be disabled at
      compile time. This patch adds the ability to detect this situation in
      the test suite and skip the test accordingly.
      
      Reviewers: teemperor, jankratochvil
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D67073
      
      llvm-svn: 370658
      eafede2a
    • Martin Storsjo's avatar
      [test] [llvm-dlltool] Improve test strictness a little. NFC. · 491fc23a
      Martin Storsjo authored
      llvm-svn: 370657
      491fc23a
    • Martin Storsjo's avatar
      [llvm-dlltool] Handle external and internal names with differing decoration · 1cec6b29
      Martin Storsjo authored
      Also add a missed part of the test from SVN r369747.
      
      Differential Revision: https://reviews.llvm.org/D66996
      
      llvm-svn: 370656
      1cec6b29
    • Martin Storsjo's avatar
      [llvm-dlltool] Remove support for implying output name · 40782261
      Martin Storsjo authored
      I don't see GNU dlltool supporting doing this; with only a -d option
      and no -l option, GNU dlltool runs successfully but doesn't write any
      output file.
      
      Differential Revision: https://reviews.llvm.org/D65645
      
      llvm-svn: 370655
      40782261
    • Martin Storsjo's avatar
      [LLD] [COFF] Demangle itanium symbols in mingw mode · a66fc1c9
      Martin Storsjo authored
      Differential Revision: https://reviews.llvm.org/D67051
      
      llvm-svn: 370654
      a66fc1c9
    • Pavel Labath's avatar
      NativeProcessLinux: Remove some register context boilerplate · 3f3673ea
      Pavel Labath authored
      Summary:
      This patch follows the spirit of D63594, and removes some null checks
      for things which should be operating invariants. Specifically
      {Read,Write}[GF]PR now no longer check whether the supplied buffers are
      null, because they never are. After this, the Do*** versions of these
      function no longer serve any purpose and are inlined into their callers.
      
      Other cleanups are possible here too, but I am taking this one step at a
      time because this involves a lot of architecture-specific code, which I
      don't have the hardware to test on (I did do a build-test though).
      
      Reviewers: mgorny, jankratochvil, omjavaid, alexandreyy, uweigand
      
      Subscribers: nemanjai, javed.absar, kbarton, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D66744
      
      llvm-svn: 370653
      3f3673ea
    • Dmitry Preobrazhensky's avatar
      [AMDGPU][MC][GFX10] Corrected constant bus limit for 64-bit shift instructions · fe2ee4c4
      Dmitry Preobrazhensky authored
      See bug 42744: https://bugs.llvm.org/show_bug.cgi?id=42744
      
      Reviewers: atamazov, arsenm
      
      Differential Revision: https://reviews.llvm.org/D65228
      
      llvm-svn: 370652
      fe2ee4c4
    • Roman Lebedev's avatar
      [unittests][AST] CommentParser: don't name variable 'DEBUG' · a1ad72cc
      Roman Lebedev authored
      It's may be an already-defined macro name,
      resulting in compilation errors.
      
      llvm-svn: 370650
      a1ad72cc
    • Andrea Di Biagio's avatar
      [X86][BtVer2] Fix latency and throughput of conditional SIMD store instructions. · 528f6814
      Andrea Di Biagio authored
      On BtVer2 conditional SIMD stores are heavily microcoded.
      The latency is directly proportional to the number of packed elements extracted
      from the input vector. Also, according to micro-benchmarks, most of the
      computation seems to be done in the integer unit.
      
      Only a minority of the uOPs is executed by the FPU. The observed behaviour on
      the FPU looks similar to this:
       - The input MASK value is moved to the Integer Unit
         -- [ a VMOVMSK-like uOP-executed on JFPU0].
       - In parallel, each element of the input XMM/YMM is extracted and then sent to
         the IntegerUnit through JFPU1.
      
      As expected, a (conditional) store is executed for every extracted element.
      Interestingly, a (speculative) load is executed for every extracted element too.
      It is as-if a "LOAD - BIT_EXTRACT- CMOV" sequence of uOPs is repeated by the
      integer unit for every contionally stored element.
      VMASKMOVDQU is a special case: the number of speculative loads is always 2
      (presumably, one load per quadword). That means, extra shifts and masking is
      performed on (one of) the loaded quadwords before each conditional store (that
      also explains the big number of non-FP uOPs retired).
      
      This patch replaces the existing writes for conditional SIMD stores (i.e.
      WriteFMaskedStore, and WriteFMaskedStoreY) with the following new writes:
      
        WriteFMaskedStore32  [ XMM Packed Single ]
        WriteFMaskedStore32Y [ YMM Packed Single ]
        WriteFMaskedStore64  [ XMM Packed Double ]
        WriteFMaskedStore64Y [ YMM Packed Double ]
      
      Added a wrapper class named X86SchedWriteMaskMove in X86Schedule.td to describe
      both RM and MR variants for conditional SIMD moves in a single tablegen
      definition.
      Instances of that class are then passed in input to multiclass avx_movmask_rm
      when constructing MASKMOVPS/PD definitions.
      
      Since this patch introduces new writes, I had to update all the X86 scheduling
      models.
      
      Differential Revision: https://reviews.llvm.org/D66801
      
      llvm-svn: 370649
      528f6814
    • Jeremy Morse's avatar
      [DebugInfo] LiveDebugValues: correctly discriminate kinds of variable locations · 22493f66
      Jeremy Morse authored
      The missing line added by this patch ensures that only spilt variable
      locations are candidates for being restored from the stack. Otherwise,
      register or constant-value information can be interpreted as a spill
      location, through a union.
      
      The added regression test replicates a scenario where this occurs: the
      stack load from [rsp] causes the register-location DBG_VALUE to be
      "restored" to rsi, when it should be left alone. See PR43058 for details.
      
      Un x-fail a test that was suffering from this from a previous patch.
      
      Differential Revision: https://reviews.llvm.org/D66895
      
      llvm-svn: 370648
      22493f66
    • Raphael Isemann's avatar
      [lldb][NFC] Add test for invalid gui command · 9bc338b8
      Raphael Isemann authored
      llvm-svn: 370647
      9bc338b8
    • Raphael Isemann's avatar
      [lldb][NFC] Remove unused imports from TestIntegerTypesExpr.py · 65d386ea
      Raphael Isemann authored
      llvm-svn: 370645
      65d386ea
    • Omair Javaid's avatar
      [ARM64] Simplify RegisterInfos_arm64.h with macro based RegisterInfo array · 1da33fd4
      Omair Javaid authored
      This patches paves way for upcoming SVE RegisterInfo definitions. This is cosmetic change which allows us to define ARM64 RegisterInfo using macros.
      
      In future we ll have define two different RegisterInfos to choose between SVE vs non-SVE RegisterInfo with decision being made at thread creation.
      
      Differential Revision: https://reviews.llvm.org/D66934
      
      llvm-svn: 370644
      1da33fd4
    • James Henderson's avatar
      [llvm-strings][test] Merge two closely related tests · 43e9ead1
      James Henderson authored
      This is a follow-up to feedback on D66015.
      
      Reviewed by: grimar
      
      Differential Revision: https://reviews.llvm.org/D67069
      
      llvm-svn: 370643
      43e9ead1
    • Nandor Licker's avatar
      Revert [Clang Interpreter] Initial patch for the constexpr interpreter · c3bdad8c
      Nandor Licker authored
      This reverts r370636 (git commit 8327fed9)
      
      llvm-svn: 370642
      c3bdad8c
    • Raphael Isemann's avatar
      [lldb][NFC] Remove unused imports from TestIntegerTypes.py · da496363
      Raphael Isemann authored
      llvm-svn: 370641
      da496363
    • Balazs Keri's avatar
      [AST] AST structural equivalence to work internally with pairs. · b06b14ba
      Balazs Keri authored
      Summary:
      The structural equivalence check stores now pairs of nodes in the
      'from' and 'to' context instead of only the node in 'from' context
      and a corresponding one in 'to' context. This is needed to handle
      cases when a Decl in the 'from' context is to be compared with
      multiple Decls in the 'to' context.
      
      Reviewers: martong, a_sidorin
      
      Reviewed By: martong, a_sidorin
      
      Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D66538
      
      llvm-svn: 370639
      b06b14ba
    • Raphael Isemann's avatar
      [lldb][NFC] Add test for source info · 1aab6276
      Raphael Isemann authored
      llvm-svn: 370638
      1aab6276
    • Simon Pilgrim's avatar
    • Nandor Licker's avatar
      [Clang Interpreter] Initial patch for the constexpr interpreter · 8327fed9
      Nandor Licker authored
      Summary:
      This patch introduces the skeleton of the constexpr interpreter,
      capable of evaluating a simple constexpr functions consisting of
      if statements. The interpreter is described in more detail in the
      RFC. Further patches will add more features.
      
      Reviewers: Bigcheese, jfb, rsmith
      
      Subscribers: bruno, uenoku, ldionne, Tyker, thegameg, tschuett, dexonsmith, mgorny, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D64146
      
      llvm-svn: 370636
      8327fed9
    • Fangrui Song's avatar
      [ELF] Do not ICF two sections with different output sections (by SECTIONS commands) · d8bc6a48
      Fangrui Song authored
      Fixes PR39418. Complements D47241 (the non-linker-script case).
      
      processSectionCommands() assigns input sections to output sections.
      ICF is called before it, so .text.foo and .text.bar may be folded even if
      their output sections are made different by SECTIONS commands.
      
      ```
      markLive<ELFT>()
      doIcf<ELFT>()                      // During ICF, we don't know the output sections
      writeResult()
        combineEhSections<ELFT>()
        script->processSectionCommands() // InputSection -> OutputSection assignment
      ```
      
      This patch splits processSectionCommands() into processSectionCommands() and
      processSymbolAssignments(), and moves processSectionCommands() before ICF:
      
      ```
      markLive<ELFT>()
      combineEhSections<ELFT>()
      script->processSectionCommands()
      doIcf<ELFT>()                      // should remove folded input sections
      writeResult()
        script->processSymbolAssignments()
      ```
      
      An alternative approach is to unfold a section `sec` in
      processSectionCommands() when we find `sec` and `sec->repl` belong to
      different output sections. I feel this patch is superior because this
      can fold more sections and the decouple of
      SectionCommand/SymbolAssignment gives flexibility:
      
      * An ExprValue can't be evaluated before its section is assigned to an
        output section -> we can delete getOutputSectionVA and simplify
        another place where we had to check if the output section is null.
        Moreover, a case in linkerscript/early-assign-symbol.s can be handled
        now.
      * processSectionCommands/processSymbolAssignments can be freely moved
        around.
      
      Reviewed By: ruiu
      
      Differential Revision: https://reviews.llvm.org/D66717
      
      llvm-svn: 370635
      d8bc6a48
    • Piotr Sobczak's avatar
      [AMDGPU] Add test · 252a584c
      Piotr Sobczak authored
      Summary:
      Add test checking that the redundant immediate MOV instruction
      (by-product of handling phi nodes) is not found in the generated code.
      
      Reviewers: arsenm, anton-afanasyev, craig.topper, rtereshin, bogner
      
      Reviewed By: arsenm
      
      Subscribers: kzhuravl, yaxunl, dstuttard, tpr, t-tye, wdng, jvesely, nhaehnle, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D63860
      
      llvm-svn: 370634
      252a584c
    • George Rimar's avatar
      [yaml2obj] - Allow overriding sh_name fields of the sections. · 86cc736d
      George Rimar authored
      This is in line with the previous changes which allowed to
      override the sh_offset/sh_size and useful for writing test cases.
      
      Differential revision: https://reviews.llvm.org/D66998
      
      llvm-svn: 370633
      86cc736d
    • Djordje Todorovic's avatar
      [DWARFVerifier] Verify GNU extensions of call site DWARF symbols · 5c6b82a7
      Djordje Todorovic authored
      Verify that the call site DWARF symbols (added during the implementation
      of the debug entry values feature) are generated properly.
      
      Differential Revision: https://reviews.llvm.org/D66865
      
      llvm-svn: 370631
      5c6b82a7
    • Fangrui Song's avatar
      [ELF] Align SHT_LLVM_PART_EHDR to a maximum page size boundary · 4514ac7c
      Fangrui Song authored
      Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=998712
      
      SHT_LLVM_PART_EHDR marks the start of a partition. The partition
      sections will be extracted to a separate file. Align to the next maximum
      page size boundary so that we can find the ELF header at the start. We
      cannot benefit from overlapping p_offset ranges with the previous
      segment anyway.
      
      It seems we lack some llvm-objcopy --extract-main-partition and
      --extract-partition sanity checks. It may place EHDR at the start
      even if p_offset if non zero. Anyway, the lld change is justified for
      the reasons above.
      
      Reviewed By: ruiu
      
      Differential Revision: https://reviews.llvm.org/D67032
      
      llvm-svn: 370629
      4514ac7c
    • Raphael Isemann's avatar
      [lldb] Add description to option completions. · 6897a814
      Raphael Isemann authored
      Summary:
      Right now our argument completions are rather cryptic for command options as they only list the letters:
      
      ```
      (lldb) breakpoint set -
      Available completions:
      	-G
      	-C
      	-c
      	-d
      	-i
      	-o
      	-q
      	-t
      	-x
      [...]
      ```
      
      With the new completion API we can easily extend this with the flag description so that it looks like this now:
      
      ```
      (lldb) breakpoint set -
      Available completions:
      	-G -- The breakpoint will auto-continue after running its commands.
      	-C -- A command to run when the breakpoint is hit, can be provided more than once, the commands will get run in order left to right.
      	-c -- The breakpoint stops only if this condition expression evaluates to true.
      	-d -- Disable the breakpoint.
      	-i -- Set the number of times this breakpoint is skipped before stopping.
      	-o -- The breakpoint is deleted the first time it stop causes a stop.
      	-q -- The breakpoint stops only for threads in the queue whose name is given by this argument.
      	-t -- The breakpoint stops only for the thread whose TID matches this argument.
      	-x -- The breakpoint stops only for the thread whose index matches this argument.
      ```
      
      The same happens with --long-options now.
      
      Reviewers: #lldb, labath
      
      Reviewed By: labath
      
      Subscribers: labath, JDevlieghere, lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D67063
      
      llvm-svn: 370628
      6897a814
    • Amara Emerson's avatar
      [AArch64][GlobalISel] Fix zext narrowScalar to use the right type when creating · 453ef4e3
      Amara Emerson authored
      the merges.
      
      Fixes PR43171.
      
      llvm-svn: 370627
      453ef4e3
    • Raphael Isemann's avatar
      [lldb][NFC] Add basic test for GUI command · 25415098
      Raphael Isemann authored
      Summary:
      This adds a basic test for the GUI command. Just tests that it starts up, that we can quit the gui
      and help window, and that the basic UI elements are rendered. Mostly testing the waters how
      testing this command will do on the bots or if that will cause some serious issues when we do
      fancy ncurses stuff.
      
      Reviewers: labath, clayborg
      
      Reviewed By: labath
      
      Subscribers: JDevlieghere, lldb-commits
      
      Tags: #lldb
      
      Differential Revision: https://reviews.llvm.org/D67018
      
      llvm-svn: 370625
      25415098