[llvm] r260200 - Add comments to some tests

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 8 21:47:08 PST 2016


Author: davidxl
Date: Mon Feb  8 23:47:08 2016
New Revision: 260200

URL: http://llvm.org/viewvc/llvm-project?rev=260200&view=rev
Log:
Add comments to some tests

Modified:
    llvm/trunk/unittests/ProfileData/InstrProfTest.cpp

Modified: llvm/trunk/unittests/ProfileData/InstrProfTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ProfileData/InstrProfTest.cpp?rev=260200&r1=260199&r2=260200&view=diff
==============================================================================
--- llvm/trunk/unittests/ProfileData/InstrProfTest.cpp (original)
+++ llvm/trunk/unittests/ProfileData/InstrProfTest.cpp Mon Feb  8 23:47:08 2016
@@ -722,6 +722,7 @@ TEST_P(MaybeSparseInstrProfTest, get_wei
   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_p
   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_p
   }
 }
 
+// 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;




More information about the llvm-commits mailing list