[llvm] [memprof] Add InstrProfWriter::addMemProfData (PR #116528)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 05:56:15 PST 2024


================
@@ -350,6 +350,31 @@ bool InstrProfWriter::addMemProfCallStack(
   return true;
 }
 
+bool InstrProfWriter::addMemProfData(memprof::IndexedMemProfData Incoming,
+                                     function_ref<void(Error)> Warn) {
+  if (MemProfData.Frames.empty())
----------------
teresajohnson wrote:

Should it be the case that either all 3 are empty or none are? If so, add an error check?

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


More information about the llvm-commits mailing list