From fb895173f291afaaa9a4cb5a80daa6d0983dc169 Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Mon, 28 Sep 2020 12:03:54 -0700 Subject: [PATCH] Run format_sources.sh. --- lib/Conversion/TCFToTCP/TCFToTCP.cpp | 1 - lib/E2E/E2E.cpp | 1 - lib/E2E/TensorToMemref/LowerConstantTensorsToMemref.cpp | 2 +- lib/E2E/TensorToMemref/LowerShapedResultsToMemref.cpp | 6 +++--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/Conversion/TCFToTCP/TCFToTCP.cpp b/lib/Conversion/TCFToTCP/TCFToTCP.cpp index 37fbaaadd..e92d4133b 100644 --- a/lib/Conversion/TCFToTCP/TCFToTCP.cpp +++ b/lib/Conversion/TCFToTCP/TCFToTCP.cpp @@ -109,7 +109,6 @@ matchAndRewriteUnaryElementwise(Operation *op, PatternRewriter &rewriter) { "unhandled op (see dump above): TCF->TCP unary elementwise"); } return success(); - } namespace { diff --git a/lib/E2E/E2E.cpp b/lib/E2E/E2E.cpp index 94c4640f5..7147333db 100644 --- a/lib/E2E/E2E.cpp +++ b/lib/E2E/E2E.cpp @@ -111,7 +111,6 @@ mlir::NPCOMP::createLowerAllocMemRefOpsPass() { // RestrictedCanonicalizer //===----------------------------------------------------------------------===// - namespace { struct RestrictedCanonicalizer : public RestrictedCanonicalizerBase { diff --git a/lib/E2E/TensorToMemref/LowerConstantTensorsToMemref.cpp b/lib/E2E/TensorToMemref/LowerConstantTensorsToMemref.cpp index dfb99736a..127cf3cc9 100644 --- a/lib/E2E/TensorToMemref/LowerConstantTensorsToMemref.cpp +++ b/lib/E2E/TensorToMemref/LowerConstantTensorsToMemref.cpp @@ -85,7 +85,7 @@ class LowerConstantTensorsToMemref registry.insert(); } - void runOnOperation () override { + void runOnOperation() override { auto module = getOperation(); GlobalCreator globals(module); diff --git a/lib/E2E/TensorToMemref/LowerShapedResultsToMemref.cpp b/lib/E2E/TensorToMemref/LowerShapedResultsToMemref.cpp index 7a72d09d8..526985b92 100644 --- a/lib/E2E/TensorToMemref/LowerShapedResultsToMemref.cpp +++ b/lib/E2E/TensorToMemref/LowerShapedResultsToMemref.cpp @@ -140,8 +140,8 @@ static Value createLinalgBodyCalculationForElementwiseOp(Operation *op, return builder.create(loc, bodyArgs[0], bodyArgs[1]); if (isa(op)) { - auto greater = - builder.create(loc, CmpFPredicate::OGT, bodyArgs[0], bodyArgs[1]); + auto greater = builder.create(loc, CmpFPredicate::OGT, bodyArgs[0], + bodyArgs[1]); return builder.create(loc, greater, bodyArgs[0], bodyArgs[1]); } @@ -158,7 +158,7 @@ static Value createLinalgBodyCalculationForElementwiseOp(Operation *op, static LogicalResult matchAndRewriteElementwiseOp(Operation *op, ArrayRef operands, - ConversionPatternRewriter &rewriter) { + ConversionPatternRewriter &rewriter) { Location loc = op->getLoc(); Value result = op->getResult(0);