[PATCH] MIR Serialization: Serialize MBB Successors.

Alex Lorenz arphaman at gmail.com
Wed Jun 24 11:02:57 PDT 2015


Hi dexonsmith, bob.wilson, bogner,

This patch is based on a patch that serializes MBB machine operands (http://reviews.llvm.org/D10608).

This patch serializes the machine basic block successors. It uses a YAML flow sequence that contains
strings that have the MBB references. The MBB reference strings use the same syntax as MBB machine
operands in the machine instruction strings.

Example:

  body:
    - id:          0
      name:    entry
      successors:  [ '%bb.1.less', '%bb.2.exit' ]
    - id:          1
      name:    less
    - id:          2
      name:    exit

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10699

Files:
  include/llvm/CodeGen/MIRYamlMapping.h
  lib/CodeGen/MIRParser/MIParser.cpp
  lib/CodeGen/MIRParser/MIParser.h
  lib/CodeGen/MIRParser/MIRParser.cpp
  lib/CodeGen/MIRPrinter.cpp
  test/CodeGen/MIR/expected-eof-after-successor-mbb.mir
  test/CodeGen/MIR/expected-mbb-reference-for-successor-mbb.mir
  test/CodeGen/MIR/successor-basic-blocks.mir

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10699.28369.patch
Type: text/x-patch
Size: 11070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/7ac59826/attachment.bin>


More information about the llvm-commits mailing list