OSDN Git Service

Simplify MIR Output used for Codegen Testing
authorVivek Pandya <vivekvpandya@gmail.com>
Sat, 13 May 2017 08:55:43 +0000 (08:55 +0000)
committerVivek Pandya <vivekvpandya@gmail.com>
Sat, 13 May 2017 08:55:43 +0000 (08:55 +0000)
commit1ec28e35ff9e63d4290127473ef65fccf6e73f2d
tree9c2ce26209c25fac89dc1473fe38d1588ec89c98
parentf3c348a5377031852eb5cee6306b227de62332b0
Simplify MIR Output used for Codegen Testing

- MIRYamlMapping: Default value provided for fields which have optional
mappings. Implemented == operators for required classes. When a field's value is
same as default value specified YAML IO class will not print it.

- MIRPrinter: Above mentioned behaviour is not on by default. If -simplify-mir
option not specified, then make yaml::Output to print fields with default values
too.

Differential Revision: https://reviews.llvm.org/D32304

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302984 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRPrinter.cpp