[NFC] Rename isPointerOffset to getPointerOffsetFrom and move to Value.h
authorOCHyams <orlando.hyams@sony.com>
Wed, 19 Apr 2023 10:59:37 +0000 (11:59 +0100)
committerOCHyams <orlando.hyams@sony.com>
Wed, 19 Apr 2023 11:22:58 +0000 (12:22 +0100)
commitca10e73b530376e191fbaa4920b5dde02d8b5930
treeb5340ba99524b013a6671c1e74e73e744dd2c5df
parent637d572f7b5029504661860d20ab309427eb6090
[NFC] Rename isPointerOffset to getPointerOffsetFrom and move to Value.h

Linking LLVMCore failed when building D148536 with shared libs enabled:
https://lab.llvm.org/buildbot/#/builders/121/builds/29766

Make isPointerOffset a Value method and rename it to getPointerOffsetFrom.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D148698
llvm/include/llvm/Analysis/ValueTracking.h
llvm/include/llvm/IR/Value.h
llvm/lib/Analysis/ValueTracking.cpp
llvm/lib/IR/Value.cpp
llvm/lib/Target/AArch64/AArch64StackTagging.cpp
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp