summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cat/llvm-cat.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pass a reference to a module to the bitcode writer.Rafael Espindola2018-02-141-1/+1
| | | | | | | This simplifies most callers as they are already using references or std::unique_ptr. llvm-svn: 325155
* [Bitcode] Fix some Clang-tidy modernize-use-using and Include What You Use ↵Eugene Zelenko2017-09-071-3/+15
| | | | | | warnings; other minor fixes (NFC). llvm-svn: 312760
* Bitcode: Add a string table to the bitcode format.Peter Collingbourne2017-04-171-1/+8
| | | | | | | | | | | | | | | | | | | | | | | Add a top-level STRTAB block containing a string table blob, and start storing strings for module codes FUNCTION, GLOBALVAR, ALIAS, IFUNC and COMDAT in the string table. This change allows us to share names between globals and comdats as well as between modules, and improves the efficiency of loading bitcode files by no longer using a bit encoding for symbol names. Once we start writing the irsymtab to the bitcode file we will also be able to share strings between it and the module. On my machine, link time for Chromium for Linux with ThinLTO decreases by about 7% for no-op incremental builds or about 1% for full builds. Total bitcode file size decreases by about 3%. As discussed on llvm-dev: http://lists.llvm.org/pipermail/llvm-dev/2017-April/111732.html Differential Revision: https://reviews.llvm.org/D31838 llvm-svn: 300464
* Avoid some string copies, NFCVedant Kumar2017-04-111-2/+2
| | | | llvm-svn: 299993
* llvm-cat: Allow bitcode files to be created with no modules.Peter Collingbourne2016-12-131-1/+1
| | | | llvm-svn: 289610
* Bitcode: Introduce BitcodeWriter interface.Peter Collingbourne2016-11-291-0/+73
This interface allows clients to write multiple modules to a single bitcode file. Also introduce the llvm-cat utility which can be used to create a bitcode file containing multiple modules. Differential Revision: https://reviews.llvm.org/D26179 llvm-svn: 288195
OpenPOWER on IntegriCloud