aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2025-06-04 08:35:20 +0100
committerGitHub <noreply@github.com>2025-06-04 09:35:20 +0200
commitc7c79d259025f0e5edf778a46e03aeb6affd7c73 (patch)
treef0066601438f302e6ce007d950fedc84db6ee16b /clang/lib/CodeGen/CodeGenModule.cpp
parentb3ce9883f32e3b5b16e2b5fa54c3d98e85b66869 (diff)
downloadllvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.zip
llvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.tar.gz
llvm-c7c79d259025f0e5edf778a46e03aeb6affd7c73.tar.bz2
[IR][DSE] Support non-malloc functions in malloc+memset->calloc fold (#138299)
Add a `alloc-variant-zeroed` function attribute which can be used to inform folding allocation+memset. This addresses https://github.com/rust-lang/rust/issues/104847, where LLVM does not know how to perform this transformation for non-C languages. Co-authored-by: Jamie <jamie@osec.io>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions