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 101494 llvm/trunk/include/llvm/CodeGen/MIRParser/MIRParser.h
llvm/trunk/include/llvm/CodeGen/MachineFunctionInitializer.h
llvm/trunk/include/llvm/CodeGen/MachineModuleInfo.h
llvm/trunk/include/llvm/Target/TargetMachine.h
llvm/trunk/lib/CodeGen/LLVMTargetMachine.cpp
llvm/trunk/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/trunk/lib/CodeGen/MachineFunction.cpp
llvm/trunk/lib/CodeGen/MachineFunctionPass.cpp
llvm/trunk/lib/CodeGen/MachineModuleInfo.cpp
llvm/trunk/lib/CodeGen/MachineOutliner.cpp
llvm/trunk/test/CodeGen/MIR/AArch64/generic-virtual-registers-error.mir
llvm/trunk/test/CodeGen/MIR/AArch64/generic-virtual-registers-with-regbank-error.mir
llvm/trunk/test/CodeGen/MIR/Generic/function-missing-machine-function.mir
llvm/trunk/test/CodeGen/MIR/X86/empty0.mir
llvm/trunk/test/CodeGen/MIR/X86/empty1.mir
llvm/trunk/test/CodeGen/MIR/X86/empty2.mir
llvm/trunk/tools/llc/llc.cpp
llvm/trunk/unittests/MI/LiveIntervalTest.cpp
llvm/trunk/unittests/Target/AArch64/InstSizes.cpp
|