[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
This commit is contained in:
		
							parent
							
								
									a06581ef39
								
							
						
					
					
						commit
						a9f63d22fa
					
				| 
						 | 
					@ -145,6 +145,7 @@ def gen_header_code(features_json, cpp_class, filename):
 | 
				
			||||||
    return """#ifndef %s
 | 
					    return """#ifndef %s
 | 
				
			||||||
#define %s
 | 
					#define %s
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
 | 
					#include "llvm/Support/Compiler.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
%s
 | 
					%s
 | 
				
			||||||
class %s {
 | 
					class %s {
 | 
				
			||||||
| 
						 | 
					@ -160,6 +161,9 @@ private:
 | 
				
			||||||
  friend float Evaluate(const %s&);
 | 
					  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&);
 | 
					float Evaluate(const %s&);
 | 
				
			||||||
%s
 | 
					%s
 | 
				
			||||||
#endif // %s
 | 
					#endif // %s
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue