/llvm-project/mlir/test/Dialect/GPU/ |
H A D | int-range-interface.mlir | 4 func.func @launch_func(%arg0 : index) { 6 umin = 3 : index, umax = 5 : index, 7 smin = 3 : index, smax = 5 : index 8 } : index 10 umin = 7 : index, umax = 11 : index, 11 smin = 7 : index, smax = 11 : index 12 } : index 16 …// CHECK: test.reflect_bounds {smax = 5 : index, smin = 3 : index, umax = 5 : index, umin = 3 : in… 17 …// CHECK: test.reflect_bounds {smax = 11 : index, smin = 7 : index, umax = 11 : index, umin = 7 : … 18 … test.reflect_bounds {smax = 4294967295 : index, smin = 1 : index, umax = 4294967295 : index, umin… [all …]
|
/llvm-project/mlir/test/Dialect/Index/ |
H A D | index-canonicalize.mlir | 4 func.func @add() -> (index, index) { 5 %0 = index.constant 1 6 %1 = index.constant 2100 7 %2 = index.constant 3000000001 8 %3 = index.constant 4000002100 10 %4 = index.add %0, %1 12 %5 = index.add %2, %3 14 // CHECK-DAG: %[[A:.*]] = index.constant 2101 15 // CHECK-DAG: %[[B:.*]] = index [all...] |
H A D | index-ops.mlir | 4 // CHECK-SAME: %[[A:.*]]: index, %[[B:.*]]: index 5 func.func @binary_ops(%a: index, %b: index) { 6 // CHECK-NEXT: index.add %[[A]], %[[B]] 7 %0 = index.add %a, %b 8 // CHECK-NEXT: index.sub %[[A]], %[[B]] 9 %1 = index.sub %a, %b 10 // CHECK-NEXT: index.mul %[[A]], %[[B]] 11 %2 = index.mul %a, %b 12 // CHECK-NEXT: index.divs %[[A]], %[[B]] 13 %3 = index.divs %a, %b [all …]
|
/llvm-project/mlir/test/Interfaces/InferIntRangeInterface/ |
H A D | infer-int-range-test-ops.mlir | 4 // CHECK: %[[cst:.*]] = "test.constant"() <{value = 3 : index} 6 func.func @constant() -> index { 7 %0 = test.with_bounds { umin = 3 : index, umax = 3 : index, 8 smin = 3 : index, smax = 3 : index} : index 9 func.return %0 : index 13 // CHECK: %[[cst:.*]] = "test.constant"() <{value = 4 : index} 15 func.func @increment() -> index { 16 … = test.with_bounds { umin = 3 : index, umax = 3 : index, smin = 0 : index, smax = 0x7ffffffffffff… 17 %1 = test.increment %0 : index 18 func.return %1 : index [all …]
|
/llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/ |
H A D | legalizer-info-validation.mir | 17 # DEBUG: G_ADD (opcode [[ADD_OPC:[0-9]+]]): 1 type index, 0 imm indices 18 # DEBUG-NEXT: .. the first uncovered type index: 1, OK 19 # DEBUG-NEXT: .. the first uncovered imm index: 0, OK 21 # DEBUG-NEXT: G_SUB (opcode [[SUB_OPC:[0-9]+]]): 1 type index, 0 imm indices 23 # DEBUG-NEXT: .. the first uncovered type index: 1, OK 24 # DEBUG-NEXT: .. the first uncovered imm index: 0, OK 26 # DEBUG-NEXT: G_MUL (opcode {{[0-9]+}}): 1 type index, 0 imm indices 27 # DEBUG-NEXT: .. the first uncovered type index: 1, OK 28 # DEBUG-NEXT: .. the first uncovered imm index: 0, OK 30 # DEBUG-NEXT: G_SDIV (opcode {{[0-9]+}}): 1 type index, [all...] |
/llvm-project/mlir/test/Dialect/MemRef/ |
H A D | expand-strided-metadata.mlir | 6 -> (memref<f32>, index, index, index, index, index) { 7 // CHECK-DAG: %[[C1:.*]] = arith.constant 1 : index 8 // CHECK-DAG: %[[C2:.*]] = arith.constant 2 : index 9 // CHECK-DAG: %[[C4:.*]] = arith.constant 4 : index 10 // CHECK-DAG: %[[C5:.*]] = arith.constant 5 : index 15 -> memref<f32>, index, inde [all...] |
/llvm-project/mlir/test/Dialect/SCF/ |
H A D | value-bounds-op-interface-impl.mlir | 5 // CHECK-SAME: %[[a:.*]]: index, %[[b:.*]]: index, %[[c:.*]]: index 7 func.func @scf_for(%a: index, %b: index, %c: index) { 9 %0 = "test.reify_bound"(%iv) {type = "LB"} : (index) -> (index) 10 %1 = "test.reify_bound"(%iv) {type = "UB"} : (index) -> (index) [all...] |
H A D | uplift-while.mlir | 3 func.func @uplift_while(%arg0: index, %arg1: index, %arg2: index) -> index { 4 %0 = scf.while (%arg3 = %arg0) : (index) -> (index) { 5 %1 = arith.cmpi slt, %arg3, %arg1 : index 6 scf.condition(%1) %arg3 : index 8 ^bb0(%arg3: index): 9 "test.test1"(%arg3) : (index) -> () 10 %added = arith.addi %arg3, %arg2 : index 11 "test.test2"(%added) : (index) -> () 12 scf.yield %added : index 14 return %0 : index [all …]
|
/llvm-project/mlir/test/python/dialects/ |
H A D | index_dialect.py | 4 from mlir.dialects import index, arith 19 a = index.ConstantOp(value=42) 20 # CHECK: %{{.*}} = index.constant 42 26 a = index.BoolConstantOp(value=True) 27 # CHECK: %{{.*}} = index.bool.constant true 33 a = index.ConstantOp(value=42) 34 r = index.AndOp(a, a) 35 # CHECK: %{{.*}} = index.and %{{.*}}, %{{.*}} 41 a = index.ConstantOp(value=42) 42 r = index.OrOp(a, a) [all …]
|
/llvm-project/bolt/test/X86/ |
H A D | pseudoprobe-decoding-inline.test | 53 CHECK: [Probe]: FUNC: bar Index: 1 Type: Block 54 CHECK: [Probe]: FUNC: bar Index: 4 Type: Block 55 CHECK: [Probe]: FUNC: foo Index: 1 Type: Block 56 CHECK: [Probe]: FUNC: foo Index: 2 Type: Block 57 CHECK: [Probe]: FUNC: foo Index: 5 Type: Block 58 CHECK: [Probe]: FUNC: foo Index: 6 Type: Block 59 CHECK: [Probe]: FUNC: foo Index: 2 Type: Block 60 CHECK: [Probe]: FUNC: foo Index: 3 Type: Block 61 CHECK: [Probe]: FUNC: foo Index: 4 Type: Block 62 CHECK: [Probe]: FUNC: bar Index [all...] |
/llvm-project/flang/test/HLFIR/ |
H A D | opt-variable-assign.fir |
|
H A D | opt-array-slice-assign.fir | 11 %c7998 = arith.constant 7998 : index 12 %c1 = arith.constant 1 : index 13 %c7999 = arith.constant 7999 : index 14 %c2 = arith.constant 2 : index 15 %c3 = arith.constant 3 : index 16 %c120 = arith.constant 120 : index 17 %c8000 = arith.constant 8000 : index 22 %4 = fir.shape %c8000, %c120, %c3 : (index, index, index) [all...] |
/llvm-project/clang/test/Analysis/ |
H A D | range_casts.c | 8 unsigned index = -1; in f1() local 9 if (index < foo) index = foo; in f1() 10 if (index + 1 == 0) // because of foo range, index is in range [0; UINT_MAX] in f1() 18 int index = -1; in f2() local 19 if (index < foo) index = foo; // index equals ULONG_MAX in f2() 20 if (index in f2() 28 unsigned index = -1; f3() local 38 int index = -1; f4() local 48 unsigned index = -1; f5() local 58 unsigned index = -1; f6() local 68 unsigned index = -1; f7() local 78 unsigned index = -1; f8() local 88 unsigned index = -1; f9() local 98 unsigned index = -1; f10() local 108 unsigned index = -1; f11() local 118 unsigned index = -1; f12() local 128 unsigned short index = -1; f13() local 138 unsigned index = -1; f14() local 149 unsigned index = -1; f15() local [all...] |
/llvm-project/lld/test/wasm/ |
H A D | many-functions.ll | 22 ; CHECK-NEXT: Index: 1 25 ; CHECK-NEXT: Index: 1 28 ; CHECK-NEXT: Index: 1 31 ; CHECK-NEXT: Index: 1 34 ; CHECK-NEXT: Index: 1 37 ; CHECK-NEXT: Index: 1 40 ; CHECK-NEXT: Index: 1 43 ; CHECK-NEXT: Index: 1 46 ; CHECK-NEXT: Index: 1 49 ; CHECK-NEXT: Index: 1 [all …]
|
H A D | locals-duplicate.test | 12 ; CHECK-NEXT: - Index: 0 21 ; CHECK-NEXT: - Index: 0 32 ; CHECK-NEXT: - Index: 0 38 ; CHECK-NEXT: - Index: 1 44 ; CHECK-NEXT: - Index: 2 54 ; CHECK-NEXT: Index: 0 57 ; CHECK-NEXT: Index: 1 60 ; CHECK-NEXT: Index: 3 63 ; CHECK-NEXT: Index: 4 66 ; CHECK-NEXT: Index: 1 [all …]
|
/llvm-project/flang/test/Lower/ |
H A D | array-expression-assumed-size.f90 | 19 ! CHECK: %[[VAL_1A:.*]] = fir.convert %c10{{.*}} : (i64) -> index 20 ! CHECK: %[[VAL_1B:.*]] = arith.cmpi sgt, %[[VAL_1A]], %c0{{.*}} : index 21 ! CHECK: %[[VAL_1:.*]] = arith.select %[[VAL_1B]], %[[VAL_1A]], %c0{{.*}} : index 22 ! CHECK: %[[VAL_2:.*]] = arith.constant -1 : index 23 ! CHECK: %[[VAL_3:.*]] = arith.constant 1 : index 25 ! CHECK: %[[VAL_5:.*]] = fir.convert %[[VAL_4]] : (i64) -> index 26 ! CHECK: %[[VAL_6:.*]] = arith.addi %[[VAL_3]], %[[VAL_1]] : index 27 ! CHECK: %[[VAL_7:.*]] = arith.subi %[[VAL_6]], %[[VAL_3]] : index 28 ! CHECK: %[[VAL_8:.*]] = arith.constant 0 : index 29 ! CHECK: %[[VAL_9:.*]] = arith.subi %[[VAL_7]], %[[VAL_3]] : index [all...] |
/llvm-project/mlir/test/Dialect/Arith/ |
H A D | int-range-interface.mlir | 4 // CHECK: %[[c3:.*]] = arith.constant 3 : index 6 func.func @add_min_max(%a: index, %b: index) -> index { 7 %c1 = arith.constant 1 : index 8 %c2 = arith.constant 2 : index 9 %0 = arith.minsi %a, %c1 : index 10 %1 = arith.maxsi %0, %c1 : index 11 %2 = arith.minui %b, %c2 : index 12 %3 = arith.maxui %2, %c2 : index [all...] |
H A D | value-bounds-op-interface-impl.mlir | 10 // CHECK-SAME: %[[a:.*]]: index 15 // CHECK-ARITH-SAME: %[[a:.*]]: index 16 // CHECK-ARITH: %[[c5:.*]] = arith.constant 5 : index 18 // CHECK-ARITH: %[[c5:.*]] = arith.constant 5 : index 21 func.func @arith_addi(%a: index) -> index { 22 %0 = arith.constant 5 : index 23 %1 = arith.addi %0, %a : index 24 %2 = "test.reify_bound"(%1) : (index) -> (index) [all...] |
/llvm-project/flang/test/Lower/OpenACC/ |
H A D | acc-enter-data.f90 | 11 !CHECK: %[[C10:.*]] = arith.constant 10 : index 12 !CHECK: %[[EXTENT_C10:.*]] = arith.constant 10 : index 23 !CHECK: %[[ONE:.*]] = arith.constant 1 : index 24 !CHECK: %[[LB:.*]] = arith.constant 0 : index 25 !CHECK: %[[UB:.*]] = arith.subi %[[C10]], %[[ONE]] : index 26 …lowerbound(%[[LB]] : index) upperbound(%[[UB]] : index) extent(%[[C10]] : index) stride(%[[ONE]] :… 27 !CHECK: %[[LB:.*]] = arith.constant 0 : index 28 !CHECK: %[[UB:.*]] = arith.subi %[[EXTENT_C10]], %[[ONE]] : index 29 …erbound(%[[LB]] : index) upperbound(%[[UB]] : index) extent(%[[EXTENT_C10]] : index) stride(%[[ONE… 34 !CHECK: %[[ONE:.*]] = arith.constant 1 : index [all …]
|
/llvm-project/flang/test/Fir/ |
H A D | loop01.fir | 6 func.func @x(%lb : index, %ub : index, %step : index, %b : i1, %addr : !fir.ref<index>) { 10 fir.store %iv to %addr : !fir.ref<index> 12 %zero = arith.constant 0 : index 13 fir.store %zero to %addr : !fir.ref<index> 21 // CHECK: func @x(%[[VAL_0:.*]]: index, %[[VAL_1:.*]]: index, %[[VAL_2:.*]]: index, [all...] |
H A D | array-coor-canonicalization.fir | 12 %c1 = arith.constant 1 : index 14 %c2 = arith.constant 2 : index 15 %c120 = arith.constant 120 : index 17 %1 = fir.shape %c120, %c2 : (index, index) -> !fir.shape<2> 19 …%3 = fir.slice %c1, %c120, %c1, %c1, %c2, %c1 : (index, index, index, index, index, index) -> !fir… 23 …%5 = fir.array_coor %4 %arg2, %arg1 : (!fir.box<!fir.array<120x2xi32>>, index, index) -> !fir.ref<… 38 %c9 = arith.constant 9 : index 39 %c1 = arith.constant 1 : index 40 %c0 = arith.constant 0 : index 41 %c11 = arith.constant 11 : index [all …]
|
H A D | cg-ops.fir | 6 // CHECK: %[[zero:.*]] = arith.constant 0 : index 7 %0 = arith.constant 0 : index 8 %1 = fir.shape_shift %0, %0 : (index, index) -> !fir.shapeshift<1> 9 %2 = fir.slice %0, %0, %0 : (index, index, index) -> !fir.slice<1> 10 …ro]], %[[zero]], %[[zero]]] : (!fir.ref<!fir.array<?xi32>>, index, index, index, index, index) -> … 12 …, %[[zero]]]<%[[zero]]> : (!fir.ref<!fir.array<?xi32>>, index, index, index, index, index, index) … 13 … [%2] %0 : (!fir.ref<!fir.array<?xi32>>, !fir.shapeshift<1>, !fir.slice<1>, index) -> !fir.ref<i32> 14 … %[[box]](%[[zero]]) origin %[[zero]] : (!fir.box<!fir.array<?xi32>>, index, index) -> !fir.box<!f… 25 // CHECK: %[[zero:.*]] = arith.constant 0 : index 26 %0 = arith.constant 0 : index [all …]
|
/llvm-project/llvm/test/CodeGen/Thumb2/ |
H A D | mve-vidup.ll | 4 define arm_aapcs_vfpcc <4 x i32> @vidup_v4i32_1(i32 %index) { 9 %a1 = add i32 %index, 1 10 %a2 = add i32 %index, 2 11 %a3 = add i32 %index, 3 12 %a4 = add i32 %index, 4 13 %v1 = insertelement <4 x i32> poison, i32 %index, i32 0 20 define arm_aapcs_vfpcc <4 x i32> @vidup_v4i32_2(i32 %index) { 25 %a1 = add i32 %index, 2 26 %a2 = add i32 %index, 4 27 %a3 = add i32 %index, 6 [all …]
|
/llvm-project/mlir/test/Dialect/Tensor/ |
H A D | value-bounds-op-interface-impl.mlir | 4 func.func @unknown_op() -> index { 7 %1 = "test.reify_bound"(%0) {dim = 0} : (tensor<?x?xf32>) -> (index) 8 return %1 : index 14 // CHECK: %[[c10:.*]] = arith.constant 10 : index 16 func.func @cast(%t: tensor<10xf32>) -> index { 18 %1 = "test.reify_bound"(%0) {dim = 0} : (tensor<?xf32>) -> (index) 19 return %1 : index 24 func.func @cast_unranked(%t: tensor<*xf32>) -> index { 27 %1 = "test.reify_bound"(%0) {dim = 0} : (tensor<?xf32>) -> (index) 28 return %1 : index [all...] |
/llvm-project/mlir/test/Dialect/Affine/ |
H A D | value-bounds-op-interface-impl.mlir | 6 // CHECK-SAME: %[[a:.*]]: index, %[[b:.*]]: index 10 func.func @affine_apply(%a: index, %b: index) -> index { 12 %1 = "test.reify_bound"(%0) : (index) -> (index) 13 return %1 : index 19 // CHECK-SAME: %[[a:.*]]: index 20 // CHECK: %[[c2:.*]] = arith.constant 2 : index [all...] |