Add a preprocess pass to remove sequences that are problematic with FileCheck
authorRiver Riddle <riverriddle@google.com>
Tue, 17 Sep 2019 20:59:12 +0000 (13:59 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 17 Sep 2019 21:00:03 +0000 (14:00 -0700)
commit3e2ac62b7d54e37a8b55dfc2e9654a0eef2c6fd6
tree65ef9e690b03f520a7789424ce045ec3c9b71398
parentb991e8b1e40cca25a6ed1b52ffe4a71a39cb72fb
Add a preprocess pass to remove sequences that are problematic with FileCheck

Add a preprocess phase to rewrite parts of the input line that may be problematic with filecheck. This change adds preprocessing to escape '[[' bracket sequences, as these are used by FileCheck for variables.

PiperOrigin-RevId: 269648490
mlir/utils/generate-test-checks.py