[PATCH] D22204: Add getReturnedArgOperand to Call/InvokeInst, CallSite
Hal Finkel via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 10 14:28:14 PDT 2016
hfinkel created this revision.
hfinkel added reviewers: majnemer, chandlerc.
hfinkel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.
In order to make the optimizer smarter about using the 'returned' argument attribute (generally, but motivated by my llvm.noalias intrinsic work), add a utility function to Call/InvokeInst, and CallSite, to make it easy to get the returned call argument (when one exists).
P.S. There is already an unfortunate amount of code duplication between CallInst and InvokeInst, and this adds to it. We should probably clean that up separately.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4364 bytes
Desc: not available
More information about the llvm-commits