[clang] [clang] Skip auto-init on scalar vars that have a non-constant Init and no self-ref (PR #94642)

2024-06-18 Thread Alexander Potapenko via cfe-commits
@@ -15,7 +15,7 @@ struct Foo { int foo(unsigned n) { bool var_size_1; - long var_size_8 = 123; ramosian-glider wrote: LGTM https://github.com/llvm/llvm-project/pull/94642 ___ cfe-commits mailing list cfe-commits

[clang] [clang] Skip auto-init on scalar vars that have a non-constant Init and no self-ref (PR #94642)

2024-06-12 Thread Alexander Potapenko via cfe-commits
@@ -15,7 +15,7 @@ struct Foo { int foo(unsigned n) { bool var_size_1; - long var_size_8 = 123; ramosian-glider wrote: Can we have both the test cases in which scalar variables are auto-inited and where the initialization is skipped? Something along the li

[clang] [clang] Skip auto-init on scalar vars that have a non-constant Init and no self-ref (PR #94642)

2024-06-12 Thread Alexander Potapenko via cfe-commits
ramosian-glider wrote: Drive-by comment: can you please either merge the two commits together, or change their descriptions so that they are not 100% identical? https://github.com/llvm/llvm-project/pull/94642 ___ cfe-commits mailing list cfe-commits@l

[libcxxabi] [libcxx] [libc] [lld] [flang] [llvm] [clang] [lldb] [msan] Unpoison indirect outputs for userspace using memset for large operands (PR #79924)

2024-01-31 Thread Alexander Potapenko via cfe-commits
@@ -4552,16 +4552,22 @@ struct MemorySanitizerVisitor : public InstVisitor { } if (!ElemTy->isSized()) return; -Value *SizeVal = - IRB.CreateTypeSize(MS.IntptrTy, DL.getTypeStoreSize(ElemTy)); +auto Size = DL.getTypeStoreSize(ElemTy); +Value *Siz

[compiler-rt] [llvm] [clang-tools-extra] [clang] [lldb] [libcxx] [libc] [flang] [sanitizer][msan] fix AArch64 vararg support for KMSAN (PR #70660)

2023-11-06 Thread Alexander Potapenko via cfe-commits
https://github.com/ramosian-glider updated https://github.com/llvm/llvm-project/pull/70660 >From 3be71f474ee11326567458c8145c3b4e56031189 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Mon, 30 Oct 2023 12:18:47 +0100 Subject: [PATCH 1/2] [sanitizer][msan] fix AArch64 vararg support fo

[clang-tools-extra] [sanitizer][msan] fix AArch64 vararg support for KMSAN (PR #70659)

2023-10-30 Thread Alexander Potapenko via cfe-commits
https://github.com/ramosian-glider closed https://github.com/llvm/llvm-project/pull/70659 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [sanitizer][msan] fix AArch64 vararg support for KMSAN (PR #70659)

2023-10-30 Thread Alexander Potapenko via cfe-commits
https://github.com/ramosian-glider created https://github.com/llvm/llvm-project/pull/70659 Cast StackSaveAreaPtr, GrRegSaveAreaPtr, VrRegSaveAreaPtr to pointers to fix assertions in getShadowOriginPtrKernel(). Fixes: https://github.com/llvm/llvm-project/issues/69738 Patch by Mark Johnston. >

[clang-tools-extra] [sanitizer][msan] fix AArch64 vararg support for KMSAN (PR #70659)

2023-10-30 Thread Alexander Potapenko via cfe-commits
https://github.com/ramosian-glider created https://github.com/llvm/llvm-project/pull/70659 Cast StackSaveAreaPtr, GrRegSaveAreaPtr, VrRegSaveAreaPtr to pointers to fix assertions in getShadowOriginPtrKernel(). Fixes: https://github.com/llvm/llvm-project/issues/69738 Patch by Mark Johnston. >

[clang] 7ab44b5 - [msan] Allow KMSAN to use -fsanitize-memory-param-retval

2022-06-17 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-06-17T10:54:20+02:00 New Revision: 7ab44b5c2155245d115ba8642fcaabe65b54e44b URL: https://github.com/llvm/llvm-project/commit/7ab44b5c2155245d115ba8642fcaabe65b54e44b DIFF: https://github.com/llvm/llvm-project/commit/7ab44b5c2155245d115ba8642fcaabe65b54e44b

[clang] c85a264 - [asan] Add support for disable_sanitizer_instrumentation attribute

2022-02-18 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-02-18T09:51:54+01:00 New Revision: c85a26454d4b3dab383555c3864568b7aff9c225 URL: https://github.com/llvm/llvm-project/commit/c85a26454d4b3dab383555c3864568b7aff9c225 DIFF: https://github.com/llvm/llvm-project/commit/c85a26454d4b3dab383555c3864568b7aff9c225

[clang] 05ee1f4 - Revert "[asan] Add support for disable_sanitizer_instrumentation attribute"

2022-02-15 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-02-15T15:04:53+01:00 New Revision: 05ee1f4af8972f021917fb1f96624050fc6268bd URL: https://github.com/llvm/llvm-project/commit/05ee1f4af8972f021917fb1f96624050fc6268bd DIFF: https://github.com/llvm/llvm-project/commit/05ee1f4af8972f021917fb1f96624050fc6268bd

[clang] dd145f9 - [asan] Add support for disable_sanitizer_instrumentation attribute

2022-02-15 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2022-02-15T14:06:12+01:00 New Revision: dd145f953db3dafbc019f1d3783bb4f09a28af92 URL: https://github.com/llvm/llvm-project/commit/dd145f953db3dafbc019f1d3783bb4f09a28af92 DIFF: https://github.com/llvm/llvm-project/commit/dd145f953db3dafbc019f1d3783bb4f09a28af92

[clang] 2b55492 - [asan] Add support for disable_sanitizer_instrumentation attribute

2021-12-10 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-12-10T12:17:26+01:00 New Revision: 2b554920f11c8b763cd9ed9003f4e19b919b8e1f URL: https://github.com/llvm/llvm-project/commit/2b554920f11c8b763cd9ed9003f4e19b919b8e1f DIFF: https://github.com/llvm/llvm-project/commit/2b554920f11c8b763cd9ed9003f4e19b919b8e1f

[clang] cdb3916 - [tsan] Do not include from sanitize-thread-disable.c

2021-08-23 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-08-23T16:21:43+02:00 New Revision: cdb391698bb29fcbb9156604793121fdd73d3a89 URL: https://github.com/llvm/llvm-project/commit/cdb391698bb29fcbb9156604793121fdd73d3a89 DIFF: https://github.com/llvm/llvm-project/commit/cdb391698bb29fcbb9156604793121fdd73d3a89

[clang] 8300d52 - [tsan] Add support for disable_sanitizer_instrumentation attribute

2021-08-23 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-08-23T12:38:33+02:00 New Revision: 8300d52e8cbf757192d6b66efa537e15376bf756 URL: https://github.com/llvm/llvm-project/commit/8300d52e8cbf757192d6b66efa537e15376bf756 DIFF: https://github.com/llvm/llvm-project/commit/8300d52e8cbf757192d6b66efa537e15376bf756

[clang] 417a49e - [msan] Hotfix clang/test/CodeGen/sanitize-memory-disable.c

2021-08-20 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-08-20T16:00:25+02:00 New Revision: 417a49e78e730c964c60840110455c29fb562ee0 URL: https://github.com/llvm/llvm-project/commit/417a49e78e730c964c60840110455c29fb562ee0 DIFF: https://github.com/llvm/llvm-project/commit/417a49e78e730c964c60840110455c29fb562ee0

[clang] 8dc7dcd - [msan] Add support for disable_sanitizer_instrumentation attribute

2021-08-20 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-08-20T15:11:26+02:00 New Revision: 8dc7dcdca1e0d0ce4e39305272c8021a1aed07ed URL: https://github.com/llvm/llvm-project/commit/8dc7dcdca1e0d0ce4e39305272c8021a1aed07ed DIFF: https://github.com/llvm/llvm-project/commit/8dc7dcdca1e0d0ce4e39305272c8021a1aed07ed

[clang] b0391df - [clang][Codegen] Introduce the disable_sanitizer_instrumentation attribute

2021-08-20 Thread Alexander Potapenko via cfe-commits
Author: Alexander Potapenko Date: 2021-08-20T14:01:06+02:00 New Revision: b0391dfc737ede147e128fe877045f61fc5e4905 URL: https://github.com/llvm/llvm-project/commit/b0391dfc737ede147e128fe877045f61fc5e4905 DIFF: https://github.com/llvm/llvm-project/commit/b0391dfc737ede147e128fe877045f61fc5e4905

r370444 - [CodeGen]: fix error message for "=r" asm constraint

2019-08-30 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Fri Aug 30 01:58:46 2019 New Revision: 370444 URL: http://llvm.org/viewvc/llvm-project?rev=370444&view=rev Log: [CodeGen]: fix error message for "=r" asm constraint Summary: Nico Weber reported that the following code: char buf[9]; asm("" : "=r" (buf)); yields the "impos

r370335 - [CodeGen]: don't treat structures returned in registers as memory inputs

2019-08-29 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Thu Aug 29 04:21:41 2019 New Revision: 370335 URL: http://llvm.org/viewvc/llvm-project?rev=370335&view=rev Log: [CodeGen]: don't treat structures returned in registers as memory inputs Summary: The "=r" output constraint for a structure variable passed to inline asm shouldn't

r355181 - CodeGen: Fix PR40605 by splitting constant struct initializers

2019-03-01 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Fri Mar 1 01:00:41 2019 New Revision: 355181 URL: http://llvm.org/viewvc/llvm-project?rev=355181&view=rev Log: CodeGen: Fix PR40605 by splitting constant struct initializers When emitting initializers for local structures for code built with -ftrivial-auto-var-init, replace

r354861 - CodeGen: Explicitly initialize structure padding in the -ftrivial-auto-var-init mode

2019-02-26 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Tue Feb 26 02:46:21 2019 New Revision: 354861 URL: http://llvm.org/viewvc/llvm-project?rev=354861&view=rev Log: CodeGen: Explicitly initialize structure padding in the -ftrivial-auto-var-init mode When generating initializers for local structures in the -ftrivial-auto-var-in

Re: [PATCH] D57898: [RFC] Split constant structures generated by -ftrivial-auto-var-init when emitting initializators

2019-02-08 Thread Alexander Potapenko via cfe-commits
Still unsure about the heuristic here. I believe that for auto-initialization we want to be quite aggressive with these splits (unlike for regular constant stores). Perhaps we should do the split in the case all bytes are pattern bytes? (This is probably another use case for `forInit`) On Fri, Feb

r341641 - [MSan] add KMSAN support to Clang driver

2018-09-07 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Fri Sep 7 02:21:09 2018 New Revision: 341641 URL: http://llvm.org/viewvc/llvm-project?rev=341641&view=rev Log: [MSan] add KMSAN support to Clang driver Boilerplate code for using KMSAN instrumentation in Clang. We add a new command line flag, -fsanitize=kernel-memory, with

r310600 - [sanitizer-coverage] Change cmp instrumentation to distinguish const operands

2017-08-10 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Thu Aug 10 08:00:13 2017 New Revision: 310600 URL: http://llvm.org/viewvc/llvm-project?rev=310600&view=rev Log: [sanitizer-coverage] Change cmp instrumentation to distinguish const operands This implementation of SanitizerCoverage instrumentation inserts different callbacks d

r304984 - [sanitizer-coverage] Allow using KASAN instrumentation with sancov

2017-06-08 Thread Alexander Potapenko via cfe-commits
Author: glider Date: Thu Jun 8 11:24:21 2017 New Revision: 304984 URL: http://llvm.org/viewvc/llvm-project?rev=304984&view=rev Log: [sanitizer-coverage] Allow using KASAN instrumentation with sancov Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp cfe/trunk/test/Driver/fsanitize-coverage

Re: r270009 - Make Sema::getPrintingPolicy less ridiculously expensive. This used to perform

2016-05-18 Thread Alexander Potapenko via cfe-commits
Pretty impressive, thank you! I'm gonna give it a shot later today. sent from phone On May 19, 2016 3:45 AM, "Richard Smith via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Wed May 18 20:39:10 2016 > New Revision: 270009 > > URL: http://llvm.org/viewvc/llvm-project?r