[LLVMdev] Help using getSUnit
Ziqiang Patrick Huang
ziqiang.huang1001 at gmail.com
Tue Apr 28 09:06:44 PDT 2015
If I remember correctly about friend classes
class YourClass {
friend class ScheduleDAGInstrs;
...
}
This only allows ScheduleDAGInstr to access the private/protected members
of YourClass, not the other way around.
Hope this helps,
Patrick
2015-04-28 11:14 GMT-04:00 Hamza Halli <hmz.halli at gmail.com>:
> Hello,
> I’m a grad student working on project using LLVM.
> 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.
> Thanks,
> Hamza Halli
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150428/36967c54/attachment.html>
More information about the llvm-dev
mailing list