[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov closed https://github.com/llvm/llvm-project/pull/97359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -707,6 +708,9 @@ static void addSanitizers(const Triple &TargetTriple, MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass())); } +if (LangOpts.Sanitize.has(SanitizerKind::NumericalStability)) + MPM.addPass(NumericalStabilitySanitizerPass())

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - -fsanitize=numerical %s | FileCheck %s alexander-shaposhnikov wrote: done https://github.com/llvm/llvm-project/pull/97359 ___ cfe-comm

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov updated https://github.com/llvm/llvm-project/pull/97359 >From b231f0be6963a9cf0233c307b0b9030f9bdc120a Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 22:20:29 + Subject: [PATCH] [Clang] Add nsan instrumentation pass to t

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/97359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-02 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - -fsanitize=numerical %s | FileCheck %s MaskRay wrote: remove `-unknown-unknown` https://github.com/llvm/llvm-project/pull/97359 ___ cf

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/97359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread Vitaly Buka via cfe-commits
@@ -707,6 +708,9 @@ static void addSanitizers(const Triple &TargetTriple, MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass())); } +if (LangOpts.Sanitize.has(SanitizerKind::NumericalStability)) + MPM.addPass(NumericalStabilitySanitizerPass())

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Alexander Shaposhnikov (alexander-shaposhnikov) Changes Enable nsan instrumentation pass --- Full diff: https://github.com/llvm/llvm-project/pull/97359.diff 4 Files Affected: - (modified) clang/lib/Cod

[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

2024-07-01 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov created https://github.com/llvm/llvm-project/pull/97359 Enable nsan instrumentation pass >From 6b7f292ba467beb973099ca0e4994563ef5db381 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Mon, 1 Jul 2024 22:20:29 + Subject: [PATCH] [Clang]