WG: Constraints of MachineFunctionPasses

After some experiments I think it works like this: A pass is not allowed to maintain any pointers or references to llvm Codegen or IR objects, such as MachineFunction*, MachineInstr*, and so on. Of course it is allowed to maintain other objects, for example objects from the standard library, in its state. Can someone confirm that please?

After some experiments I think it works like this: A pass is not allowed to maintain any pointers or references to llvm Codegen or IR objects, such as MachineFunction*, MachineInstr*, and so on. Of course it is allowed to maintain other objects, for example objects from the standard library, in its state. Can someone confirm that please?