summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/MIR/X86/stack-objects.mir
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-07-15 22:14:49 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-07-15 22:14:49 +0000
commit37643a04a499a61ad800bcb526fe36e74b0b3636 (patch)
tree0b1bab2bf62904b5c896b61f5272ad7ef67546bc /llvm/test/CodeGen/MIR/X86/stack-objects.mir
parentb9de106d046af99cf990f2a53b37ed804cb817f2 (diff)
downloadbcm5719-llvm-37643a04a499a61ad800bcb526fe36e74b0b3636.tar.gz
bcm5719-llvm-37643a04a499a61ad800bcb526fe36e74b0b3636.zip
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. llvm-svn: 242339
Diffstat (limited to 'llvm/test/CodeGen/MIR/X86/stack-objects.mir')
-rw-r--r--llvm/test/CodeGen/MIR/X86/stack-objects.mir8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/MIR/X86/stack-objects.mir b/llvm/test/CodeGen/MIR/X86/stack-objects.mir
index 14ed4b74f96..37666300a91 100644
--- a/llvm/test/CodeGen/MIR/X86/stack-objects.mir
+++ b/llvm/test/CodeGen/MIR/X86/stack-objects.mir
@@ -21,12 +21,12 @@ name: test
frameInfo:
maxAlignment: 8
# CHECK: stack:
-# CHECK-NEXT: - { id: 0, offset: -12, size: 4, alignment: 4 }
-# CHECK-NEXT: - { id: 1, offset: -24, size: 8, alignment: 8 }
+# CHECK-NEXT: - { id: 0, name: b, offset: -12, size: 4, alignment: 4 }
+# CHECK-NEXT: - { id: 1, name: x, offset: -24, size: 8, alignment: 8 }
# CHECK-NEXT: - { id: 2, type: spill-slot, offset: -32, size: 4, alignment: 4 }
stack:
- - { id: 0, offset: -12, size: 4, alignment: 4 }
- - { id: 1, offset: -24, size: 8, alignment: 8 }
+ - { id: 0, name: b, offset: -12, size: 4, alignment: 4 }
+ - { id: 1, name: x, offset: -24, size: 8, alignment: 8 }
- { id: 2, type: spill-slot, offset: -32, size: 4, alignment: 4 }
body:
- id: 0
OpenPOWER on IntegriCloud