[PATCH] D72129: [mlir] Add in-dialect lowering of gpu.all_reduce.
Christian Sigg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 3 01:03:56 PST 2020
csigg added a reviewer: ftynse.
csigg marked an inline comment as done.
csigg added inline comments.
================
Comment at: mlir/test/Dialect/GPU/all-reduce.mlir:7-176
+ // CHECK: %[[vc0_i32:[a-z_0-9]+]] = constant 0 : i32
+ // CHECK: %[[vc31_i32:[a-z_0-9]+]] = constant 31 : i32
+ // CHECK: %[[vc0:[a-z_0-9]+]] = constant 0 : index
+ // CHECK: %[[vc32_i32:[a-z_0-9]+]] = constant 32 : i32
+ // CHECK: %[[vc1_i32:[a-z_0-9]+]] = constant 1 : i32
+ // CHECK: %[[vc2_i32:[a-z_0-9]+]] = constant 2 : i32
+ // CHECK: %[[vc4_i32:[a-z_0-9]+]] = constant 4 : i32
----------------
These CHECKs were generated from the output with:
```
sed -r \
-e 's|\t+//.*||' \
-e 's|%([a-z_0-9]+) = |%[[v\1:[a-z_0-9]+]] = |' \
-e 's|\(%([a-z_0-9]+): ([a-z_0-9]+)\):|(%[[v\1:[a-z_0-9]+]]: \2):|' \
-e 's|%([a-z_0-9]+)|%[[v\1]]|g' \
-e 's|bb([0-9]+)|bb[[#b\1]]|g' \
-e 's|^ | // CHECK:|'
```
and manaul edits from there.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72129/new/
https://reviews.llvm.org/D72129
More information about the llvm-commits
mailing list