aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2023-03-15 07:39:14 -0700
committerPhilip Reames <listmail@philipreames.com>2023-03-15 07:59:42 -0700
commitde71056a7dbce33186687153af267e0503bbacdc (patch)
tree60295bd7a07ee271ac3937675e172b333c7d2a4b /llvm/lib/Support/CommandLine.cpp
parent8c258fda1f9b33fc847cfff9c2ee33ce4615ff0b (diff)
downloadllvm-de71056a7dbce33186687153af267e0503bbacdc.zip
llvm-de71056a7dbce33186687153af267e0503bbacdc.tar.gz
llvm-de71056a7dbce33186687153af267e0503bbacdc.tar.bz2
[ASAN] Initial support memory checks on scalable vector typed allocas
This patch adjusts the memory instrumentation to account for scalable vector types in allocas. Note that we don't allow scalable vector globals, so we don't need to update that codepath. A couple points. First, this simply disables the optimization for scalable allocas. We can revisit this in the future, but it requires a bit of plumbing to get scalable object sizes through the visitor to be useful. Second, I am simply disabling stack poisoning for scalable vector allocas. This is mostly for staging the change as I can't write a working test for memory instrumentation without doing so. I don't think it's unreasonable to do on it's own basis as without the bailout, we crash the compiler. Differential Revision: https://reviews.llvm.org/D145259
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions