Refactor DialectConversion to operate on functions in-place *without* any cloning...
authorRiver Riddle <riverriddle@google.com>
Wed, 22 May 2019 18:49:04 +0000 (11:49 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 02:56:24 +0000 (19:56 -0700)
commitd15d107da104fb8e41feeb37a86228263e79e91b
tree55a8f39503a60b214800386087372cd5b7b3281e
parentd16b4708090157ff3aa7dab7a9963fcc9e64b244
Refactor DialectConversion to operate on functions in-place *without* any cloning. This works by caching all of the requested pattern rewrite operations, e.g. replace operation, and only applying them on a completely successful conversion.

--

PiperOrigin-RevId: 249490306
mlir/include/mlir/IR/Function.h
mlir/include/mlir/Transforms/DialectConversion.h
mlir/lib/Transforms/DialectConversion.cpp