[clang] [sanitizer] Parse weighted sanitizer args and -fno-sanitize-top-hot (PR #121619)
Thurston Dang via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 7 19:54:48 PST 2025
================
@@ -44,6 +92,19 @@ void clang::serializeSanitizerSet(SanitizerSet Set,
#include "clang/Basic/Sanitizers.def"
}
+void clang::serializeSanitizerMaskCutoffs(
+ const SanitizerMaskCutoffs &Cutoffs, SmallVectorImpl<std::string> &Values) {
+#define SANITIZER(NAME, ID) \
+ if (auto C = Cutoffs[SanitizerKind::SO_##ID]) { \
+ llvm::APFloat F(*C); \
----------------
thurstond wrote:
I agree floating-point is ugly (especially with imprecision), but a range of [1,1000000] feels too arbitrary. I suspect we'd get a lot of confused users putting in a value of 1 and getting the opposite result.
https://github.com/llvm/llvm-project/pull/121619
More information about the cfe-commits
mailing list