[llvm] [memprof] Add YAML-based deserialization for MemProf profile (PR #117829)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 17:54:13 PST 2024


================
@@ -40,6 +40,71 @@
 #include "llvm/Support/Path.h"
 
 #define DEBUG_TYPE "memprof"
+
+namespace llvm {
+namespace yaml {
+template <> struct MappingTraits<memprof::Frame> {
+  static void mapping(IO &Io, memprof::Frame &F) {
----------------
snehasish wrote:

It would be nice to ensure this remains consistent with the definition of Frame. Maybe a static_assert of some sort might help?

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


More information about the llvm-commits mailing list