[PATCH] MIR Serialization: Serialize machine instruction names.

Alex Lorenz arphaman at gmail.com
Tue Jun 16 10:42:36 PDT 2015


Hi dexonsmith, bob.wilson, bogner,

This patch is based on a patch that implements initial serialization of machine basic blocks (http://reviews.llvm.org/D10465).

This patch is the initial patch for machine instruction serialization. Only the machine instruction names are serialized by this patch. The instructions are represented using a YAML sequence of string literals and are a part of machine basic block YAML mapping. An example of such MBB mapping is shown below:

  name: entry
  instructions:
    - mov32r0
    - retq

A machine instruction parser class 'MIParser' is introduced by this patch. This class will be used to parse the machine instructions. A supporting machine instruction lexing class will be added in the upcoming patch.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10481

Files:
  include/llvm/CodeGen/MIRYamlMapping.h
  lib/CodeGen/MIRParser/CMakeLists.txt
  lib/CodeGen/MIRParser/MIParser.cpp
  lib/CodeGen/MIRParser/MIParser.h
  lib/CodeGen/MIRParser/MIRParser.cpp
  lib/CodeGen/MIRPrinter.cpp
  test/CodeGen/MIR/X86/lit.local.cfg
  test/CodeGen/MIR/X86/machine-instructions.mir
  test/CodeGen/MIR/X86/unknown-instruction.mir

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10481.27769.patch
Type: text/x-patch
Size: 10759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150616/23fd2484/attachment.bin>


More information about the llvm-commits mailing list