MIR Serialization: Initial serialization of stack objects.
authorAlex Lorenz <arphaman@gmail.com>
Fri, 10 Jul 2015 18:13:57 +0000 (18:13 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 10 Jul 2015 18:13:57 +0000 (18:13 +0000)
commitb83896903b07f3be5722c8a0449d4922ef8a5a8a
tree21308ebd5ceeb87e214a8b9f6d01fab3e0c19a1d
parent99cb9895937482e36f15770ec97cb5bf3ad0c18d
MIR Serialization: Initial serialization of stack objects.

This commit implements the initial serialization of stack objects from the
MachineFrameInfo class. It can only serialize the ordinary stack objects
(including ordinary spill slots), but it doesn't serialize variable sized or
fixed stack objects yet.

The 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 stack
objects are a part of machine function's YAML mapping.

Reviewers: Duncan P. N. Exon Smith

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