Skip to content

Commit 4ce6e57

Browse files
committed
formatting
1 parent d41a0ee commit 4ce6e57

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/imex/Dialect/NDArray/Extensions/AllExtensions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class DialectRegistry;
2121
namespace imex {
2222
namespace ndarray {
2323

24-
/// Register all extensions of the NDArray dialect. This should generally only be
25-
/// used by tools, or other use cases that really do want *all* extensions of
24+
/// Register all extensions of the NDArray dialect. This should generally only
25+
/// be used by tools, or other use cases that really do want *all* extensions of
2626
/// the dialect. All other cases should prefer to instead register the specific
2727
/// extensions they intend to take advantage of.
2828
void registerAllExtensions(mlir::DialectRegistry &registry);

test/Dialect/NDArray/Transforms/AddGPURegions.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func.func @test_region(%arg0: i64, %arg1: i64, %arg2: i64) -> i64 {
4646
// CHECK-NEXT: [[v9:%.*]] = tensor.empty() : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>
4747
// CHECK-NEXT: region.env_region_yield [[v9]] : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>
4848
// CHECK: [[v7:%.*]] = region.env_region #region.gpu_env<device = "XeGPU"> -> tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>> {
49-
// CHECK-NEXT: [[vreduced:%.*]] = linalg.reduce { arith.addi {overflowFlags = #arith.overflow<none>} } ins([[v5]] : tensor<22xi64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>) outs([[v6]] : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>) dimensions = [0]
49+
// CHECK-NEXT: [[vreduced:%.*]] = linalg.reduce { arith.addi {overflowFlags = #arith.overflow<none>} } ins([[v5]] : tensor<22xi64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>) outs([[v6]] : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>) dimensions = [0]
5050
// CHECK-NEXT: region.env_region_yield [[vreduced]] : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>>
5151
// CHECK: [[v8:%.*]] = region.env_region #region.gpu_env<device = "XeGPU"> -> i64 {
5252
// CHECK-NEXT: [[v9:%.*]] = builtin.unrealized_conversion_cast [[v7]] : tensor<i64, #ndarray.envs<#region.gpu_env<device = "XeGPU">>> to i64

tools/imex-opt/imex-opt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
#include <mlir/Support/FileUtilities.h>
2626
#include <mlir/Tools/mlir-opt/MlirOptMain.h>
2727

28+
#include "imex/Dialect/NDArray/Extensions/AllExtensions.h"
2829
#include <imex/InitIMEXDialects.h>
2930
#include <imex/InitIMEXPasses.h>
3031
#include <imex/Transforms/Passes.h>
31-
#include "imex/Dialect/NDArray/Extensions/AllExtensions.h"
3232

3333
int main(int argc, char **argv) {
3434
::mlir::registerAllPasses();

0 commit comments

Comments
 (0)