[llvm] [Asan] Provide TTI hook to provide memory reference infromation of target intrinsics. (PR #97070)
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 20:02:05 PDT 2024
================
@@ -955,6 +956,10 @@ class TargetTransformInfo {
MemCmpExpansionOptions enableMemCmpExpansion(bool OptSize,
bool IsZeroCmp) const;
+ // Add MemoryRefInfo of Intrinsic \p II into array \p Interesting.
+ bool getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+ IntrinsicInst *II) const;
----------------
yetingk wrote:
I think we still need to use non-const type, since we need to push back value of `II` to `Interesting`.
https://github.com/llvm/llvm-project/pull/97070
More information about the llvm-commits
mailing list