From: Utkarsh Saxena Date: Tue, 29 Sep 2020 15:06:13 +0000 (+0200) Subject: [clangd] Disable msan instrumentation for generated Evaluate(). X-Git-Tag: llvmorg-13-init~10631 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a9f63d22fafb0d7de768efc6b7447f8e7f6bb220;p=platform%2Fupstream%2Fllvm.git [clangd] Disable msan instrumentation for generated Evaluate(). MSAN build times out for generated DecisionForest inference runtime. A solution worth trying is splitting the function into 300 smaller functions and then re-enable msan. For now we are disabling instrumentation for the generated function. Differential Revision: https://reviews.llvm.org/D88495 --- diff --git a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py index 20bfccd..423e5d1 100644 --- a/clang-tools-extra/clangd/quality/CompletionModelCodegen.py +++ b/clang-tools-extra/clangd/quality/CompletionModelCodegen.py @@ -145,6 +145,7 @@ def gen_header_code(features_json, cpp_class, filename): return """#ifndef %s #define %s #include +#include "llvm/Support/Compiler.h" %s class %s { @@ -160,6 +161,9 @@ private: friend float Evaluate(const %s&); }; +// The function may have large number of lines of code. MSAN +// build times out in such case. +LLVM_NO_SANITIZE("memory") float Evaluate(const %s&); %s #endif // %s