about summary refs log tree commit diff
path: root/tests/codegen-llvm/function-arguments.rs
AgeCommit message (Collapse)AuthorLines
2025-08-26Use captures(address) instead of captures(none) for indirect argsNikita Popov-2/+2
While provenance cannot be captured through these arguments, the address / object identity can.
2025-08-20Tell LLVM about read-only capturesNikita Popov-10/+10
`&Freeze` parameters are not only `readonly` within the function, but any captures of the pointer can also only be used for reads. This can now be encoded using the `captures(address, read_provenance)` attribute.
2025-08-11Set dead_on_return attribute for indirect argumentsNikita Popov-1/+1
Set the dead_on_return attribute (added in LLVM 21) for arguments that are passed indirectly, but not byval. This indicates that the value of the argument on return does not matter, enabling additional dead store elimination.
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-0/+278