(original) (raw)
From your Pass, you can getAnalysis().getTLI().
Also, you can look at lib/Analysis/AliasAnalysis.cpp in LLVM to find places where we call this routine.
On Thu, Jul 9, 2015 at 1:16 PM Shen Liu <shl413@lehigh.edu> wrote:
Hi all, i hope to get the MemoryLocation for argument %1 in a CallInst like "call void @function(i32\* %1)", and i found an interface "getForArgument()" which seems available for this. However, i don't know how to correcly fill the 3rd argument TargetLibraryInfo in my own code and can't find an example in google. Does anybody know how to do it? Or some other advice for find the correct memory location more conveniently? Thank you very much!\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
MemoryLocation MemoryLocation::getForArgument ( ImmutableCallSite CS, unsigned ArgIdx, const TargetLibraryInfo & TLI ) \[static\]Shen
LLVM Developers mailing list
LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev