[llvm] [Asan] Provide TTI hook to provide memory reference infromation of target intrinsics. (PR #97070)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 15:32:43 PDT 2024


================
@@ -36,6 +38,91 @@ static cl::opt<unsigned> SLPMaxVF(
         "exclusively by SLP vectorizer."),
     cl::Hidden);
 
+bool RISCVTTIImpl::getMemoryRefInfo(SmallVectorImpl<MemoryRefInfo> &Interesting,
+                                    IntrinsicInst *II) const {
+  const DataLayout &DL = getDataLayout();
+  unsigned IntNo = II->getIntrinsicID();
+  LLVMContext &C = II->getContext();
+  IRBuilder<> IB(II);
----------------
topperc wrote:

`IB` is unused

https://github.com/llvm/llvm-project/pull/97070


More information about the llvm-commits mailing list