MIR Serialization: Serialize references from the stack objects to named allocas.
authorAlex Lorenz <arphaman@gmail.com>
Wed, 15 Jul 2015 22:14:49 +0000 (22:14 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Wed, 15 Jul 2015 22:14:49 +0000 (22:14 +0000)
commit71da3635d95d4bfb8146e0f7f150ed285fb9990c
tree3817baff93d32a23c38953f4bdfab54181862aa1
parent641735d4266e22111b9772f6993182517a1b3205
MIR Serialization: Serialize references from the stack objects to named allocas.

This commit serializes the references to the named LLVM alloca instructions from
the stack objects in the machine frame info. This commit adds a field 'Name' to
the struct 'yaml::MachineStackObject'. This new field is used to store the name
of the alloca instruction when the alloca is present and when it has a name.

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