문제

I would like to write a pass at the backend that goes over all the MachineBasicBlock in graph order and check if for each 3 consecutive MachineBasicBlock some property is achieved.

any Idea how to write this pass?

도움이 되었습니까?

해결책

This blog post explains how to walk basic blocks in various graph orders (focusing on topological, but providing pointers for others as well). The same can be applied to MachineBasicBlock, using essentially the same mechanisms.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top