Skip to content
  1. Nov 02, 2016
  2. Nov 01, 2016
    • Chris Bieneman's avatar
      Fix llvm-shlib cmake build · 3603e612
      Chris Bieneman authored
      Summary:
      This fixes a few things that used to work with a Makefile build, but were broken in cmake.
      
      1. Treat MINGW like a Linux system.
      2. The shlib should never contain other shared libraries.
      
      Patch By: Valentin Churavy
      
      Reviewers: axw, beanz
      
      Subscribers: modocache, beanz, mgorny
      
      Differential Revision: https://reviews.llvm.org/D25865
      
      llvm-svn: 285737
      3603e612
    • Alex Bradbury's avatar
      [RISCV] Add RISC-V ELF defines · 1524f62b
      Alex Bradbury authored
      Add the necessary definitions for RISC-V ELF files, including relocs. Also 
      make necessary trivial change to ELFYaml, llvm-objdump, and llvm-readobj in 
      order to work with RISC-V ELFs.
      
      Differential Revision: https://reviews.llvm.org/D23557
      
      llvm-svn: 285708
      1524f62b
  3. Oct 31, 2016
  4. Oct 30, 2016
  5. Oct 29, 2016
  6. Oct 28, 2016
  7. Oct 27, 2016
  8. Oct 26, 2016
  9. Oct 25, 2016
    • Vedant Kumar's avatar
      [llvm-cov] Don't use colored output until we know it's supported · 22c1b7c1
      Vedant Kumar authored
      CodeCoverageTool::error() depends on CoverageViewOptions::Colors being
      initialized. Should fix:
      
        http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/56
      
      llvm-svn: 285103
      22c1b7c1
    • Michael Ilseman's avatar
      Add -strip-nonlinetable-debuginfo capability · e5428043
      Michael Ilseman authored
      This adds a new function to DebugInfo.cpp that takes an llvm::Module
      as input and removes all debug info metadata that is not directly
      needed for line tables, thus effectively stripping all type and
      variable information from the module.
      
      The primary motivation for this feature was the bitcode work flow
      (cf. http://lists.llvm.org/pipermail/llvm-dev/2016-June/100643.html
      for more background). This is not wired up yet, but will be in
      subsequent patches.  For testing, the new functionality is exposed to
      opt with a -strip-nonlinetable-debuginfo option.
      
      The secondary use-case (and one that works right now!) is as a
      reduction pass in bugpoint. I added two new bugpoint options
      (-disable-strip-debuginfo and -disable-strip-debug-types) to control
      the new features. By default it will first attempt to remove all debug
      information, then only the type info, and then proceed to hack at any
      remaining MDNodes.
      
      Thanks to Adrian Prantl for stewarding this patch!
      
      llvm-svn: 285094
      e5428043
    • Vedant Kumar's avatar
      [llvm-cov] Add support for loading coverage from multiple objects · a3661eff
      Vedant Kumar authored
      Differential Revision: https://reviews.llvm.org/D25086
      
      llvm-svn: 285088
      a3661eff
    • Rafael Espindola's avatar
      Make the LTO comdat api more symbol table friendly. · 7912110d
      Rafael Espindola authored
      In an IR symbol table I would expect the comdats to be represented as:
      
      - A table of strings, one for each comdat name.
      - Each symbol has an optional index into that table.
      
      The natural api for accessing that would be
      
      InputFile:
      ArrayRef<StringRef> getComdatTable() const;
      
      Symbol:
      int getComdatIndex() const;
      
      This patch implements an API as close to that as possible.  The
      implementation on top of the current IRObjectFile is a bit hackish,
      but should map just fine over a symbol table and is very convenient to
      use.
      
      llvm-svn: 285061
      7912110d
    • Vedant Kumar's avatar
      [llvm-cov] Do not print out the filename of the object file · 5c61c703
      Vedant Kumar authored
      When we load coverage data from multiple objects, we don't have a way to
      attribute a source object to a function record. Printing out the object
      filename next to the source filename is already not very useful: soon,
      it'll actually become misleading. Stop printing out the filename now.
      
      llvm-svn: 285043
      5c61c703
  10. Oct 24, 2016
    • Pavel Labath's avatar
      [Object] Replace TimeValue with std::chrono · bff47b51
      Pavel Labath authored
      Summary:
      Most of the changes are very straight-forward. The only choice I had to make was
      to use second-precision time points in the Archive classes. I did this because
      the archive files use that precision in the on-disk representation anyway.
      
      Reviewers: rafael, zturner
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25773
      
      llvm-svn: 284974
      bff47b51
    • Pavel Labath's avatar
      Remove TimeValue usage from llvm/Support · 757ca886
      Pavel Labath authored
      Summary:
      This is a follow-up to D25416. It removes all usages of TimeValue from
      llvm/Support library (except for the actual TimeValue declaration), and replaces
      them with appropriate usages of std::chrono. To facilitate this, I have added
      small utility functions for converting time points and durations into appropriate
      OS-specific types (FILETIME, struct timespec, ...).
      
      Reviewers: zturner, mehdi_amini
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D25730
      
      llvm-svn: 284966
      757ca886
    • Hal Finkel's avatar
      [llvm-opt-report] Fix unroll-count reporting · fd448408
      Hal Finkel authored
      Fix the implementation of OptReportLocationInfo's operator < so that contexts
      with different unroll counts are reported separately.
      
      llvm-svn: 284957
      fd448408
  11. Oct 21, 2016
  12. Oct 20, 2016
    • Zachary Turner's avatar
      [CodeView] Refactor serialization to use StreamInterface. · 4d49eb9f
      Zachary Turner authored
      This was all using ArrayRef<>s before which presents a problem
      when you want to serialize to or deserialize from an actual
      PDB stream.  An ArrayRef<> is really just a special case of
      what can be handled with StreamInterface though (e.g. by using
      a ByteStream), so changing this to use StreamInterface allows
      us to plug in a PDB stream and get all the record serialization
      and deserialization for free on a MappedBlockStream.
      
      Subsequent patches will try to remove TypeTableBuilder and
      TypeRecordBuilder in favor of class that operate on
      Streams as well, which should allow us to completely merge
      the reading and writing codepaths for both types and symbols.
      
      Differential Revision: https://reviews.llvm.org/D25831
      
      llvm-svn: 284762
      4d49eb9f
    • Reid Kleckner's avatar
      Remove LLVM_NOEXCEPT and replace it with noexcept · 990504e6
      Reid Kleckner authored
      Now that we have dropped MSVC 2013, all supported compilers support
      noexcept and we can drop this portability macro.
      
      llvm-svn: 284672
      990504e6
    • Rong Xu's avatar
      [PGO] Fix a use-after-move. NFC. · fe90d86c
      Rong Xu authored
      llvm-svn: 284664
      fe90d86c
    • Rong Xu's avatar
      [PGO] Fix bogus warning for merging empty llvm profile file · 2c684cfd
      Rong Xu authored
      Profile runtime can generate an empty raw profile (when there is no function in
      the shared library). This empty profile is treated as a text format profile.  A
      test format profile without the flag of "#IR" is thought to be a clang
      generated profile.  So in llvm profile merging, we will get a bogus warning of
      "Merge IR generated profile with Clang generated profile."
      
      The fix here is to skip the empty profile (when the buffer size is 0) for
      profile merge.
      
      Reviewers: vsk, davidxl
      
      Differential Revision: http://reviews.llvm.org/D25687
      
      llvm-svn: 284659
      2c684cfd
Loading