Skip to content

Commit c68157d

Browse files
authored
[SYCL-MLIR]: Argument Promotion Transformation (part 2) (#8730)
Enhance ArgumentPromotion to allow processing calls with only *some* peelable arguments. Example: ``` func.func private @foo(%arg0: memref<?x!llvm.struct<(i32)>>, %arg1: memref<?x!llvm.struct<(f32)>>) { %c0 = arith.constant 0 : index %0 = "polygeist.subindex"(%arg0, %c0) : (memref<?x!llvm.struct<(i32)>>, index) -> memref<?xi32> %1 = sycl.addrspacecast %arg1 : memref<?x!llvm.struct<(f32)>> to memref<?x!llvm.struct<(f32)>, 4> ... ``` Only %arg0 can be peeled because %arg1 is not used by a subindex instruction. --------- Signed-off-by: Tiotto, Ettore <[email protected]>
1 parent 86f2dc3 commit c68157d

File tree

2 files changed

+314
-186
lines changed

2 files changed

+314
-186
lines changed

0 commit comments

Comments
 (0)