From 8aa7840111a1178eceb96c73361ecba4e075bea4 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 29 Jan 2025 00:34:01 +0000 Subject: [PATCH] fix formatting --- stablehlo/dialect/AssemblyFormat.h | 6 +++--- stablehlo/transforms/StablehloRefineShapes.cpp | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/stablehlo/dialect/AssemblyFormat.h b/stablehlo/dialect/AssemblyFormat.h index 67faab3768..02ec3821c5 100644 --- a/stablehlo/dialect/AssemblyFormat.h +++ b/stablehlo/dialect/AssemblyFormat.h @@ -432,9 +432,9 @@ Attribute parseResultAccuracyAttr(AsmParser& parser, Type type) { // Parse literal '>' if (parser.parseGreater()) return {}; - return parser.getChecked( - parser.getCurrentLocation(), parser.getContext(), resultAtol, resultRtol, - resultUlps, modeAttr); + return parser.getChecked(parser.getCurrentLocation(), + parser.getContext(), resultAtol, resultRtol, + resultUlps, modeAttr); } } // namespace hlo diff --git a/stablehlo/transforms/StablehloRefineShapes.cpp b/stablehlo/transforms/StablehloRefineShapes.cpp index f43708def3..4274c09413 100644 --- a/stablehlo/transforms/StablehloRefineShapes.cpp +++ b/stablehlo/transforms/StablehloRefineShapes.cpp @@ -109,14 +109,12 @@ LogicalResult refineValues(PatternRewriter& rewriter, Operation* op, // their operands and results. Any operand type in these ops can change // within what's supported by `inferMostSpecificType` without breaking // verification of the op. - if (isa( - user->getDialect())) + if (isa(user->getDialect())) continue; // TODO(bartchr): Consider if the dialect allow-listing approach is too // strict. In the meantime, allow some shape interop with the shardy // dialect. - if (user->getDialect()->getNamespace() == "sdy") - continue; + if (user->getDialect()->getNamespace() == "sdy") continue; // Simply changing operand type of `func.return` won't work because // that won't update the FunctionType of the enclosing `func.func`.