summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ProfileData/InstrProfTest.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-02-09 05:47:08 +0000
committerXinliang David Li <davidxl@google.com>2016-02-09 05:47:08 +0000
commita0601e76b86102c1630a83d9a7d851fe0bd3824c (patch)
tree875a44236f538ee27878011ba709129fae9975ce /llvm/unittests/ProfileData/InstrProfTest.cpp
parentb1cf558d8335ddfe517d96740a47fc4f65a2b8b8 (diff)
downloadbcm5719-llvm-a0601e76b86102c1630a83d9a7d851fe0bd3824c.tar.gz
bcm5719-llvm-a0601e76b86102c1630a83d9a7d851fe0bd3824c.zip
Add comments to some tests
llvm-svn: 260200
Diffstat (limited to 'llvm/unittests/ProfileData/InstrProfTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/InstrProfTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 1c5264287a7..3615b0a4359 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -722,6 +722,7 @@ TEST_P(MaybeSparseInstrProfTest, get_weighted_function_counts) {
ASSERT_EQ(20U, Counts[1]);
}
+// Testing symtab creator interface used by indexed profile reader.
TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_test) {
std::vector<StringRef> FuncNames;
FuncNames.push_back("func1");
@@ -773,6 +774,7 @@ TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_test) {
ASSERT_EQ(StringRef("bar3"), R);
}
+// Testing symtab creator interface used by value profile transformer.
TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_module_test) {
LLVMContext Ctx;
std::unique_ptr<Module> M = llvm::make_unique<Module>("MyModule.cpp", Ctx);
@@ -808,6 +810,8 @@ TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_module_test) {
}
}
+// Testing symtab serialization and creator/deserialization interface
+// used by coverage map reader, and raw profile reader.
TEST_P(MaybeSparseInstrProfTest, instr_prof_symtab_compression_test) {
std::vector<std::string> FuncNames1;
std::vector<std::string> FuncNames2;
OpenPOWER on IntegriCloud