MIR Serialization: Initial serialization of machine constant pools.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 20 Jul 2015 20:51:18 +0000 (20:51 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 20 Jul 2015 20:51:18 +0000 (20:51 +0000)
commit0e4484f44d997b55636193629dde908e6b4510e6
treeb8a327594b805fe4189fb114227a3e7ba4732def
parentca221d01d04c2c9ec26d70dba41dbce825e70cc3
MIR Serialization: Initial serialization of machine constant pools.

This commit implements the initial serialization of machine constant pools and
the constant pool index machine operands. The constant pool is serialized using
a YAML sequence of YAML mappings that represent the constant values.
The target-specific constant pool items aren't serialized by this commit.

Reviewers: Duncan P. N. Exon Smith

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242707 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MILexer.cpp
lib/CodeGen/MIRParser/MILexer.h
lib/CodeGen/MIRParser/MIParser.cpp
lib/CodeGen/MIRParser/MIParser.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/constant-pool.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/constant-value-error.mir [new file with mode: 0644]
test/CodeGen/MIR/X86/invalid-constant-pool-item.mir [new file with mode: 0644]