[PATCH] MIR Serialization: Serialize the machine basic block successor weights.

Alex L arphaman at gmail.com
Tue Jul 28 15:21:56 PDT 2015


Hi,

This patch serializes the machine basic block successor's weights.
This patch adds a new attribute 'successors-and-weights' to the
machine basic block YAML mapping. The new attribute is used
to store an array of successors and their corresponding weights.
Example:

    successors-and-weights: [ { block: '%bb.1.less', weight: 16 }, { block:
'%bb.2.exit', weight: 16 } ]

The old attribute 'successors' still can be used to specify the
machine basic block's successors when those successors don't
have any weights.

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150728/6d82862f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MIR-Serialization-serialize-the-MBB-successor-weight.patch
Type: application/octet-stream
Size: 8123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150728/6d82862f/attachment.obj>


More information about the llvm-commits mailing list