I’m trying to access the MachineFunctionInfo structure from a pre-ISel pass. In order to do this I have to get access to the MachineFunction and then call getInfo().
Currently in my pass I request it via:
void AMDILBarrierDetect::getAnalysisUsage(AnalysisUsage &AU) const
However, I am getting an assert:
“Cannot call createPass on PassInfo without default ctor!”);
First question, is this possible? If so, how do I get NormalCtor to not be NULL?
Second question, if I want to pass information from before Instruction selection to after instruction selection, is this the preferred way? If not how?