2014-12-26 31 views

回答

3

MachineFunction在指令選擇和「調度」之後,即在SelectionDAG之後。

參見:http://llvm.org/docs/CodeGenerator.html#high-level-design-of-the-code-generator; MachineInstrs創建第2步,MachinFunctionPass可以開始運行第3步。

+0

但'XXXDAGToDAGISel'也是一個'MachineFunctionPass',此時所選指令尚未啓動。 – Thomson

+1

DAGToDAGISel是指令選擇,它正好是使用MachineInstrs填充MachineFunction的通道,請參閱http://people.cs.pitt.edu/~yongli/notes/llvm5/LLVM5.html以獲得詳細的演練。 – Joky

相關問題