<div dir="ltr">If I remember correctly about friend classes<div><br></div><div>class YourClass {</div><div>    friend class ScheduleDAGInstrs;</div><div>    ...</div><div>}</div><div><br></div><div>This only allows ScheduleDAGInstr to access the private/protected members of YourClass, not the other way around. </div><div><br></div><div>Hope this helps,</div><div>Patrick</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-28 11:14 GMT-04:00 Hamza Halli <span dir="ltr"><<a href="mailto:hmz.halli@gmail.com" target="_blank">hmz.halli@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I’m a grad student working on project using LLVM.<br>
I’m trying to reorder machine instructions within a basic block using a pre emit pass. the pass relies on checking dependencies therefore getSUnit is a critical method for this pass. The issue I’m having is I can not access the method SUnit* getSUnit( MachineInstr *MI) const. I tried declaring my pass class as a ScheduleDAGInstrs friend but I still can’t have access. Please advice.<br>
Thanks,<br>
Hamza Halli<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div><br clear="all"><div><br></div><br><div class="gmail_signature"><div dir="ltr"><div><b></b></div></div></div></div>