[clang] [sanitizer] Parse weighted sanitizer args and -fno-sanitize-top-hot (PR #121619)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 13:58:18 PST 2025
================
@@ -154,6 +154,8 @@ struct SanitizerKind {
#include "clang/Basic/Sanitizers.def"
}; // SanitizerKind
+using SanitizerMaskCutoffs = std::array<float, SanitizerKind::SO_Count>;
----------------
vitalybuka wrote:
I was thinking what could be a better implementation to store values. I can be different depending how use those constants.
Let's create a special class for there.
Maybe SanitizerMaskCutoffs?
and put array and NoSanitizeTopHot into that.
https://github.com/llvm/llvm-project/pull/121619
More information about the cfe-commits
mailing list