[PATCH] MIR Serialization: Connect the machine function analysis pass to MIR parser.

Alex Lorenz arphaman at gmail.com
Mon Jun 15 10:15:49 PDT 2015


I've updated the patch to address some of Justin's concerns:

- parseLLVMModule now doesn't need the error parameter, the diagnostics are reported via LLVMContext.
- Got rid of the diagnostic handler from llc, and modified LLVMContext's diagnostic printer so that it is able of printing out the mir diagnostics with colors.
- Added an assert that an LLVM IR module is always non null after parsing it with mirparser in llc.


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9928

Files:
  include/llvm/CodeGen/MIRParser/MIRParser.h
  include/llvm/CodeGen/MachineFunctionAnalysis.h
  include/llvm/CodeGen/MachineFunctionInitializer.h
  include/llvm/IR/DiagnosticInfo.h
  include/llvm/IR/DiagnosticPrinter.h
  include/llvm/Target/TargetMachine.h
  lib/CodeGen/LLVMTargetMachine.cpp
  lib/CodeGen/MIRParser/MIRParser.cpp
  lib/CodeGen/MachineFunction.cpp
  lib/CodeGen/MachineFunctionAnalysis.cpp
  lib/IR/DiagnosticInfo.cpp
  lib/IR/DiagnosticPrinter.cpp
  lib/IR/LLVMContext.cpp
  lib/Target/CppBackend/CPPBackend.cpp
  lib/Target/CppBackend/CPPTargetMachine.h
  test/CodeGen/MIR/function-missing-machine-function.mir
  test/CodeGen/MIR/llvmIR.mir
  tools/llc/llc.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9928.27685.patch
Type: text/x-patch
Size: 27678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150615/9327b0a8/attachment.bin>


More information about the llvm-commits mailing list