[LLVMdev] Def_Use chain

neda 8664 neda8664 at gmail.com
Sun Jul 24 08:28:07 PDT 2011


Hi All


I extract Def_Use chain by following code:



for (Value::use_iterator i = F->use_begin(), e = F->use_end(); i != e; ++i)

  if (Instruction *Inst = dyn_cast<Instruction>(*i)) {

    errs() << "F is used in instruction:\n";

    errs() << *Inst << "\n";

  }




Now, I want to distinguish the register name or memory variable that lead to
this data dependency.


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110724/3a8b6a22/attachment.html>


More information about the llvm-dev mailing list