Make friendly number-based names for OpConstant
authorDavid Neto <dneto@google.com>
Thu, 13 Oct 2016 20:22:04 +0000 (16:22 -0400)
committerDavid Neto <dneto@google.com>
Tue, 15 Nov 2016 19:05:03 +0000 (14:05 -0500)
commitc935253c91c687ff3fe42bf9197b81c0b64bfa34
tree229e7090962c3a5b89cba1e1c2257fba48399ec9
parent4f750c0dcc50055a5314857e299e252570c81998
Make friendly number-based names for OpConstant

For example:
  %int_42 = OpConstant %int 42
  %int_n42 = OpConstant %int -42
  %float_3_14 = OpConstant %float 3.14
source/name_mapper.cpp
source/name_mapper.h
test/binary_to_text_test.cpp
test/name_mapper_test.cpp
test/opt/eliminate_dead_const_test.cpp
test/opt/fold_spec_const_op_composite_test.cpp
test/opt/freeze_spec_const_test.cpp
test/opt/ir_loader_test.cpp
test/opt/set_spec_const_default_value_test.cpp