[LLVMdev] AliasAnalysis and memory dependency
neda 8664
neda8664 at gmail.com
Mon Jan 2 20:25:17 PST 2012
Hi all,
I want to find memory dependency between CallInst instruction and other.
So i used the following code:
* AliasAnalysis &AA=getAnalysis<AliasAnalysis>();*
* if(isa<StoreInst>(inst1)){*
* ** **if(isa<CallInst>(inst2))**{*
* CallInst *call_inst2= dyn_cast<CallInst>(inst2); *
* if(AA.getModRefInfo(inst1,call_inst2)==mod)**{*
* //*
* } *
* }*
* }*
but i get the following error. I should what do for exrtact memory
dependency between CallInst instruction and other.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120103/67edf811/attachment.html>
More information about the llvm-dev
mailing list