MIR Serialization: Serialize the fixed stack objects.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 13 Jul 2015 18:07:26 +0000 (18:07 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 13 Jul 2015 18:07:26 +0000 (18:07 +0000)
commitad7556d177996c5acc21475e9e6b378617e6c559
treecc8f232dddba9dc14df48fb47a897453f6c03206
parentc6d1cc7e16cab5eac3222f7a18f33f999b517ebb
MIR Serialization: Serialize the fixed stack objects.

This commit serializes the fixed stack objects, including fixed spill slots.
The fixed stack objects are serialized using a YAML sequence of YAML inline
mappings. Each mapping has the object's ID, type, size, offset, and alignment.
The objects that aren't spill slots also serialize the isImmutable and isAliased
flags.

The fixed stack objects are a part of the machine function's YAML mapping.

Reviewers: Duncan P. N. Exon Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242045 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/fixed-stack-objects.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-aliased.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/spill-slot-fixed-stack-object-immutable.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/spill-slot-fixed-stack-objects.mir [new file with mode: 0644]