1. Oct 11, 2018
    • Francis Visoiu Mistrih's avatar
      [OptRemarks] Add library for parsing optimization remarks · 057784a2
      Francis Visoiu Mistrih authored
      Add a library that parses optimization remarks (currently YAML, so based
      on the YAMLParser).
      
      The goal is to be able to provide tools a remark parser that is not
      completely dependent on YAML, in case we decide to change the format
      later.
      
      It exposes a C API which takes a handler that is called with the remark
      structure.
      
      It adds a libLLVMOptRemark.a static library, and it's used in-tree by
      the llvm-opt-report tool (from which the parser has been mostly moved
      out).
      
      Differential Revision: https://reviews.llvm.org/D52776
      
      llvm-svn: 344162
      057784a2
    • Renato Golin's avatar
      [VPlan] Fix CondBit quoting in dumpBasicBlock · d8e7ca4a
      Renato Golin authored
      Quotes were being printed for VPInstructions but not the rest.
      
      llvm-svn: 344161
      d8e7ca4a
    • Eric Fiselier's avatar
      Fix linking filesystem benchmarks · 5ac4e51d
      Eric Fiselier authored
      llvm-svn: 344160
      5ac4e51d
    • Louis Dionne's avatar
      [clang] Fix failing attribute test on Windows · 8c98eebe
      Louis Dionne authored
      The test added in r344146 was failing because the ABI on Windows is
      different, and that test includes ABI-specific details. The test now
      harcodes which ABI to use so we can rely on those details.
      
      llvm-svn: 344159
      8c98eebe
    • Craig Topper's avatar
      Change the timestamp of llvmcache-foo file to meet the thinLTO prune policy · df17244f
      Craig Topper authored
      The case will randomly fail if we test it with command "
      while llvm-lit test/tools/gold/X86/cache.ll ; do true; done". It is because the llvmcache-foo file is younger than llvmcache-349F039B8EB076D412007D82778442BED3148C4E and llvmcache-A8107945C65C2B2BBEE8E61AA604C311D60D58D6. But due to timestamp precision reason their timestamp is the same. Given the same timestamp, the file prune policy is to remove bigger size file first, so mostly foo file is removed for its bigger size. And the files size is under threshold after deleting foo file. That's what test case expect.
      
      However sometimes, the precision is enough to measure that timestamp of llvmcache-349F039B8EB076D412007D82778442BED3148C4E and llvmcache-A8107945C65C2B2BBEE8E61AA604C311D60D58D6 are smaller than foo, so llvmcache-349F039B8EB076D412007D82778442BED3148C4E and llvmcache-A8107945C65C2B2BBEE8E61AA604C311D60D58D6 are deleted first. Since the files size is still above the file size threshold after deleting the 2 files, the foo file is also deleted. And then the test case fails, because it expect only one file should be deleted instead of 3.
      
      The fix is to change the timestamp of llvmcache-foo file to meet the thinLTO prune policy.
      
      Patch by Luo Yuanke.
      
      Differential Revision: https://reviews.llvm.org/D52452
      
      llvm-svn: 344158
      df17244f
    • Erik Pilkington's avatar
      [Sema] Fix a multiple definition bug with friends and templates · d1a184fc
      Erik Pilkington authored
      The problem was that MergeFunctionDecl sometimes needs the injected template
      arguments of a FunctionTemplateDecl, but is called before adding the new
      template to the redecl chain. This leads to multiple common pointers in the same
      redecl chain, each with their own identical instantiation. Fix this by merging
      the the common state before inserting the new template into the redecl chain.
      
      rdar://44810129
      
      Differential revision: https://reviews.llvm.org/D53046
      
      llvm-svn: 344157
      d1a184fc
    • Marshall Clow's avatar
      8a39827e
    • Zachary Turner's avatar
      Create a SymbolFile plugin for cross-platform PDB access. · 72148edc
      Zachary Turner authored
      The existing SymbolFilePDB only works on Windows, as it is written
      against a closed-source Microsoft SDK that ships with their debugging
      tools.
      
      There are several reasons we want to bypass this and go straight to the
      bits of the PDB, but just to list a few:
      
      More room for optimization. We can't see inside the implementation of
      the Microsoft SDK, so we don't always know if we're doing things in the
      most efficient way possible. For example, setting a breakpoint on main
      of a big program currently takes several seconds. With the
      implementation here, the time is unnoticeable.
      We want to be able to symbolize Windows minidumps even if not on
      Windows. Someone should be able to debug Windows minidumps as if they
      were on Windows, given that no running process is necessary.
      This patch is a very crude first attempt at filling out some of the
      basic pieces.
      
      I've implemented FindFunctions, ParseCompileUnitLineTable, and
      ResolveSymbolContext for a limited subset of possible parameter values,
      which is just enough to get it to display something nice for the
      breakpoint location.
      
      I've added several tests exercising this functionality which are limited
      enough to work on all platforms but still exercise this functionality.
      I'll try to add as many tests of this nature as I can, but at some
      point we'll need a live process.
      
      For now, this plugin is enabled always on non-Windows, and by setting
      the environment variable LLDB_USE_NATIVE_PDB_READER=1 on Windows.
      Eventually, once it's at parity with the Windows implementation, we'll
      delete the Windows DIA-based implementation.
      
      Differential Revision: https://reviews.llvm.org/D53002
      
      llvm-svn: 344154
      72148edc
    • Scott Linder's avatar
      Relax trivial cast requirements in CallPromotionUtils · 3759efc6
      Scott Linder authored
      Differential Revision: https://reviews.llvm.org/D52792
      
      llvm-svn: 344153
      3759efc6
    • Marshall Clow's avatar
      Make libc++abi work better with gcc's ARM unwind library. Reviewed as... · 611a55a0
      Marshall Clow authored
      Make libc++abi work better with gcc's ARM unwind library. Reviewed as https://reviews.llvm.org/D42242
      
      llvm-svn: 344152
      611a55a0
    • Guillaume Chatelet's avatar
      [llvm-exegesis] Fix always true assert · f33b6025
      Guillaume Chatelet authored
      llvm-svn: 344151
      f33b6025
    • Anton Bikineev's avatar
      [CodeGenCXX] Treat 'this' as noalias in constructors · cc7e7475
      Anton Bikineev authored
      This is currently a clang extension and a resolution
      of the defect report in the C++ Standard.
      
      Differential Revision: https://reviews.llvm.org/D46441
      
      llvm-svn: 344150
      cc7e7475
    • Andrea Di Biagio's avatar
    • Anastasia Stulova's avatar
      [OpenCL] Fixed address space cast in C style cast of C++ parsing · 5325f834
      Anastasia Stulova authored
      C style cast in OpenCL C++ was ignoring the address space
      conversions from OpenCL C and as a result accepting incorrect
      code to compile. This commit adds special function for checking 
      correctness of address spaces that is shared between C and C++
      casts.
       
      
      llvm-svn: 344148
      5325f834
  2. Oct 10, 2018