Allow to mutate the type of MLIR Value in-place
authorMehdi Amini <aminim@google.com>
Wed, 27 Mar 2019 20:38:48 +0000 (13:38 -0700)
committerjpienaar <jpienaar@google.com>
Sat, 30 Mar 2019 00:46:56 +0000 (17:46 -0700)
commit7641900d2fa649ba0faefdfeb5e5be52f09a6902
tree14510cb3a3813aa992c1e57a8d3714eeacd41f43
parentb0244b66a53f99134a7b56ab347f6a306c611d26
Allow to mutate the type of MLIR Value in-place

This avoid trashing memory by cloning and replaceAllUseswith when
performing type inference.

PiperOrigin-RevId: 240631137
mlir/include/mlir/IR/Value.h