summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/MaterializeVectors.cpp
diff options
context:
space:
mode:
authorUday Bondhugula <bondhugula@google.com>2019-02-06 21:54:18 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 16:19:33 -0700
commit4ba8c9147d04d82d629dde4730e1dd5d4ae4123d (patch)
treeb16681ef2a8f2327993d1f4b75596ce100732403 /mlir/lib/Transforms/MaterializeVectors.cpp
parent99fee0b181106a0213501800c6076aec95afa46c (diff)
downloadbcm5719-llvm-4ba8c9147d04d82d629dde4730e1dd5d4ae4123d.tar.gz
bcm5719-llvm-4ba8c9147d04d82d629dde4730e1dd5d4ae4123d.zip
Automated rollback of changelist 232717775.
PiperOrigin-RevId: 232807986
Diffstat (limited to 'mlir/lib/Transforms/MaterializeVectors.cpp')
-rw-r--r--mlir/lib/Transforms/MaterializeVectors.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/mlir/lib/Transforms/MaterializeVectors.cpp b/mlir/lib/Transforms/MaterializeVectors.cpp
index 4434ab5322e..be5a03bc416 100644
--- a/mlir/lib/Transforms/MaterializeVectors.cpp
+++ b/mlir/lib/Transforms/MaterializeVectors.cpp
@@ -101,10 +101,10 @@
/// mlfunc @materialize(%M : index, %N : index, %O : index, %P : index) {
/// %A = alloc (%M, %N, %O, %P) : memref<?x?x?x?xf32, 0>
/// %f1 = constant splat<vector<4x4x4xf32>, 1.000000e+00> :
-/// vector<4x4x4xf32> affine.for %i0 = 0 to %M step 4 {
-/// affine.for %i1 = 0 to %N step 4 {
-/// affine.for %i2 = 0 to %O {
-/// affine.for %i3 = 0 to %P step 4 {
+/// vector<4x4x4xf32> for %i0 = 0 to %M step 4 {
+/// for %i1 = 0 to %N step 4 {
+/// for %i2 = 0 to %O {
+/// for %i3 = 0 to %P step 4 {
/// vector_transfer_write %f1, %A, %i0, %i1, %i2, %i3
/// {permutation_map: (d0, d1, d2, d3) -> (d3, d1, d0)} :
/// vector<4x4x4xf32>, memref<?x?x?x?xf32, 0>,
@@ -120,10 +120,10 @@
/// mlfunc @materialize(%M : index, %N : index, %O : index, %P : index) {
/// %A = alloc (%M, %N, %O, %P) : memref<?x?x?x?xf32, 0>
/// %f1 = constant splat<vector<4x4xf32>, 1.000000e+00> : vector<4x4x4xf32>
-/// affine.for %i0 = 0 to %arg0 step 4 {
-/// affine.for %i1 = 0 to %arg1 step 4 {
-/// affine.for %i2 = 0 to %arg2 {
-/// affine.for %i3 = 0 to %arg3 step 4 {
+/// for %i0 = 0 to %arg0 step 4 {
+/// for %i1 = 0 to %arg1 step 4 {
+/// for %i2 = 0 to %arg2 {
+/// for %i3 = 0 to %arg3 step 4 {
/// %1 = affine.apply (d0, d1, d2, d3) -> (d0, d1, d2, d3)
/// (%i0, %i1, %i2, %i3)
/// vector_transfer_write f1, %0, %1#0, %1#1, %1#2, %1#3
@@ -293,10 +293,10 @@ static Value *substitute(Value *v, VectorType hwVectorType,
/// super-vectorization has been applied:
///
/// ```mlir
-/// affine.for %i0 = 0 to %M {
-/// affine.for %i1 = 0 to %N step 3 {
-/// affine.for %i2 = 0 to %O {
-/// affine.for %i3 = 0 to %P step 32 {
+/// for %i0 = 0 to %M {
+/// for %i1 = 0 to %N step 3 {
+/// for %i2 = 0 to %O {
+/// for %i3 = 0 to %P step 32 {
/// %r = vector_transfer_read(%A, map(%i..)#0, map(%i..)#1, map(%i..)#2)
/// -> vector<3x32xf32>
/// ...
OpenPOWER on IntegriCloud