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/lib/Dialect/FxpMathOps/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/lib/Dialect/FxpMathOps/Transforms')
| -rw-r--r-- | mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp index 2a752c2c865..ff198217bb7 100644 --- a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp +++ b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp @@ -52,8 +52,7 @@ static Value *emitUniformPerLayerDequantize(Location loc, Value *input, // Pre-conditions. if (!elementType.isSigned()) { // TODO: Support unsigned storage type. - rewriter.getContext()->emitWarning( - loc, "unimplemented: dequantize signed uniform"); + emitWarning(loc, "unimplemented: dequantize signed uniform"); return nullptr; } |

