Run format_sources.sh.

pull/61/head
Stella Laurenzo 2020-09-28 12:03:54 -07:00
parent b5f010284f
commit fb895173f2
4 changed files with 4 additions and 6 deletions

View File

@ -109,7 +109,6 @@ matchAndRewriteUnaryElementwise(Operation *op, PatternRewriter &rewriter) {
"unhandled op (see dump above): TCF->TCP unary elementwise");
}
return success();
}
namespace {

View File

@ -111,7 +111,6 @@ mlir::NPCOMP::createLowerAllocMemRefOpsPass() {
// RestrictedCanonicalizer
//===----------------------------------------------------------------------===//
namespace {
struct RestrictedCanonicalizer
: public RestrictedCanonicalizerBase<RestrictedCanonicalizer> {

View File

@ -85,7 +85,7 @@ class LowerConstantTensorsToMemref
registry.insert<tcp::TCPDialect>();
}
void runOnOperation () override {
void runOnOperation() override {
auto module = getOperation();
GlobalCreator globals(module);

View File

@ -140,8 +140,8 @@ static Value createLinalgBodyCalculationForElementwiseOp(Operation *op,
return builder.create<AddFOp>(loc, bodyArgs[0], bodyArgs[1]);
if (isa<tcp::MaxOp>(op)) {
auto greater =
builder.create<CmpFOp>(loc, CmpFPredicate::OGT, bodyArgs[0], bodyArgs[1]);
auto greater = builder.create<CmpFOp>(loc, CmpFPredicate::OGT, bodyArgs[0],
bodyArgs[1]);
return builder.create<SelectOp>(loc, greater, bodyArgs[0], bodyArgs[1]);
}
@ -158,7 +158,7 @@ static Value createLinalgBodyCalculationForElementwiseOp(Operation *op,
static LogicalResult
matchAndRewriteElementwiseOp(Operation *op, ArrayRef<Value> operands,
ConversionPatternRewriter &rewriter) {
ConversionPatternRewriter &rewriter) {
Location loc = op->getLoc();
Value result = op->getResult(0);