[LLVMdev] Help using getSUnit

Hamza Halli hmz.halli at gmail.com
Tue Apr 28 08:14:24 PDT 2015


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



More information about the llvm-dev mailing list