[PATCH] D47842: [ThinLTO] Add string saver onto index for value names

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 6 12:48:16 PDT 2018


tejohnson created this revision.
tejohnson added a reviewer: pcc.
Herald added subscribers: steven_wu, eraman, inglorion, mehdi_amini.

Adds a string saver to the ModuleSummaryIndex so it can store value
names in the case of adding a ValueInfo for a GUID when we don't
have the name stored in a Module string table. This is motivated
by the upcoming summary parser patch, where we will read value names
from the summary entry and want to store them, even when a Module
is not available.

Currently this allows us to store the name in the legacy bitcode case,
and I have added a test to show that.


Repository:
  rL LLVM

https://reviews.llvm.org/D47842

Files:
  include/llvm/Analysis/ModuleSummaryAnalysis.h
  include/llvm/IR/ModuleSummaryIndex.h
  lib/Analysis/ModuleSummaryAnalysis.cpp
  lib/Bitcode/Reader/BitcodeReader.cpp
  test/ThinLTO/X86/autoupgrade.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47842.150187.patch
Type: text/x-patch
Size: 4656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180606/1947dc52/attachment.bin>


More information about the llvm-commits mailing list