<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto">Hi,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">For a custom target, there is a pass to perform memory dependence analysis, where, i need to get memory pointer for "load instruction". I want to check the pointer alias behavior. I am getting this by considering the memoperands for the load instruction. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">For "load instruction", Machine Instruction dumps as below:</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">vr12<def> = LD_Iri %vr2<kill>, 0; mem:LD4[<unknown>]</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I checked for memoperands for this MachInst, which are not empty, as "has_empty()" returns false. When I check "Value *", pointed by memoperands_begin() and memoperands_end(), i get NULL value. Thus, I don't the the memory pointer.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">What can be probable reasons for this behavior? or is this behavior expected? </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I have also checked in the lib/CodeGen/SelectionDAG/InstrEmitter.cpp, where MachineInstruction node is created from SDNode, but couldn't get much clue on this.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Thanks & <VAR id=yui-ie-cursor></VAR>Regards,</div>
<div style="RIGHT: auto">Pankaj</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"> </div></div></body></html>