Home
last modified time | relevance | path

Searched refs:slice (Results 1 – 25 of 466) sorted by relevance

12345678910>>...19

/llvm-project-15.0.7/llvm/test/Transforms/SROA/
H A Dpr37267.ll20 ; slice 1: WWWW
23 ; slice 4: RR
26 ; slice 1: [2,6)
29 ; slice 2: [8,12)
32 ; slice 3: [8,10)
35 ; slice 4: [2,4)
61 ; slice 1: RRRR
64 ; slice 4: RR
67 ; slice 1: [2,6)
70 ; slice 2: [8,12)
[all …]
/llvm-project-15.0.7/flang/test/Fir/
H A Dcg-ops.fir9 %2 = fir.slice %0, %0, %0 : (index, index, index) -> !fir.slice<1>
11 …%3 = fir.embox %addr (%1) [%2] : (!fir.ref<!fir.array<?xi32>>, !fir.shapeshift<1>, !fir.slice<1>) …
13 …ddr (%1) [%2] %0 : (!fir.ref<!fir.array<?xi32>>, !fir.shapeshift<1>, !fir.slice<1>, index) -> !fir…
28 %2 = fir.slice %0, %0, %0 : (index, index, index) -> !fir.slice<1>
30 …%3 = fir.embox %arr (%1) [%2] : (!fir.ref<!fir.array<?xi32>>, !fir.shapeshift<1>, !fir.slice<1>) -…
36 // fir.embox with slice with substr
44 %2 = fir.slice %0, %0, %0 substr %0, %0: (index, index, index, index, index) -> !fir.slice<1>
46 …%3 = fir.embox %addr (%1) [%2] : (!fir.ref<!fir.array<?xi32>>, !fir.shapeshift<1>, !fir.slice<1>) …
52 // fir.rebox with slice with substr
60 …%0 = fir.slice %c10, %c1, %c1 substr %c1, %c1: (index, index, index, index, index) -> !fir.slice<1>
[all …]
H A Darray-value-copy-2.fir20 %9 = fir.slice %0, %3, %0 : (index, index, index) -> !fir.slice<1>
21 …%10 = fir.array_load %arg0 [%9] : (!fir.box<!fir.array<?xf32>>, !fir.slice<1>) -> !fir.array<?xf32>
29 %17 = fir.slice %13, %16, %0 : (index, index, index) -> !fir.slice<1>
30 …%18 = fir.array_load %arg0 [%17] : (!fir.box<!fir.array<?xf32>>, !fir.slice<1>) -> !fir.array<?xf3…
38 …%20 to %arg0[%9] : !fir.array<?xf32>, !fir.array<?xf32>, !fir.box<!fir.array<?xf32>>, !fir.slice<1>
62 %10 = fir.slice %0, %4, %1 : (index, index, index) -> !fir.slice<1>
63 …%11 = fir.array_load %arg0 [%10] : (!fir.box<!fir.array<?xf32>>, !fir.slice<1>) -> !fir.array<?xf3…
74 %20 = fir.slice %15, %19, %16 : (index, index, index) -> !fir.slice<1>
75 …%21 = fir.array_load %arg0 [%20] : (!fir.box<!fir.array<?xf32>>, !fir.slice<1>) -> !fir.array<?xf3…
84 …23 to %arg0[%10] : !fir.array<?xf32>, !fir.array<?xf32>, !fir.box<!fir.array<?xf32>>, !fir.slice<1>
H A Dinvalid.fir61 %0 = fir.slice %c1, %c10, %c1 : (index, index, index) -> !fir.slice<1>
72 %0 = fir.slice %c1, %c10, %c1 : (index, index, index) -> !fir.slice<1>
84 %0 = fir.slice %c1, %c10, %c1 : (index, index, index) -> !fir.slice<1>
177 %slice = fir.slice %c47, %c78, %c3 : (index,index,index) -> !fir.slice<1>
261 %slice = fir.slice %c47, %c78, %c3 : (index,index,index) -> !fir.slice<1>
323 %1 = fir.slice %c_100, %c_100, %c_100 : (index, index, index) -> !fir.slice<1>
341 %1 = fir.slice %c_100, %c_100, %c_100 : (index, index, index) -> !fir.slice<1>
665 %2 = fir.slice %1, %1, %1 : (!fir.field, !fir.field, !fir.field) -> !fir.slice<1>
674 …%slice = fir.slice %c1, %c10, %c1 substr %c1, %c10 : (index, index, index, index, index) -> !fir.s…
685 …%slice = fir.slice %c1, %c10, %c1 substr %c1, %c10 : (index, index, index, index, index) -> !fir.s…
[all …]
H A Dembox.fir26 %2 = fir.slice %c1_i64, %c10_i64, %c2_i64 : (i64, i64, i64) -> !fir.slice<1>
27 …%3 = fir.embox %0(%1) [%2] : (!fir.ref<!fir.array<20xi32>>, !fir.shape<1>, !fir.slice<1>) -> !fir.…
58 %4 = fir.slice %c1_i64, %c10_i64, %c2_i64 path %2 : (i64, i64, i64, !fir.field) -> !fir.slice<1>
59 …rray<20x!fir.type<_QFtest_dt_sliceTt{i:i32,j:i32}>>>, !fir.shape<1>, !fir.slice<1>) -> !fir.box<!f…
75 …%1 = fir.slice %c1, %c2, %c1, %c1, %c3, %c1 substr %c1_i64, %c2_i64 : (index, index, index, index,…
76 …%0) [%1] : (!fir.ref<!fir.array<2x3x!fir.char<1,4>>>, !fir.shape<2>, !fir.slice<2>) -> !fir.box<!f…
95 …%2 = fir.slice %c1, %c40, %c1, %at, %0, %0 : (index, index, index, index, index, index) -> !fir.sl…
102 …%3 = fir.embox %arg0(%1) [%2] : (!fir.ref<!fir.array<40x?xf32>>, !fir.shapeshift<2>, !fir.slice<2>…
/llvm-project-15.0.7/mlir/test/Transforms/
H A Dloop-fusion-slice-computation.mlir1 // RUN: mlir-opt %s -test-loop-fusion -test-loop-fusion-slice-computation -split-input-file -verify…
10 …// expected-remark@-1 {{Incorrect slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 1…
14 …// expected-remark@-1 {{slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0) loop bou…
27 …// expected-remark@-1 {{slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 1) loop bou…
31 …// expected-remark@-1 {{Incorrect slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0…
47 …// expected-remark@-1 {{Incorrect slice ( src loop: 1, dst loop: 0, depth: 1 : insert point: (1, 2…
52 …// expected-remark@-1 {{slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0) loop bou…
61 // Slices at loop depth 1 should only slice the loop bounds of the first scf.
62 // Slices at loop depth 2 should slice loop bounds of both loops.
75 …// expected-remark@-1 {{slice ( src loop: 0, dst loop: 1, depth: 1 : insert point: (1, 0) loop bou…
[all …]
/llvm-project-15.0.7/libc/test/src/__support/CPP/
H A Darrayref_test.cpp96 EXPECT_TRUE(arrayref.slice(0).equals(values)); in TYPED_TEST()
100 EXPECT_TRUE(arrayref.slice(1).equals(values)); in TYPED_TEST()
104 EXPECT_TRUE(arrayref.slice(2).equals(values)); in TYPED_TEST()
106 { EXPECT_TRUE(arrayref.slice(3).empty()); } in TYPED_TEST()
114 EXPECT_TRUE(arrayref.slice(0, 0).empty()); in TYPED_TEST()
115 EXPECT_TRUE(arrayref.slice(1, 0).empty()); in TYPED_TEST()
116 EXPECT_TRUE(arrayref.slice(2, 0).empty()); in TYPED_TEST()
117 EXPECT_TRUE(arrayref.slice(3, 0).empty()); in TYPED_TEST()
121 EXPECT_TRUE(arrayref.slice(0, 1).equals(values)); in TYPED_TEST()
125 EXPECT_TRUE(arrayref.slice(1, 1).equals(values)); in TYPED_TEST()
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Affine/
H A Dslicing-utils.mlir22 // FWD: matched: %[[v1:.*]] {{.*}} forward static slice:
28 // BWD: matched: %[[v1:.*]] {{.*}} backward static slice:
30 // FWDBWD: matched: %[[v1:.*]] {{.*}} static slice:
49 // BWD: matched: %[[v2:.*]] {{.*}} backward static slice:
51 // FWDBWD-NEXT: matched: %[[v2:.*]] {{.*}} static slice:
69 // BWD: matched: %[[v3:.*]] {{.*}} backward static slice:
71 // FWDBWD-NEXT: matched: %[[v3:.*]] {{.*}} static slice:
89 // BWD: matched: %[[v4:.*]] {{.*}} backward static slice:
91 // FWDBWD-NEXT: matched: %[[v4:.*]] {{.*}} static slice:
113 // FWDBWD-NEXT: matched: %[[v5:.*]] {{.*}} static slice:
[all …]
/llvm-project-15.0.7/mlir/test/Dialect/Tensor/
H A Dfold-constant-extract-slice.mlir1 // RUN: mlir-opt -split-input-file -test-tensor-transform-patterns=test-fold-constant-extract-slice
10 %slice = tensor.extract_slice %cst[0, 0] [1, 1] [1, 1] : tensor<2x1xf32> to tensor<1x1xf32>
11 return %slice : tensor<1x1xf32>
23 %slice = tensor.extract_slice %cst[0, 0] [2, 2] [1, 1] : tensor<3x4xf32> to tensor<2x2xf32>
24 return %slice : tensor<2x2xf32>
36 %slice = tensor.extract_slice %cst[1, 1] [2, 2] [1, 1] : tensor<3x4xf32> to tensor<2x2xf32>
37 return %slice : tensor<2x2xf32>
/llvm-project-15.0.7/flang/include/flang/Optimizer/CodeGen/
H A DCGOps.td43 - slice: A vector of triples that describe an array slice.
56 Variadic<AnyIntegerType>:$slice,
64 $memref (`(`$shape^`)`)? (`origin` $shift^)? (`[`$slice^`]`)?
73 // The rank of the result. A slice op can reduce the rank.
101 - slice: A vector of triples that describe an array slice.
106 There must not both be a shape and slice/subcomponent arguments
113 Variadic<AnyIntegerType>:$slice,
120 $box (`(`$shape^`)`)? (`origin` $shift^)? (`[`$slice^`]`)?
156 - slice: A vector of triples that describe an array slice.
172 Variadic<AnyIntegerType>:$slice,
[all …]
/llvm-project-15.0.7/mlir/lib/Analysis/
H A DSliceAnalysis.cpp136 SetVector<Operation *> slice; in getSlice() local
137 slice.insert(op); in getSlice()
142 while (currentIndex != slice.size()) { in getSlice()
143 auto *currentOp = (slice)[currentIndex]; in getSlice()
147 slice.insert(backwardSlice.begin(), backwardSlice.end()); in getSlice()
152 slice.insert(forwardSlice.begin(), forwardSlice.end()); in getSlice()
155 return topologicalSort(slice); in getSlice()
223 SetVector<Operation *> slice; in dependsOnCarriedVals() local
224 getBackwardSlice(value, &slice, in dependsOnCarriedVals()
234 for (Operation *op : slice) in dependsOnCarriedVals()
/llvm-project-15.0.7/libcxx/test/std/numerics/numarray/template.slice.array/slice.arr.assign/
H A Dslice_array.pass.cpp27 v1[std::slice(1, 5, 3)] = v2[std::slice(2, 5, 2)]; in main()
50 std::slice_array<int> s1 = v1[std::slice(1, 1, 1)]; in main()
51 std::slice_array<int> s2 = v1[std::slice(0, 1, 1)]; in main()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dload-slice.ll16 ; Low slice starts at 0 (base) and is 8-bytes aligned.
17 ; High slice starts at 4 (base + 4-bytes) and is 4-bytes aligned.
24 ; Add low slice: out[out_start].real, this is base + 0.
26 ; Add high slice: out[out_start].imm, this is base + 4.
39 ; Add low slice: out[out_start].real, this is base + 0.
41 ; Add high slice: out[out_start].imm, this is base + 4.
87 ; Low slice starts at 0 (base) and is 8-bytes aligned.
88 ; High slice starts at 6 (base + 6-bytes) and is 2-bytes aligned.
112 ; First slice uses bytes numbered 0 to 3.
113 ; Second slice uses bytes numbered 6 and 7.
[all …]
/llvm-project-15.0.7/lld/ELF/
H A DEhFrame.cpp65 d = d.slice(1); in readByte()
72 d = d.slice(count); in skipBytes()
80 StringRef s = toStringRef(d.slice(0, end - d.begin())); in readString()
81 d = d.slice(s.size() + 1); in readString()
93 d = d.slice(1); in skipLeb128()
127 d = d.slice(size); in skipAugP()
/llvm-project-15.0.7/mlir/test/Conversion/TosaToTensor/
H A Dtosa-to-tensor.mlir3 // CHECK-LABLE: func @slice
4 func.func @slice(%arg0: tensor<6xf32>) ->() {
6 %0 = "tosa.slice"(%arg0) {start = [2], size = [1]} : (tensor<6xf32>) -> (tensor<1xf32>)
19 %0 = "tosa.slice"(%arg0) {start = [2], size = [-1]} : (tensor<?xf32>) -> (tensor<?xf32>)
/llvm-project-15.0.7/llvm/unittests/Support/
H A DIndexedAccessorTest.cpp46 compareData(range.slice(2, 3), data.slice(2, 3)); in TEST()
47 compareData(range.slice(0, 5), data.slice(0, 5)); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_leb128.h44 T slice = byte & 0x7f; in DecodeSLEB128() local
45 value |= slice << shift; in DecodeSLEB128()
77 T slice = byte & 0x7f; in DecodeULEB128() local
78 value += slice << shift; in DecodeULEB128()
/llvm-project-15.0.7/libc/src/__support/CPP/
H A DArrayRef.h65 auto slice(size_t N, size_t M) const { return ArrayRefBase(data() + N, M); } in slice() function
67 auto slice(size_t N) const { return slice(N, size() - N); } in slice() function
70 auto drop_front(size_t N = 1) const { return slice(N, size() - N); }
73 auto drop_back(size_t N = 1) const { return slice(0, size() - N); }
/llvm-project-15.0.7/llvm/test/tools/llvm-lipo/
H A Dcreate-default-alignment.test1 # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
2 # RUN: yaml2obj %p/Inputs/x86_64-slice.yaml -o %t-x86_64.o
9 # RUN: yaml2obj %p/Inputs/armv7-slice.yaml -o %t-armv7.o
10 # RUN: yaml2obj %p/Inputs/arm64-slice.yaml -o %t-arm64.o
H A Dcreate-compute-alignment.test1 # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-i386.o
2 # RUN: yaml2obj %p/Inputs/CPU14-slice.yaml -o %t-CPU14.o
3 # RUN: yaml2obj %p/Inputs/CPU10-slice.yaml -o %t-CPU10.o
/llvm-project-15.0.7/llvm/test/TableGen/
H A DRegisterInfoEmitter-regcost-tuple.td13 list<int> slice =
23 foreach Index = Indexes<!add(5, !mul(Size, -1))>.slice in {
24 def !foldl("", Indexes<Size>.slice, acc, cur,
28 !foldl([]<SubRegIndex>, Indexes<Size>.slice, acc, cur,
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DSmallStringTest.cpp142 EXPECT_EQ("l", theString.slice(2, 3)); in TEST_F()
143 EXPECT_EQ("ell", theString.slice(1, 4)); in TEST_F()
144 EXPECT_EQ("llo", theString.slice(2, 100)); in TEST_F()
145 EXPECT_EQ("", theString.slice(2, 1)); in TEST_F()
146 EXPECT_EQ("", theString.slice(10, 20)); in TEST_F()
202 EXPECT_EQ("abcdyyy", theString.slice(0, 7)); in TEST_F()
/llvm-project-15.0.7/mlir/test/lib/IR/
H A DTestSlicing.cpp38 SetVector<Operation *> slice; in createBackwardSliceFunction() local
39 getBackwardSlice(op, &slice); in createBackwardSliceFunction()
40 for (Operation *slicedOp : slice) in createBackwardSliceFunction()
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dobjc2-write-barrier-3.m37 Slice *slice;
38 slice->items = 0;
40 slice->items[i] = 0;
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dllvm.amdgcn.image.dim.gfx90a.ll41 define amdgpu_ps <4 x float> @load_cube(<8 x i32> inreg %rsrc, i32 %s, i32 %t, i32 %slice) {
43 …%v = call <4 x float> @llvm.amdgcn.image.load.cube.v4f32.i32(i32 15, i32 %s, i32 %t, i32 %slice, <…
49 …> @load_cube_lwe(<8 x i32> inreg %rsrc, i32 addrspace(1)* inreg %out, i32 %s, i32 %t, i32 %slice) {
60 define amdgpu_ps <4 x float> @load_1darray(<8 x i32> inreg %rsrc, i32 %s, i32 %slice) {
62 …%v = call <4 x float> @llvm.amdgcn.image.load.1darray.v4f32.i32(i32 15, i32 %s, i32 %slice, <8 x i…
68 define amdgpu_ps <4 x float> @load_2darray(<8 x i32> inreg %rsrc, i32 %s, i32 %t, i32 %slice) {
95 define amdgpu_ps <4 x float> @load_2darraymsaa(<8 x i32> inreg %rsrc, i32 %s, i32 %t, i32 %slice, i…
137 …amdgpu_ps void @store_cube(<8 x i32> inreg %rsrc, <4 x float> %vdata, i32 %s, i32 %t, i32 %slice) {
145 define amdgpu_ps void @store_1darray(<8 x i32> inreg %rsrc, <4 x float> %vdata, i32 %s, i32 %slice)…
153 …gpu_ps void @store_2darray(<8 x i32> inreg %rsrc, <4 x float> %vdata, i32 %s, i32 %t, i32 %slice) {
[all …]

12345678910>>...19