[PATCH] MIR Serialization: Serialize the UsesPhysRegMask from machine register info.

Alex L arphaman at gmail.com
Thu Jul 30 16:47:14 PDT 2015


Hi,

This patch serializes the UsesPhysRegMask register mask from the machine
register
information class. The mask is serialized as an inverted
'calleeSavedRegisters' mask
to keep the output minimal. It uses the following syntax:

calleeSavedRegisters: [ '%bh', '%bl', '%bp', '%bpl', '%bx', '%ebp', '%ebx',
                        '%rbp', '%rbx', '%r12', '%r13', '%r14', '%r15',
                        '%r12b', '%r13b', '%r14b', '%r15b', '%r12d',
'%r13d',
                        '%r14d', '%r15d', '%r12w', '%r13w', '%r14w',
'%r15w' ]

As you can see, the sub registers are included in this mask as well.

This patch also allows the MIR parser to infer this mask from the register
mask
operands if the machine function doesn't specify it.

Cheers,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150730/b004850e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-MIR-Serialization-serialize-the-UsesPhysRegMask-from.patch
Type: application/octet-stream
Size: 8815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150730/b004850e/attachment.obj>


More information about the llvm-commits mailing list