1. Aug 07, 2018
    • Leonard Chan's avatar
      Removed the OverflowConversionsToFract tests for now. Will add them back · f0064594
      Leonard Chan authored
      in once I figure out why this doesn't work on windows.
      
      llvm-svn: 339038
      f0064594
    • Leonard Chan's avatar
      Fix for failing test from sanitizer-x86_64-linux-fast where there was a · b30502ef
      Leonard Chan authored
      left shift on a negative value.
      
      llvm-svn: 339037
      b30502ef
    • David Greene's avatar
      Force test/Driver/fuchsia.c(pp) to use lld · e98b9d4c
      David Greene authored
      The Fuchsia driver relies on lld so invoke clang with
      -fuse-ld=lld. This gets the test passing when the clang default linker
      is something other than lld.
      
      Differential Revision: https://reviews.llvm.org/D49899
      
      llvm-svn: 339036
      e98b9d4c
    • Wei Mi's avatar
      [RegisterCoalescer] Delay live interval update work until the rematerialization · 3c1c0885
      Wei Mi authored
      for all the uses from the same def is done.
      
      We run into a compile time problem with flex generated code combined with
      `-fno-jump-tables`. The cause is that machineLICM hoists a lot of invariants
      outside of a big loop, and drastically increases the compile time in global
      register splitting and copy coalescing.  https://reviews.llvm.org/D49353
      relieves the problem in global splitting. This patch is to handle the problem
      in copy coalescing.
      
      About the situation where the problem in copy coalescing happens. After
      machineLICM, we have several defs outside of a big loop with hundreds or
      thousands of uses inside the loop. Rematerialization in copy coalescing
      happens for each use and everytime rematerialization is done, shrinkToUses
      will be called to update the huge live interval. Because we have 'n' uses
      for a def, and each live interval update will have at least 'n' complexity,
      the total update work is n^2.
      
      To fix the problem, we try to do the live interval update work in a collective
      way. If a def has many copylike uses larger than a threshold, each time
      rematerialization is done for one of those uses, we won't do the live interval
      update in time but delay that work until rematerialization for all those uses
      are completed, so we only have to do the live interval update work once.
      
      Delaying the live interval update could potentially change the copy coalescing
      result, so we hope to limit that change to those defs with many
      (like above a hundred) copylike uses, and the cutoff can be adjusted by the
      option -mllvm -late-remat-update-threshold=xxx.
      
      Differential Revision: https://reviews.llvm.org/D49519
      
      llvm-svn: 339035
      3c1c0885
    • Greg Clayton's avatar
      Fix more offsetof issues. · 1508dd8b
      Greg Clayton authored
      llvm-svn: 339034
      1508dd8b
    • Greg Clayton's avatar
      d6836209
    • Greg Clayton's avatar
      Add support for ARM and ARM64 breakpad generated minidump files (version 2). · 19c8f394
      Greg Clayton authored
      In this patch I add support for ARM and ARM64 break pad files. There are two flavors of ARM: Apple where FP is R7, and non Apple where FP is R11. Added minimal tests that load up ARM64 and the two flavors or ARM core files with a single thread and known register values in each register. Each register is checked for the exact value.
      
      This is a fixed version of: https://reviews.llvm.org/D49750
      
      The changes from D49750 are:
      
      Don't init the m_arch in the Initialize call as a system info isn't required. This keeps the thread list, module list and other tests from failing
      Added -Wextended-offsetof to Xcode project so we catch use extended usages of offsetof before submission
      Fixed any extended offset of warnings
      
      Differential Revision: https://reviews.llvm.org/D50336
      
      llvm-svn: 339032
      19c8f394
    • Benjamin Kramer's avatar
      [Fixed Point Arithmetic] Remove unused include. · 3f873eca
      Benjamin Kramer authored
      lib/Basic cannot depend on lib/AST.
      
      llvm-svn: 339031
      3f873eca
    • Bruno Ricci's avatar
      [AST] Remove unnecessary indirections in DeclarationNameTable · b619883c
      Bruno Ricci authored
      DeclarationNameTable currently hold 3 "void *" to
      FoldingSet<CXXSpecialName>, FoldingSet<CXXLiteralOperatorIdName>
      and FoldingSet<CXXDeductionGuideNameExtra>.
      
      CXXSpecialName, CXXLiteralOperatorIdName and
      CXXDeductionGuideNameExtra are private classes holding extra
      information about a "special" declaration name and are in
      AST/DeclarationName.cpp. The original intent seems to have
      been to keep these classes private and only expose
      DeclarationNameExtra and DeclarationName (the code dates from
      2008 and has not been significantly changed since).
      
      However this make the code less straightforward than necessary
      because of the need to have "void *" in DeclarationNameTable
      (with 1 of 3 comments wrong) and to manually allocate/deallocate
      the FoldingSets.
      
      Moreover removing the extra indirections reduce the run-time of
      an fsyntax-only on all of Boost by 2.3% which is not totally
      unexpected given how frequently this data structure is used
      (especially for C++).
      
      A concern raised by erichkeane during the review was that
      including Type.h would increase the compile time unreasonably.
      However test builds (both clean and incremental) showed that
      this patch did not result in any compile time increase.
      
      Reviewed By: erichkeane
      
      Differential Revision: https://reviews.llvm.org/D50261
      
      llvm-svn: 339030
      b619883c
    • Daniil Fukalov's avatar
      Fix typo in the MSVC Visualizer for SmallVector class · 0d3b0f4f
      Daniil Fukalov authored
      llvm-svn: 339029
      0d3b0f4f
    • Leonard Chan's avatar
      [Fixed Point Arithmetic] Fixed Point Constant · a677942d
      Leonard Chan authored
      This patch proposes an abstract type that represents fixed point numbers, similar to APInt or APSInt that was discussed in https://reviews.llvm.org/D48456#inline-425585. This type holds a value, scale, and saturation and is meant to perform intermediate calculations on constant fixed point values.
      
      Currently this class is used as a way for handling the conversions between fixed point numbers with different sizes and radixes. For example, if I'm casting from a signed _Accum to a saturated unsigned short _Accum, I will need to check the value of the signed _Accum to see if it fits into the short _Accum which involves getting and comparing against the max/min values of the short _Accum. The FixedPointNumber class currently handles the radix shifting and extension when converting to a signed _Accum.
      
      Differential Revision: https://reviews.llvm.org/D48661
      
      llvm-svn: 339028
      a677942d
    • Owen Reynolds's avatar
      Fix raw_fd_ostream::write_impl hang due to an infinite loop with large output · a489d111
      Owen Reynolds authored
      On windows when raw_fd_ostream::write_impl calls write, a 32 bit input is required for character count. As a variable with size_t is used for this argument, on x64 integral demotion occurs. In the case of large files an infinite loop follows. 
      See: https://bugs.llvm.org/show_bug.cgi?id=37926
      This fix allows the output of files larger than the previous int32 limit.
      
      Differential Revision: https://reviews.llvm.org/D48948
      
      llvm-svn: 339027
      a489d111
    • Leonard Chan's avatar
      [Fixed Point Arithmetic] Fix for FixedPointValueToString · c03642e9
      Leonard Chan authored
      - Print negative numbers correctly
      - Handle APInts of different sizes
      - Add formal unit tests for FixedPointValueToString
      - Add tests for checking correct printing when padding is set
      - Restrict to printing in radix 10 since that's all we need for now
      
      Differential Revision: https://reviews.llvm.org/D49945
      
      llvm-svn: 339026
      c03642e9
  2. Aug 06, 2018