aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectOptimize.cpp
diff options
context:
space:
mode:
authorAndrzej WarzyƄski <andrzej.warzynski@arm.com>2025-04-23 07:32:24 +0100
committerGitHub <noreply@github.com>2025-04-23 07:32:24 +0100
commit30c47147262523663892836fee42e02f8f9366f5 (patch)
treeb275d69d92f2e5f42d98e1899e620600522b2001 /llvm/lib/CodeGen/SelectOptimize.cpp
parent832ca744f2f25a7a5334f2f04380c84e41f71678 (diff)
downloadllvm-30c47147262523663892836fee42e02f8f9366f5.zip
llvm-30c47147262523663892836fee42e02f8f9366f5.tar.gz
llvm-30c47147262523663892836fee42e02f8f9366f5.tar.bz2
[mlir][utils] Update generate-test-checks.py (#136757)
At the moment, the `CHECK-SAME` lines generated by "generate-test-checks.py" (i.e. check-lines that correspond to the preceeding `CHECK-LABEL` line) are indented to match the label length. For example, ```mlir func.func @batch_reduce_matmul_bcast_k_to_fill_missing_dims_A(%arg0: memref<5xf32>, %arg1: memref<2x5x7xf32>, %arg2: memref<3x7xf32>) { linalg.batch_reduce_matmul indexing_maps = (...) } ``` will lead to the following: ```mlir // CHECK-LABEL: func.func @batch_reduce_matmul_bcast_k_to_fill_missing_dims_A( // CHECK-SAME: %[[VAL_0:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<5xf32>, // CHECK-SAME: %[[VAL_1:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<2x5x7xf32>, // CHECK-SAME: %[[VAL_2:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<3x7xf32>) { // CHECK: linalg.batch_reduce_matmul indexing_maps = (...) ``` This indentation is unnecasarilly deep. With this change, for labales that are longer than 20 chars, the indentation is trimmed to 4 spaces: ```mlir // CHECK-LABEL: func.func @batch_reduce_matmul_bcast_k_to_fill_missing_dims_A( // CHECK-SAME: %[[VAL_0:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<5xf32>, // CHECK-SAME: %[[VAL_1:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<2x5x7xf32>, // CHECK-SAME: %[[VAL_2:[0-9]+|[a-zA-Z$._-][a-zA-Z0-9$._-]*]]: memref<3x7xf32>) { // CHECK: linalg.batch_reduce_matmul indexing_maps = (...) ```
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions