<div dir="ltr">Hello everyone,<div>As I mentioned in my previous posts,I am using a machinefunction pass to find all the loops in the program and do some analysis on them. I have completed my pass now and it works correctly. but the only issue is that,I have noticed that if I have two functions in my program, and one of them is part of the loop for another one ,by using  runonmachinefunction(), I will get one loop per each function. whereas the correct result is to find one loop at depth 1 and the other one at depth 2 as an inner loop.</div><div>In order to get this result, I am trying to use write a MachineModule Pass, but I can't seem to find any MachineModule.h in codegen. Right now, is this even possible to write a machinemodule pass? If not what other options do I have to get the results I need.</div><div>Thank you,</div><div>Fami</div><div><br></div></div>