]> granicus.if.org Git - llvm/commit
[llvm-profdata] Profile dump for compact binary format
authorWenlei He <aktoon@gmail.com>
Tue, 13 Aug 2019 17:56:08 +0000 (17:56 +0000)
committerWenlei He <aktoon@gmail.com>
Tue, 13 Aug 2019 17:56:08 +0000 (17:56 +0000)
commit027b0999dbfcf75771358db219fd3fcefbe83bc0
tree24b30066b426e65dad1f0a77aa58ce018580044c
parentb13d65fe1966b5b1847dbe75fc5f9fcee6e5bbb9
[llvm-profdata] Profile dump for compact binary format

Summary: Fix "llvm-profdata show" so it can work with compact binary format profile. The change is to mark all functions "used" so SampleProfileReaderCompactBinary::read will read in all profiles available for dumping. The function names will be MD5 hash for compact binary format.

Reviewers: wmi, davidxl, danielcdh

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65162

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368731 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/SampleProfReader.h
lib/ProfileData/SampleProfReader.cpp
test/tools/llvm-profdata/Inputs/compat-sample.profdata [new file with mode: 0644]
test/tools/llvm-profdata/compact-sample.proftext [new file with mode: 0644]