MIR Serialization: Serialize UsedPhysRegMask from the machine register info.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 11 Aug 2015 00:32:49 +0000 (00:32 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 11 Aug 2015 00:32:49 +0000 (00:32 +0000)
commit2a04c76ecd4a3a3b3b7ebe8d73314a01dd91ef99
tree1b0315530e544b20c52332751a42daa7584260f1
parent9d469f4f5ff57827c0e235ca283a08c0f640f578
MIR Serialization: Serialize UsedPhysRegMask from the machine register info.

This commit serializes the UsedPhysRegMask register mask from the machine
register information class. The mask is serialized as an inverted
'calleeSavedRegisters' mask to keep the output minimal.

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

Reviewers: Duncan P. N. Exon Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244548 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
include/llvm/CodeGen/MachineRegisterInfo.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/used-physical-register-info.mir [new file with mode: 0644]