| /llvm-project-15.0.7/polly/docs/experiments/matmul/ |
| H A D | runall.sh | 4 clang -S -emit-llvm matmul.c -Xclang -disable-O0-optnone -o matmul.ll 7 opt -S -polly-canonicalize matmul.ll -o matmul.preopt.ll 55 matmul.preopt.ll | opt -O3 -S -o matmul.polly.interchanged.ll 68 opt -S matmul.preopt.ll | opt -O3 -S -o matmul.normalopt.ll 71 llc matmul.polly.interchanged.ll -o matmul.polly.interchanged.s -relocation-model=pic 72 gcc matmul.polly.interchanged.s -o matmul.polly.interchanged.exe 73 llc matmul.polly.interchanged+tiled.ll -o matmul.polly.interchanged+tiled.s -relocation-model=pic 74 gcc matmul.polly.interchanged+tiled.s -o matmul.polly.interchanged+tiled.exe 76 gcc matmul.polly.interchanged+tiled+vector.s -o matmul.polly.interchanged+tiled+vector.exe 79 llc matmul.normalopt.ll -o matmul.normalopt.s -relocation-model=pic [all …]
|
| /llvm-project-15.0.7/polly/docs/ |
| H A D | HowToManuallyUseTheIndividualPiecesOfPolly.rst | 24 clang -S -emit-llvm matmul.c -Xclang -disable-O0-optnone -o matmul.ll 37 opt -S -polly-canonicalize matmul.ll -o matmul.preopt.ll 386 $ opt -S matmul.preopt.ll | opt -S -O3 -o matmul.normalopt.ll 434 $ llc matmul.normalopt.ll -o matmul.normalopt.s -relocation-model=pic 435 $ gcc matmul.normalopt.s -o matmul.normalopt.exe 436 $ llc matmul.polly.interchanged.ll -o matmul.polly.interchanged.s -relocation-model=pic 437 $ gcc matmul.polly.interchanged.s -o matmul.polly.interchanged.exe 438 …$ llc matmul.polly.interchanged+tiled.ll -o matmul.polly.interchanged+tiled.s -relocation-model=pic 439 $ gcc matmul.polly.interchanged+tiled.s -o matmul.polly.interchanged+tiled.exe 441 … $ gcc matmul.polly.interchanged+tiled+vector.s -o matmul.polly.interchanged+tiled+vector.exe [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Transform/ |
| H A D | selective-targeting.mlir | 11 // CHECK: linalg.matmul 13 %0 = linalg.matmul { test.attrA } 29 // CHECK-NOT: linalg.matmul 31 %0 = linalg.matmul { test.attrA, test.attrC } 48 %0 = linalg.matmul { test.attrC } 57 // Match matmul operations inside @matmul_tensors with test.attrA set. 67 // Match matmul operations inside @matmul_tensors with test.attrC set. 95 %0 = linalg.matmul {test.attrA} 106 // CHECK: linalg.matmul 140 %0 = linalg.matmul {test.attrA} [all …]
|
| /llvm-project-15.0.7/mlir/test/Dialect/Linalg/ |
| H A D | tile-and-peel-tensors.mlir | 18 // CHECK-PEEL-0: linalg.matmul ins({{.*}} : tensor<256x?xf32>, tensor<?x?xf32>) outs({{… 24 // CHECK-PEEL-0: linalg.matmul ins({{.*}} : tensor<220x?xf32>, tensor<?x?xf32>) outs({{.*… 40 // CHECK-PEEL-12: linalg.matmul ins({{.*}} : tensor<?x512xf32>, tensor<512x128xf32>) ou… 42 // CHECK-PEEL-12: linalg.matmul ins({{.*}} : tensor<?x64xf32>, tensor<64x128xf32>) outs({… 45 // CHECK-PEEL-12: linalg.matmul ins({{.*}} : tensor<?x?xf32>, tensor<?x36xf32>) outs({{.*… 51 %r = linalg.matmul {__internal_linalg_transform__ = "tile"} 67 // CHECK-PEEL-0: linalg.matmul ins({{.*}} : tensor<256x?xf32>, tensor<?x?xf32>) outs({{… 74 // CHECK-PEEL-0: linalg.matmul ins({{.*}} : tensor<?x?xf32>, tensor<?x?xf32>) outs({{.*… 90 // CHECK-PEEL-12: linalg.matmul ins({{.*}} : tensor<?x?xf32>, tensor<?x128xf32>) outs({… 95 // CHECK-PEEL-12: linalg.matmul ins({{.*}} : tensor<?x?xf32>, tensor<?x?xf32>) outs({{.… [all …]
|
| H A D | transform-op-pad.mlir | 26 // CHECK: %[[T5:.*]] = linalg.matmul 29 …%4 = linalg.matmul ins(%1, %2 : tensor<4x?xf32>, tensor<?x5xf32>) outs(%3 : tensor<4x5xf32>) -> te… 38 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 49 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 57 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 69 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 77 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 90 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 98 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | tile-to-foreach-thread.mlir | 11 // CHECK-LABEL: matmul( 22 // CHECK: %[[RES:.*]] = linalg.matmul 30 %0 = linalg.matmul ins(%A, %B : tensor<?x?xf32>, tensor<?x?xf32>) 39 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 73 // CHECK: linalg.matmul 85 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 121 // CHECK: linalg.matmul 124 %0 = linalg.matmul ins(%A, %B : tensor<?x?xf32>, tensor<?x?xf32>) 133 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 164 // CHECK: linalg.matmul [all …]
|
| H A D | fusion.mlir | 45 // CHECK: linalg.matmul 46 // CHECK: linalg.matmul 96 // CHECK: linalg.matmul 97 // CHECK: linalg.matmul 150 // CHECK: linalg.matmul 151 // CHECK: linalg.matmul 208 // CHECK: linalg.matmul 209 // CHECK: linalg.matmul 210 // CHECK: linalg.matmul 480 // CHECK: linalg.matmul [all …]
|
| H A D | transform-op-vectorize.mlir | 15 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 24 %0 = pdl.operation "linalg.matmul"(%args : !pdl.range<value>) -> (%results : !pdl.range<type>) 31 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 71 …%8 = linalg.matmul ins(%5, %7 : tensor<4x7xf32>, tensor<7x5xf32>) outs(%3 : tensor<4x5xf32>) -> te… 80 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 122 …%8 = linalg.matmul ins(%5, %7 : tensor<4x7xf32>, tensor<7x5xf32>) outs(%3 : tensor<4x5xf32>) -> te… 131 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 143 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 151 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | tile-and-distribute.mlir | 5 linalg.matmul {__internal_linalg_transform__ = "distribute1"} 25 // CHECK: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]] 31 linalg.matmul {__internal_linalg_transform__ = "distribute2"} 57 // CHECK: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]] 63 linalg.matmul {__internal_linalg_transform__ = "distribute3"} 86 // CHECK: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]] 92 linalg.matmul {__internal_linalg_transform__ = "distribute4"} 115 // CHECK: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]] 121 linalg.matmul {__internal_linalg_transform__ = "distribute5"} 152 linalg.matmul {__internal_linalg_transform__ = "distribute6"} [all …]
|
| H A D | tile-scalarize-dynamic-dims.mlir | 16 // CHECK: linalg.matmul ins(%[[S1]], %[[S2]] : tensor<1x1xf32>, tensor<1x2000xf32>) out… 23 %r = linalg.matmul {__internal_linalg_transform__ = "tile"} 31 // The input IR of this test case is a tiled and peeled linalg.matmul op. 34 // CHECK: linalg.matmul ins({{.*}} : tensor<32x259xf32>, tensor<259x258xf32>) outs({{.*}} :… 35 // CHECK: linalg.matmul ins({{.*}} : tensor<1x259xf32>, tensor<259x258xf32>) outs({{.*}} : … 55 …%12 = linalg.matmul {__internal_linalg_transform__ = "tile"} ins(%10, %arg1 : tensor<32x259xf32>, … 64 …%13 = linalg.matmul {__internal_linalg_transform__ = "tile"} ins(%11, %arg1 : tensor<?x259xf32>, t…
|
| H A D | transform-op-multitile-sizes.mlir | 9 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 18 %0 = linalg.matmul ins(%arg0, %arg1: tensor<13x34xf32>, tensor<34x42xf32>) 36 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 51 // For matmul, the extent of the first iteration space dimension is equal to 67 %0 = linalg.matmul ins(%arg0, %arg1: tensor<?x?xf32>, tensor<?x?xf32>)
|
| H A D | transform-op-scalarize.mlir | 8 // CHECK: linalg.matmul ins(%{{.*}}, %{{.*}} : tensor<1x12 9 …%0 = linalg.matmul ins(%arg0, %arg1 : tensor<24x12xf32>, tensor<12x25xf32>) outs(%arg2 : tensor<24… 17 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | transform-op-tile.mlir | 7 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 26 // CHECK: %[[sTD:.*]] = linalg.matmul ins(%[[sTA]], %[[sTB]] : tensor<4x4xf32>, tensor<4… 32 %0 = linalg.matmul ins(%arg0, %arg1: tensor<128x128xf32>, tensor<128x128xf32>) 46 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1 68 // CHECK: %[[sTD:.*]] = linalg.matmul ins(%[[sTA]], %[[sTB]] : tensor<?x4xf32>, tensor<4… 75 %0 = linalg.matmul ins(%arg0, %arg1: tensor<128x128xf32>, tensor<128x128xf32>)
|
| H A D | one-shot-bufferize-analysis-2fill-extract-matmul-all-perms.mlir | 3 /// All combinations of matmul(fill(extract(alloc_tensor)), fill(extract(%alloc_tensor)), %arg2) 29 …%5 = linalg.matmul ins(%3, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 56 …%5 = linalg.matmul ins(%3, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 83 …%5 = linalg.matmul ins(%3, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 110 …%5 = linalg.matmul ins(%3, %2 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 137 …%5 = linalg.matmul ins(%3, %2 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 164 …%5 = linalg.matmul ins(%3, %2 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 191 …%5 = linalg.matmul ins(%3, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 218 …%5 = linalg.matmul ins(%3, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… 245 …%5 = linalg.matmul ins(%1, %4 : tensor<256x16xf32>, tensor<16x256xf32>) outs(%arg2 : tensor<256x25… [all …]
|
| H A D | fusion-2-level.mlir | 15 …linalg.matmul ins(%A, %B: memref<?x?xf32, offset: ?, strides: [?, 1]>, memref<?x?xf32, offset: ?, … 32 …linalg.matmul ins(%14, %16: memref<?x?xf32, offset: ?, strides: [?, ?]>, memref<?x?xf32, offset: ?… 50 // CHECK: linalg.matmul 51 // CHECK: linalg.matmul
|
| H A D | promotion_options.mlir | 5 linalg.matmul ins(%a, %b: memref<?x?xf32>, memref<?x?xf32>) 29 // CHECK: linalg.matmul ins(%[[T19]], %[[T12]]{{.*}} outs(%[[T21]] 38 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | tile-zero.mlir | 5 %0 = linalg.matmul {__internal_linalg_transform__ = "tile"} 11 // CHECK: linalg.matmul
|
| H A D | tile.mlir | 27 func.func @matmul(%arg0: memref<?x?xf32, offset: ?, strides: [?, 1]>, 30 linalg.matmul 36 // TILE-2-LABEL: func @matmul( 47 // TILE-2: linalg.matmul ins(%[[sAi]]{{.*}} outs(%[[sCi]] 49 // TILE-02-LABEL: func @matmul( 60 // TILE-02: linalg.matmul ins(%{{.*}}, %[[sBj]]{{.*}} outs(%[[sCj]] 62 // TILE-002-LABEL: func @matmul( 73 // TILE-002: linalg.matmul ins(%[[sAj]], %[[sBj]]{{.*}} outs(%{{.*}} 75 // TILE-234-LABEL: func @matmul( 105 linalg.matmul [all …]
|
| H A D | transform-tile-and-fuse.mlir | 9 // CHECK: linalg.matmul 21 %6 = linalg.matmul 69 // CHECK: linalg.matmul 81 %6 = linalg.matmul
|
| H A D | transform-op-split-reduction.mlir | 15 %0 = linalg.matmul ins(%A, %B: tensor<16x256xf32>, tensor<256x32xf32>) 24 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | transform-patterns.mlir | 52 func.func @matmul(%A: memref<?x?xf32, offset: ?, strides: [?, 1]>, 55 linalg.matmul { __internal_linalg_transform__ = "MEM" } 61 // CHECK-LABEL: func @matmul 87 // CHECK: linalg.matmul 148 linalg.matmul {__internal_linalg_transform__ = "__with_perm__"} 174 // CHECK: linalg.matmul 181 linalg.matmul {__internal_linalg_transform__ = "par__with_perm__"}
|
| H A D | tile-parallel-reduce.mlir | 9 linalg.matmul ins(%arg0, %arg1: memref<?x?xf32>, memref<?x?xf32>) 24 // CHECK: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]] 33 // TILE1: linalg.matmul ins(%[[SV1]], %{{.*}} outs(%[[SV3]] 43 // TILE2: linalg.matmul ins(%[[SV1]], %[[SV2]]{{.*}} outs(%[[SV3]]
|
| H A D | transform-op-split-reduction-by-scaling.mlir | 16 %0 = linalg.matmul ins(%A, %B: tensor<?x256xf32>, tensor<256x32xf32>) 25 %0 = transform.structured.match ops{["linalg.matmul"]} in %arg1
|
| H A D | library-calls.mlir | 8 func.func @matmul(%A: memref<?x?xf32>, %B: memref<?x?xf32>) -> (memref<?x?xf32>) { 20 linalg.matmul ins(%A, %B: memref<?x?xf32>, memref<?x?xf32>)
|
| /llvm-project-15.0.7/mlir/test/Interfaces/TilingInterface/ |
| H A D | tile-and-fuse-using-interface.mlir | 29 // CHECK: %[[GEMM_TILE:.+]] = linalg.matmul 46 %gemm = linalg.matmul 74 // CHECK: %[[GEMM_TILE:.+]] = linalg.matmul 95 %gemm0 = linalg.matmul 145 %gemm = linalg.matmul 197 %2 = linalg.matmul 274 // CHECK: %[[LHS:.+]] = linalg.matmul 280 // CHECK: %[[RHS:.+]] = linalg.matmul 331 // CHECK: %[[LHS:.+]] = linalg.matmul 338 // CHECK: %[[RHS:.+]] = linalg.matmul [all …]
|