Deduce captures(none) for a return place and parameters

Extend attribute deduction to determine whether parameters using
indirect pass mode might have their address captured. Similarly to
the deduction of `readonly` attribute this information facilitates
memcpy optimizations.
This commit is contained in:
Tomasz Miąsko
2025-10-19 13:46:09 +02:00
parent 79966ae420
commit 2a03a948b9
17 changed files with 333 additions and 181 deletions

View File

@@ -289,6 +289,7 @@ pub(crate) enum AttributeKind {
DeadOnUnwind = 43,
DeadOnReturn = 44,
CapturesReadOnly = 45,
CapturesNone = 46,
}
/// LLVMIntPredicate