When parsing .mir files immediately construct the MachineFunctions and
put them into MachineModuleInfo.
This allows us to get rid of the delayed construction (and delayed error
reporting) through the MachineFunctionInitialzier interface.
Paths
| Differential D33809
CodeGen: Refactor MIR parsing ClosedPublic Authored by MatzeB on Jun 1 2017, 4:41 PM.
Details Summary When parsing .mir files immediately construct the MachineFunctions and This allows us to get rid of the delayed construction (and delayed error
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 5 2017, 10:59 AM Closed by commit rL304758: CodeGen: Refactor MIR parsing (authored by matze). · Explain WhyJun 5 2017, 5:45 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 101136 include/llvm/CodeGen/MIRParser/MIRParser.h
include/llvm/CodeGen/MachineFunctionInitializer.h
include/llvm/CodeGen/MachineModuleInfo.h
include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineModuleInfo.cpp
test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir
test/CodeGen/MIR/AArch64/generic-virtual-registers-with-regbank-error.mir
test/CodeGen/MIR/Generic/function-missing-machine-function.mir
test/CodeGen/MIR/X86/empty0.mir
test/CodeGen/MIR/X86/empty1.mir
test/CodeGen/MIR/X86/empty2.mir
tools/llc/llc.cpp
|
Rename to getOrCreateMachineFunction