1. Jun 19, 2019
  2. Jun 18, 2019
    • Simon Tatham's avatar
      [ARM] Add MVE integer vector min/max instructions. · faaf1a53
      Simon Tatham authored
      Summary:
      These form a small family of their own, to go with the floating-point
      VMINNM/VMAXNM instructions added in a previous commit.
      
      They introduce the first of many special cases in the mnemonic
      recognition code, because VMIN with the E suffix used by the VPT
      predication system needs to avoid being interpreted as the nonexistent
      instruction 'VMI' with an ordinary 'NE' condition suffix.
      
      Reviewers: dmgreen, samparker, SjoerdMeijer, t.p.northover
      
      Subscribers: javed.absar, kristof.beyls, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D62671
      
      llvm-svn: 363695
      faaf1a53
    • Simon Pilgrim's avatar
      [TargetLowering] SimplifyDemandedVectorElts - support MUL and ANY_EXTEND_VECTOR_INREG · 9aa25be1
      Simon Pilgrim authored
      Also fold ANY_EXTEND_VECTOR_INREG -> BITCAST if we only need the bottom element.
      
      Fixes temporary regression introduced in rL363693.
      
      llvm-svn: 363694
      9aa25be1
    • Simon Pilgrim's avatar
      [X86][AVX] extract_subvector(any_extend(x)) -> any_extend_vector_inreg(x) · 9c859393
      Simon Pilgrim authored
      Part of fixing the X86 regression noted in D63281 - I've split this into X86 and generic parts - the generic commit will be coming shortly and will fix the vector-reduce-mul-widen.ll regression introduced here.
      
      llvm-svn: 363693
      9c859393
    • Zhihao Yuan's avatar
      [libc++] Implement P0608R3 - A sane variant converting constructor · c74fc6d5
      Zhihao Yuan authored
      Summary:
      Prefer user-defined conversions over narrowing conversions and conversions to bool.
      
      References:
       http://wg21.link/p0608
      
      Reviewers: EricWF, mpark, mclow.lists
      
      Reviewed By: mclow.lists
      
      Subscribers: zoecarver, ldionne, libcxx-commits, cfe-commits, christof
      
      Differential Revision: https://reviews.llvm.org/D44865
      
      llvm-svn: 363692
      c74fc6d5
    • Ilya Biryukov's avatar
      [clangd] Return vector<TextEdit> from applyTweak. NFC · df9ee08b
      Ilya Biryukov authored
      For the same reasons as r363150, which got overwritten by changes in
      r363680.
      
      Sending without review to unbreak our integrate.
      
      llvm-svn: 363691
      df9ee08b
    • Simon Tatham's avatar
      [ARM] Rename MVE instructions in Tablegen for consistency. · ed4a6025
      Simon Tatham authored
      Summary:
      Their names began with a mishmash of `MVE_`, `t2` and no prefix at
      all. Now they all start with `MVE_`, which seems like a reasonable
      choice on the grounds that (a) NEON is the thing they're most at risk
      of being confused with, and (b) MVE implies Thumb-2, so a prefix
      indicating MVE is strictly more specific than one indicating Thumb-2.
      
      Reviewers: ostannard, SjoerdMeijer, dmgreen
      
      Subscribers: javed.absar, kristof.beyls, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D63492
      
      llvm-svn: 363690
      ed4a6025
    • Louis Dionne's avatar
      91185b69
    • Louis Dionne's avatar
      [libc++] Revert the addition of map/multimap CTAD · 1fab01f9
      Louis Dionne authored
      This was found to be broken on Clang trunk. This is a revert of the
      following commits (the subsequent commits added XFAILs to the tests
      that were missing from the original submission):
      
          r362986: Implement deduction guides for map/multimap.
          r363014: Add some XFAILs
          r363097: Add more XFAILs
          r363197: Add even more XFAILs
      
      llvm-svn: 363688
      1fab01f9
    • Mikhail Maltsev's avatar
      [CodeGen][ARM] Fix FP16 vector coercion · a45292cb
      Mikhail Maltsev authored
      Summary:
      When a function argument or return type is a homogeneous aggregate
      which contains an FP16 vector but the target does not support FP16
      operations natively, the type must be converted into an array of
      integer vectors by then front end (otherwise LLVM will handle FP16
      vectors incorrectly by scalarizing them and promoting FP16 to float,
      see https://reviews.llvm.org/D50507).
      
      Currently the logic for checking whether or not a given homogeneous
      aggregate contains FP16 vectors is incorrect: it only looks at the
      type of the first vector.
      
      This patch fixes the issue by adding a new method
      ARMABIInfo::containsAnyFP16Vectors and using it. The traversal logic
      of this method is largely the same as in
      ABIInfo::isHomogeneousAggregate.
      
      Reviewers: eli.friedman, olista01, ostannard
      
      Reviewed By: ostannard
      
      Subscribers: ostannard, john.brawn, javed.absar, kristof.beyls, pbarrio, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D63437
      
      llvm-svn: 363687
      a45292cb
    • Lewis Revill's avatar
      [RISCV] Lower calls through PLT · 74c83649
      Lewis Revill authored
      This patch adds support for generating calls through the procedure
      linkage table where required for a given ExternalSymbol or GlobalAddress
      callee.
      
      Differential Revision: https://reviews.llvm.org/D55304
      
      llvm-svn: 363686
      74c83649
    • Simon Pilgrim's avatar
      Fix -Wunused-but-set-variable warning. NFCI. · 2fef12cc
      Simon Pilgrim authored
      llvm-svn: 363685
      2fef12cc
    • Matt Arsenault's avatar
      AMDGPU: Add GWS instruction builtins · 2acc7176
      Matt Arsenault authored
      llvm-svn: 363684
      2acc7176
    • Fangrui Song's avatar
      [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections · 67742399
      Fangrui Song authored
      1) `-x foo` currently dumps one `foo`. This change makes it dump all `foo`.
      2) `-x foo -x foo` currently dumps `foo` twice. This change makes it dump `foo` once.
         In addition, if foo has section index 9, `-x foo -x 9` dumps `foo` once.
      3) Give a warning instead of an error if `foo` does not exist.
      
      The new behaviors match GNU readelf.
      
      Also, print a new line as a separator between two section dumps.
      GNU readelf uses two lines, but one seems good enough.
      
      Reviewed By: grimar, jhenderson
      
      Differential Revision: https://reviews.llvm.org/D63475
      
      llvm-svn: 363683
      67742399
    • Matt Arsenault's avatar
      AMDGPU: Disable errno by default · d204987a
      Matt Arsenault authored
      llvm-svn: 363682
      d204987a
    • Haojian Wu's avatar
      [clangd] Remove the extra ";", NFC · 9483bcf7
      Haojian Wu authored
      llvm-svn: 363681
      9483bcf7
    • Sam McCall's avatar
      [clangd] Add hidden tweaks to dump AST/selection. · 395fde75
      Sam McCall authored
      Summary:
      This introduces a few new concepts:
       - tweaks have an Intent (they don't all advertise as refactorings)
       - tweaks may produce messages (for ShowMessage notification). Generalized
         Replacements -> Effect.
       - tweaks (and other features) may be hidden (clangd -hidden-features flag).
         We may choose to promote these one day. I'm not sure they're worth their own
         feature flags though.
      
      Verified it in vim-clangd (not yet open source), curious if the UI is ok in VSCode.
      
      Reviewers: ilya-biryukov
      
      Subscribers: mgorny, MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D62538
      
      llvm-svn: 363680
      395fde75
    • Ulrich Weigand's avatar
      [compiler-rt][SystemZ] Work around ASAN failures via -fno-partial-inlining · 45b10d2d
      Ulrich Weigand authored
      Since updating the SystemZ LLVM build bot system to Ubuntu 18.04, all bots
      are red due to two ASAN failures.  It turns out these are triggered due to
      building the ASAN support libraries, in particular the interceptor routines
      using GCC 7.  Specifically, at least on our platform, this compiler decides
      to "partially inline" some of those interceptors, creating intermediate
      stub routines like "__interceptor_recvfrom.part.321".  These will show up
      in the backtraces at interception points, causing testsuite failures.
      
      As a workaround to get the build bots green again, this patch adds the
      -fno-partial-inlining command line option when building the common
      sanitizer support libraries on s390x, if that option is supported by
      the compiler.
      
      llvm-svn: 363679
      45b10d2d
    • Matt Arsenault's avatar
      AMDGPU: Add ds_gws_init / ds_gws_barrier intrinsics · 8d35dcd7
      Matt Arsenault authored
      There may or may not be additional work to handle this correctly on
      SI/CI.
      
      llvm-svn: 363678
      8d35dcd7
    • Andrea Di Biagio's avatar
      [MCA] Slightly refactor the bottleneck analysis view. NFCI · 3b2f5df1
      Andrea Di Biagio authored
      This patch slightly refactors data structures internally used by the bottleneck
      analysis to track data and resource dependencies.
      This patch also updates methods used to print out information about dependency
      edges when in debug mode.
      This is the last of a sequence of commits done in preparation for an upcoming
      patch that fixes PR37494. No functional change intended.
      
      llvm-svn: 363677
      3b2f5df1
    • Aaron Ballman's avatar
      Require commas to separate multiple GNU-style attributes in the same attribute list. · 7a89909c
      Aaron Ballman authored
      Fixes PR38352.
      
      llvm-svn: 363676
      7a89909c
    • Matt Arsenault's avatar
      AMDGPU: Change API for checking for exec modification · f39f3bd0
      Matt Arsenault authored
      Invert the name and return value to better reflect the imprecise
      nature.
      
      Force passing in the DefMI, since it's known in the 2 users and could
      possibly fail for an arbitrary vreg.
      
      Allow specifying a specific user instruction. Scan through use
      instructions, instead of use operands. Add scan thresholds instead of
      searching infinitely.
      
      Stop using a set to track seen uses. I didn't understand this usage,
      or why it would not check the last use. I don't think the use list has
      any particular order.
      
      llvm-svn: 363675
      f39f3bd0
    • Fangrui Song's avatar
      MCContext: Delete unused functions · c99d9aee
      Fangrui Song authored
      llvm-svn: 363674
      c99d9aee
    • Nico Weber's avatar
      gn build: Merge r363658 · 3c8e2cdd
      Nico Weber authored
      llvm-svn: 363673
      3c8e2cdd
    • Nico Weber's avatar
      gn build: Merge r363649 · 7001fe8d
      Nico Weber authored
      This reverts commit "gn build: Merge r363626" because r363626
      was reverted in r363649.
      
      llvm-svn: 363672
      7001fe8d