1. Nov 02, 2018
  2. Nov 01, 2018
    • Kadir Cetinkaya's avatar
      [clang] Improve ctor initializer completions. · fabaaaaa
      Kadir Cetinkaya authored
      Summary:
      Instead of providing generic "args" for member and base class
      initializers, tries to fetch relevant constructors and show their signatures.
      
      Reviewers: ilya-biryukov
      
      Reviewed By: ilya-biryukov
      
      Subscribers: ZaMaZaN4iK, eraman, arphaman, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D53654
      
      llvm-svn: 345844
      fabaaaaa
    • Jonas Devlieghere's avatar
      [FileSystem] Remove GetPermissions() and Readable() from FileSpec · 7c5310bb
      Jonas Devlieghere authored
      This patch removes the GetPermissions and GetReadable methods from
      FileSpec and updates its uses with calls to the FileSystem.
      
      Differential revision: https://reviews.llvm.org/D53831
      
      llvm-svn: 345843
      7c5310bb
    • Sanjay Patel's avatar
      [DAGCombiner] make sure we have a whole-number extract before trying to narrow... · c5fe3ce2
      Sanjay Patel authored
      [DAGCombiner] make sure we have a whole-number extract before trying to narrow a vector op (PR39511)
      
      The test causes a crash because we were trying to extract v4f32 to v3f32, and the
      narrowing factor was then 4/3 = 1 producing a bogus narrow type.
      
      This should fix:
      https://bugs.llvm.org/show_bug.cgi?id=39511
      
      llvm-svn: 345842
      c5fe3ce2
    • Daniel Sanders's avatar
      [MC] Implement EmitRawText in MCNullStreamer · 29ca7644
      Daniel Sanders authored
      Summary:
      This adds dummy implementation of `EmitRawText` in `MCNullStreamer`.
      
      This fixes the behavior of `AsmPrinter` with `MCNullStreamer` on targets
      on which no integrated assembler is used. An attempt to emit inline asm
      on such a target would previously lead to a crash, since `AsmPrinter` does not
      check for `hasRawTextSupport` in `EmitInlineAsm` and calls `EmitRawText`
      anyway if integrated assembler is disabled (the behavior has changed
      in D2686).
      
      Error message printed by MCStreamer:
      
      > EmitRawText called on an MCStreamer that doesn't support it, something
      > must not be fully mc'ized
      
      Patch by Eugene Sharygin
      
      Reviewers: dsanders, echristo
      
      Reviewed By: dsanders
      
      Subscribers: eraman, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53938
      
      llvm-svn: 345841
      29ca7644
    • Sam Parker's avatar
      [ARM][CGP] Negative constant operand handling · 84a2f8b3
      Sam Parker authored
      While mutating instructions, we sign extended negative constant
      operands for binary operators that can safely overflow. This was to
      allow instructions, such as add nuw i8 %a, -2, to still be able to
      perform a subtraction. However, the code to handle constants doesn't
      take into consideration that instructions, such as sub nuw i8 -2, %a,
      require the i8 -2 to be converted into i32 254.
      
      This is a relatively simple fix, but I've taken the time to
      reorganise the code a bit - mainly that instructions that can be
      promoted are cached and splitting up the Mutate function.
      
      Differential Revision: https://reviews.llvm.org/D53972
      
      llvm-svn: 345840
      84a2f8b3
    • Erich Keane's avatar
      Multiversioning- Ensure all MV functions are emitted. · f1005012
      Erich Keane authored
      Multiverson function versions are always used (by the resolver), so ensure that
      they are always emitted.
      
      Change-Id: I5d2e0841fddf0d18918b3fb92ae76814add7ee96
      llvm-svn: 345839
      f1005012
    • Erich Keane's avatar
      CPU-Dispatch- Fix type of a member function, prevent deferrals · 9e94c18a
      Erich Keane authored
      The member type creation for a cpu-dispatch function was not correctly
      including the 'this' parameter, so ensure that the type is properly
      determined. Also, disable defer in the cases of emitting the functoins,
      as it can end up resulting in the wrong version being emitted.
      
      Change-Id: I0b8fc5e0b0d1ae1a9d98fd54f35f27f6e5d5d083
      llvm-svn: 345838
      9e94c18a
    • Zachary Turner's avatar
      [MS Demangler] Expose the Demangler AST publicly. · 7ba90563
      Zachary Turner authored
      LLDB would like to use this in order to build a clang AST from
      a mangled name.
      
      This is NFC otherwise.
      
      llvm-svn: 345837
      7ba90563