[llvm] [MemProf] Add basic summary section support (PR #141805)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 11:05:54 PDT 2025


================
@@ -18,14 +18,23 @@
 #include "llvm/ProfileData/MemProfData.inc"
 #include "llvm/ProfileData/MemProfRadixTree.h"
 #include "llvm/ProfileData/MemProfReader.h"
+#include "llvm/ProfileData/MemProfSummary.h"
 #include "llvm/Support/raw_ostream.h"
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
 #include <initializer_list>
 
+using namespace llvm;
+
+extern cl::opt<float> MemProfLifetimeAccessDensityColdThreshold;
----------------
teresajohnson wrote:

This turned out to not work, because the variables themselves are not defined in the llvm namespace. I was able to replace the using namespace with just adding "llvm::" qualifiers in front of the cl::opt types.

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


More information about the llvm-commits mailing list