[LLVMdev] AliasAnalysis and memory dependency

Duncan Sands baldrick at free.fr
Tue Jan 3 00:43:36 PST 2012


Hi neda 8664,

> 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.

you forgot to include the error.

Ciao, Duncan.



More information about the llvm-dev mailing list