Fix the indentation of CHECKs in test/GPU/ops.mlir.
authorMLIR Team <no-reply@google.com>
Mon, 6 May 2019 12:29:10 +0000 (05:29 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 6 May 2019 15:30:17 +0000 (08:30 -0700)
--

PiperOrigin-RevId: 246809906

mlir/test/GPU/ops.mlir

index 1e99661..977cb81 100644 (file)
@@ -2,7 +2,7 @@
 
 // CHECK-LABEL:func @no_args(%arg0: index)
 func @no_args(%sz : index) {
-// CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg0, %i10 = %arg0, %i11 = %arg0)
+  // CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg0, %i10 = %arg0, %i11 = %arg0)
   gpu.launch blocks(%bx, %by, %bz) in (%grid_x = %sz, %grid_y = %sz, %grid_z = %sz)
              threads(%tx, %ty, %tz) in (%block_x = %sz, %block_y = %sz, %block_z = %sz) {
     return
@@ -12,7 +12,7 @@ func @no_args(%sz : index) {
 
 // CHECK-LABEL:func @args(%arg0: index, %arg1: index, %arg2: f32, %arg3: memref<?xf32, 1>) {
 func @args(%blk : index, %thrd : index, %float : f32, %data : memref<?xf32,1>) {
-// CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg1, %i10 = %arg1, %i11 = %arg1) args(%i12 = %arg2, %i13 = %arg3) : f32, memref<?xf32, 1>
+  // CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg1, %i10 = %arg1, %i11 = %arg1) args(%i12 = %arg2, %i13 = %arg3) : f32, memref<?xf32, 1>
   gpu.launch blocks(%bx, %by, %bz) in (%grid_x = %blk, %grid_y = %blk, %grid_z = %blk)
              threads(%tx, %ty, %tz) in (%block_x = %thrd, %block_y = %thrd, %block_z = %thrd)
             args(%kernel_arg0 = %float, %kernel_arg1 = %data) : f32, memref<?xf32, 1> {
@@ -24,11 +24,11 @@ func @args(%blk : index, %thrd : index, %float : f32, %data : memref<?xf32,1>) {
 // It is possible to use values passed into the region as arguments.
 // CHECK-LABEL: func @passing_values
 func @passing_values(%blk : index, %thrd : index, %float : f32, %data : memref<?xf32,1>) {
-// CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg1, %i10 = %arg1, %i11 = %arg1) args(%i12 = %arg2, %i13 = %arg3) : f32, memref<?xf32, 1>
+  // CHECK: gpu.launch blocks(%i0, %i1, %i2) in (%i6 = %arg0, %i7 = %arg0, %i8 = %arg0) threads(%i3, %i4, %i5) in (%i9 = %arg1, %i10 = %arg1, %i11 = %arg1) args(%i12 = %arg2, %i13 = %arg3) : f32, memref<?xf32, 1>
   gpu.launch blocks(%bx, %by, %bz) in (%grid_x = %blk, %grid_y = %blk, %grid_z = %blk)
              threads(%tx, %ty, %tz) in (%block_x = %thrd, %block_y = %thrd, %block_z = %thrd)
             args(%kernel_arg0 = %float, %kernel_arg1 = %data) : f32, memref<?xf32, 1> {
-// CHECK: "use"(%i12)
+    // CHECK: "use"(%i12)
     "use"(%kernel_arg0): (f32) -> ()
     return
   }
@@ -42,10 +42,10 @@ func @nested_isolation(%sz : index) {
   gpu.launch blocks(%bx, %by, %bz) in (%grid_x = %sz, %grid_y = %sz, %grid_z = %sz)
              threads(%tx, %ty, %tz) in (%block_x = %sz, %block_y = %sz, %block_z = %sz) {
     "region"() ({
-// CHECK: %0 = "produce"()
+      // CHECK: %0 = "produce"()
       %val = "produce"() : () -> (index)
       "region"() ({
-// CHECK: "use"(%0)
+        // CHECK: "use"(%0)
         "use"(%val) : (index) -> ()
       }) : () -> ()
     }) : () -> ()
@@ -61,10 +61,10 @@ func @kernel_1(%arg0 : f32, %arg1 : !llvm<"float*">)
 func @foo() {
   %0 = "op"() : () -> (f32)
   %1 = "op"() : () -> (!llvm<"float*">)
-// CHECK: %c8 = constant 8
+  // CHECK: %c8 = constant 8
   %cst = constant 8 : index
 
-// CHECK: "gpu.launch_func"(%c8, %c8, %c8, %c8, %c8, %c8, %0, %1) {kernel: @kernel_1 : (f32, !llvm<"float*">) -> ()} : (index, index, index, index, index, index, f32, !llvm<"float*">) -> ()
+  // CHECK: "gpu.launch_func"(%c8, %c8, %c8, %c8, %c8, %c8, %0, %1) {kernel: @kernel_1 : (f32, !llvm<"float*">) -> ()} : (index, index, index, index, index, index, f32, !llvm<"float*">) -> ()
   "gpu.launch_func"(%cst, %cst, %cst, %cst, %cst, %cst, %0, %1)
       {kernel: @kernel_1 : (f32, !llvm<"float*">) -> ()}
       : (index, index, index, index, index, index, f32, !llvm<"float*">) -> ()