LOOM should be able to instrument functions that accept structures by value or use sret. The details of how to do this may be ABI-dependant. Steps:
- write tests for structure-by-value parameters and (separately) for
sret,
- explore ABI-dependence of Clang output and
- teach LOOM how to deal with these details.