diff options
| author | River Riddle <riverriddle@google.com> | 2019-06-25 21:31:54 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-06-25 21:32:23 -0700 |
| commit | a4c3a6455c404ef4e56a73be9457affb53536873 (patch) | |
| tree | 98c799b972d8e5eaec881d1c1ef524a35e0394ab /mlir/test/lib/Transforms | |
| parent | 679a3b41911457ef0f4a79a3135bb7ecca6d2f97 (diff) | |
| download | bcm5719-llvm-a4c3a6455c404ef4e56a73be9457affb53536873.tar.gz bcm5719-llvm-a4c3a6455c404ef4e56a73be9457affb53536873.zip | |
Move the emitError/Warning/Remark utility methods out of MLIRContext and into the mlir namespace.
Now that Locations are attributes, they have direct access to the MLIR context. This allows for simplifying error emission by removing unnecessary context lookups.
PiperOrigin-RevId: 255112791
Diffstat (limited to 'mlir/test/lib/Transforms')
| -rw-r--r-- | mlir/test/lib/Transforms/TestVectorizationUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp index 6636453c5e9..4767e3367be 100644 --- a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp +++ b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp @@ -282,7 +282,7 @@ void VectorizerTestPass::runOnFunction() { testNormalizeMaps(); if (!outs.str().empty()) { - getContext().emitRemark(UnknownLoc::get(&getContext()), outs.str()); + emitRemark(UnknownLoc::get(&getContext()), outs.str()); } } |

