Skip to content

Commit a63873a

Browse files
authored
Change imex-runner.py pass pipeline file comment from Python style (#538)
Change imex-runner.py pass pipeline file comment from Python style comment to C++ style comment
1 parent 9cc942f commit a63873a

File tree

17 files changed

+105
-96
lines changed

17 files changed

+105
-96
lines changed

test/Integration/Dialect/Linalg/OpenCL/linalg-to-gpux-opencl.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
33
builtin.module(convert-tensor-to-linalg
44
arith-bufferize
55
func.func(empty-tensor-to-alloc-tensor
@@ -14,17 +14,17 @@
1414
convert-linalg-to-parallel-loops
1515
gpu-map-parallel-loops
1616
convert-parallel-loops-to-gpu)
17-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
17+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1818
func.func(insert-gpu-allocs{client-api=opencl})
1919
canonicalize
2020
normalize-memrefs
21-
# Unstride memrefs does not seem to be needed.
22-
# func.func(unstride-memrefs)
21+
// Unstride memrefs does not seem to be needed.
22+
// func.func(unstride-memrefs)
2323
func.func(lower-affine)
2424
gpu-kernel-outlining
2525
canonicalize
2626
cse
27-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
27+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2828
set-spirv-capabilities{client-api=opencl}
2929
gpu.module(set-spirv-abi-attrs{client-api=opencl})
3030
canonicalize
@@ -39,4 +39,4 @@
3939
convert-gpux-to-llvm
4040
convert-memref-to-llvm
4141
reconcile-unrealized-casts)
42-
# End
42+
// End
Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
3-
builtin.module(convert-tensor-to-linalg
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
3+
builtin.module(
4+
convert-tensor-to-linalg
45
arith-bufferize
5-
func.func(empty-tensor-to-alloc-tensor
6-
eliminate-empty-tensors
7-
scf-bufferize
8-
shape-bufferize
9-
linalg-bufferize
10-
bufferization-bufferize
11-
tensor-bufferize)
6+
func.func(
7+
empty-tensor-to-alloc-tensor
8+
eliminate-empty-tensors
9+
scf-bufferize
10+
shape-bufferize
11+
linalg-bufferize
12+
bufferization-bufferize
13+
tensor-bufferize)
1214
func-bufferize
13-
func.func(finalizing-bufferize
14-
convert-linalg-to-parallel-loops
15-
gpu-map-parallel-loops
16-
convert-parallel-loops-to-gpu)
17-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
15+
func.func(
16+
finalizing-bufferize
17+
convert-linalg-to-parallel-loops
18+
gpu-map-parallel-loops
19+
convert-parallel-loops-to-gpu
20+
)
21+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1822
func.func(insert-gpu-allocs)
1923
canonicalize
2024
normalize-memrefs
21-
# Unstride memrefs does not seem to be needed.
22-
# func.func(unstride-memrefs)
25+
// Unstride memrefs does not seem to be needed.
26+
// func.func(unstride-memrefs)
2327
func.func(lower-affine)
2428
gpu-kernel-outlining
2529
canonicalize
2630
cse
27-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
31+
32+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2833
set-spirv-capabilities
2934
gpu.module(set-spirv-abi-attrs)
30-
canonicalize)
31-
# End
35+
canonicalize
36+
)
37+
// End

test/Jax/gordon/linalg-to-cpu.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# linalg dialect to gpu dialect lowering pipeline
1+
// linalg dialect to gpu dialect lowering pipeline
22
builtin.module(inline
33
convert-tensor-to-linalg
44
convert-elementwise-to-linalg
@@ -23,4 +23,4 @@
2323
convert-memref-to-llvm
2424
convert-func-to-llvm
2525
reconcile-unrealized-casts)
26-
# End
26+
// End

test/Jax/gordon/linalg-to-llvm.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
33
builtin.module(convert-tensor-to-linalg
44
arith-bufferize
55
func.func(empty-tensor-to-alloc-tensor
@@ -15,17 +15,17 @@
1515
imex-add-outer-parallel-loop
1616
gpu-map-parallel-loops
1717
convert-parallel-loops-to-gpu)
18-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
18+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1919
func.func(insert-gpu-allocs{client-api=opencl})
2020
canonicalize
2121
normalize-memrefs
22-
# Unstride memrefs does not seem to be needed.
23-
# func.func(unstride-memrefs)
22+
// Unstride memrefs does not seem to be needed.
23+
// func.func(unstride-memrefs)
2424
func.func(lower-affine)
2525
gpu-kernel-outlining
2626
canonicalize
2727
cse
28-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
28+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2929
set-spirv-capabilities{client-api=opencl}
3030
gpu.module(set-spirv-abi-attrs{client-api=opencl})
3131
canonicalize
@@ -41,4 +41,4 @@
4141
convert-gpux-to-llvm
4242
convert-memref-to-llvm
4343
reconcile-unrealized-casts)
44-
# End
44+
// End

test/Jax/janet/linalg-to-cpu.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# linalg dialect to gpu dialect lowering pipeline
1+
// linalg dialect to gpu dialect lowering pipeline
22
builtin.module(inline
33
convert-tensor-to-linalg
44
convert-elementwise-to-linalg
@@ -23,4 +23,4 @@
2323
convert-memref-to-llvm
2424
convert-func-to-llvm
2525
reconcile-unrealized-casts)
26-
# End
26+
// End

test/Jax/janet/linalg-to-llvm.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
33
builtin.module(convert-tensor-to-linalg
44
arith-bufferize
55
func.func(empty-tensor-to-alloc-tensor
@@ -15,17 +15,17 @@
1515
imex-add-outer-parallel-loop
1616
gpu-map-parallel-loops
1717
convert-parallel-loops-to-gpu)
18-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
18+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1919
func.func(insert-gpu-allocs{client-api=opencl})
2020
canonicalize
2121
normalize-memrefs
22-
# Unstride memrefs does not seem to be needed.
23-
# func.func(unstride-memrefs)
22+
// Unstride memrefs does not seem to be needed.
23+
// func.func(unstride-memrefs)
2424
func.func(lower-affine)
2525
gpu-kernel-outlining
2626
canonicalize
2727
cse
28-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
28+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2929
set-spirv-capabilities{client-api=opencl}
3030
gpu.module(set-spirv-abi-attrs{client-api=opencl})
3131
canonicalize
@@ -41,4 +41,4 @@
4141
convert-gpux-to-llvm
4242
convert-memref-to-llvm
4343
reconcile-unrealized-casts)
44-
# End
44+
// End

test/Jax/jax_qmc/linalg-to-cpu.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# linalg dialect to gpu dialect lowering pipeline
1+
// linalg dialect to gpu dialect lowering pipeline
22
builtin.module(inline
33
convert-tensor-to-linalg
44
convert-elementwise-to-linalg
@@ -23,4 +23,4 @@
2323
convert-memref-to-llvm
2424
convert-func-to-llvm
2525
reconcile-unrealized-casts)
26-
# End
26+
// End

test/Jax/jax_qmc/linalg-to-llvm.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
33
builtin.module(convert-tensor-to-linalg
44
arith-bufferize
55
func.func(empty-tensor-to-alloc-tensor
@@ -15,17 +15,17 @@
1515
imex-add-outer-parallel-loop
1616
gpu-map-parallel-loops
1717
convert-parallel-loops-to-gpu)
18-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
18+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1919
func.func(insert-gpu-allocs{client-api=opencl})
2020
canonicalize
2121
normalize-memrefs
22-
# Unstride memrefs does not seem to be needed.
23-
# func.func(unstride-memrefs)
22+
// Unstride memrefs does not seem to be needed.
23+
// func.func(unstride-memrefs)
2424
func.func(lower-affine)
2525
gpu-kernel-outlining
2626
canonicalize
2727
cse
28-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
28+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2929
set-spirv-capabilities{client-api=opencl}
3030
gpu.module(set-spirv-abi-attrs{client-api=opencl})
3131
canonicalize
@@ -41,4 +41,4 @@
4141
convert-gpux-to-llvm
4242
convert-memref-to-llvm
4343
reconcile-unrealized-casts)
44-
# End
44+
// End

test/Jax/qoc/linalg-to-cpu.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# linalg dialect to gpu dialect lowering pipeline
1+
// linalg dialect to gpu dialect lowering pipeline
22
builtin.module(inline
33
convert-tensor-to-linalg
44
convert-elementwise-to-linalg
@@ -24,4 +24,4 @@
2424
convert-memref-to-llvm
2525
convert-func-to-llvm
2626
reconcile-unrealized-casts)
27-
# End
27+
// End

test/Jax/qoc/linalg-to-llvm.pp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# linalg dialect to gpu dialect lowering pipeline
2-
# Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
1+
// linalg dialect to gpu dialect lowering pipeline
2+
// Ready for vulkan runner or narrow scope l0/sycl runner starting from GPU dialect.
33
builtin.module(convert-tensor-to-linalg
44
arith-bufferize
55
func.func(empty-tensor-to-alloc-tensor
@@ -15,17 +15,17 @@
1515
imex-add-outer-parallel-loop
1616
gpu-map-parallel-loops
1717
convert-parallel-loops-to-gpu)
18-
# insert-gpu-allocs pass can have client-api = opencl or vulkan args
18+
// insert-gpu-allocs pass can have client-api = opencl or vulkan args
1919
func.func(insert-gpu-allocs{client-api=opencl})
2020
canonicalize
2121
normalize-memrefs
22-
# Unstride memrefs does not seem to be needed.
23-
# func.func(unstride-memrefs)
22+
// Unstride memrefs does not seem to be needed.
23+
// func.func(unstride-memrefs)
2424
func.func(lower-affine)
2525
gpu-kernel-outlining
2626
canonicalize
2727
cse
28-
# The following set-spirv-* passes can have client-api = opencl or vulkan args
28+
// The following set-spirv-* passes can have client-api = opencl or vulkan args
2929
set-spirv-capabilities{client-api=opencl}
3030
gpu.module(set-spirv-abi-attrs{client-api=opencl})
3131
canonicalize
@@ -41,4 +41,4 @@
4141
convert-gpux-to-llvm
4242
convert-memref-to-llvm
4343
reconcile-unrealized-casts)
44-
# End
44+
// End

0 commit comments

Comments
 (0)