[compiler-rt] [llvm] [nsan] Emit calls to optimized functions (PR #98900)
Alexander Shaposhnikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 17 17:50:25 PDT 2024
================
@@ -598,7 +655,14 @@ static GlobalValue *createThreadLocalGV(const char *Name, Module &M, Type *Ty) {
}
NumericalStabilitySanitizer::NumericalStabilitySanitizer(Module &M)
- : DL(M.getDataLayout()), Context(M.getContext()), Config(Context) {
+ : DL(M.getDataLayout()), Context(M.getContext()), Config(Context),
+ NsanCopyFns(M, {"__nsan_copy_4", "__nsan_copy_8", "__nsan_copy_16"},
+ "__nsan_copy_values", 3),
----------------
alexander-shaposhnikov wrote:
1. Why 3 and 2 (2 and 1 ?) ?
2. Need a comment (e.g. 2 /*NumArgs*/)
https://github.com/llvm/llvm-project/pull/98900
More information about the llvm-commits
mailing list