[llvm] [memprof] Add IndexedMemProfReader::getMemProfCallerCalleePairs (PR #115807)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 14:42:25 PST 2024


================
@@ -580,6 +580,68 @@ TEST_F(InstrProfTest, test_memprof_v2_partial_schema) {
   EXPECT_THAT(WantRecord, EqualsRecord(Record));
 }
 
+TEST_F(InstrProfTest, test_caller_callee_pairs) {
+  const MemInfoBlock MIB = makePartialMIB();
+
+  Writer.setMemProfVersionRequested(memprof::Version3);
----------------
teresajohnson wrote:

What happens if we try to do this in an earlier version?

https://github.com/llvm/llvm-project/pull/115807


More information about the llvm-commits mailing list