diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2016-07-10 23:01:32 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2016-07-10 23:01:32 +0000 |
| commit | e87ad547efec70e15a727d3e8d3d7df6e14e5c99 (patch) | |
| tree | f04aead430f92dd9ff679d3393bf4d8433eccf3a /clang/lib/Driver | |
| parent | d7e03a5bd9f8b109dc7b88024b443b87e4d96354 (diff) | |
| download | bcm5719-llvm-e87ad547efec70e15a727d3e8d3d7df6e14e5c99.tar.gz bcm5719-llvm-e87ad547efec70e15a727d3e8d3d7df6e14e5c99.zip | |
Add getReturnedArgOperand to Call/InvokeInst, CallSite
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.
Differential Revision: http://reviews.llvm.org/D22204
llvm-svn: 275031
Diffstat (limited to 'clang/lib/Driver')
0 files changed, 0 insertions, 0 deletions

