[llvm] [Attributor] Pack out arguments into a struct (PR #119267)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 18:48:47 PST 2024


================
@@ -2963,6 +2963,132 @@ bool Attributor::shouldSeedAttribute(AbstractAttribute &AA) {
   return Result;
 }
 
+// For now: argument can be put in the struct if it's write only and
+// has no aliases.
+static bool canBeComapctedInAStruct(const Argument &Arg, Attributor &A,
----------------
arsenm wrote:

Typo 'Comapcted'. But I don't think this is the right phrasing. Something more like canConvertOutArgToReturn? 

https://github.com/llvm/llvm-project/pull/119267


More information about the llvm-commits mailing list