[PATCH] D33809: CodeGen: Refactor MIR parsing

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 1 16:41:21 PDT 2017


MatzeB created this revision.
Herald added subscribers: javed.absar, mcrosier.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D33809

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33809.101136.patch
Type: text/x-patch
Size: 22430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170601/7953d83a/attachment.bin>


More information about the llvm-commits mailing list