aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorAnh Tuyen Tran <anhtuyen@ca.ibm.com>2020-10-15 18:37:29 +0000
committerAnh Tuyen Tran <anhtuyen@ca.ibm.com>2020-10-15 18:37:29 +0000
commit224fd6ff48e26840f11f870faf2bde124dc2d261 (patch)
tree19f0cef4e2a6431a557bad5929c2c0701ba35aba /llvm/lib/Support/TargetParser.cpp
parent67f189e93ce3c25db74697551a77831a72b34929 (diff)
downloadllvm-224fd6ff48e26840f11f870faf2bde124dc2d261.zip
llvm-224fd6ff48e26840f11f870faf2bde124dc2d261.tar.gz
llvm-224fd6ff48e26840f11f870faf2bde124dc2d261.tar.bz2
[NFC][CaptureTracking] Move static function isNonEscapingLocalObject to llvm namespace
Function isNonEscapingLocalObject is a static one within BasicAliasAnalysis.cpp. It wraps around PointerMayBeCaptured of CaptureTracking, checking whether a pointer is to a function-local object, which never escapes from the function. Although at the moment, isNonEscapingLocalObject is used only by BasicAliasAnalysis, its functionality can be used by other pass(es), one of which I will put up for review very soon. Instead of copying the contents of this static function, I move it to llvm scope, and place it amongst other functions with similar functionality in CaptureTracking. The rationale for the location are: - Pointer escape and pointer being captured are actually two sides of the same coin - isNonEscapingLocalObject is wrapping around another function in CaptureTracking Reviewed By: jdoerfert (Johannes Doerfert) Differential Revision: https://reviews.llvm.org/D89465
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
0 files changed, 0 insertions, 0 deletions