| /llvm-project-15.0.7/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/ |
| H A D | perm.ll | 4 declare i32 @llvm.amdgcn.perm(i32, i32, i32) 41 %s1s2_u = call i32 @llvm.amdgcn.perm(i32 421542475, i32 1550679695, i32 undef) 43 %s1s2_0x00010203 = call i32 @llvm.amdgcn.perm(i32 421542475, i32 1550679695, i32 66051) 57 %u1u2_0x0c0f0c0f = call i32 @llvm.amdgcn.perm(i32 undef, i32 undef, i32 202312719) 61 %u1u2_0x070d010c = call i32 @llvm.amdgcn.perm(i32 undef, i32 undef, i32 118292748) 65 %u1u2_0x80818283 = call i32 @llvm.amdgcn.perm(i32 undef, i32 undef, i32 2155971203) 67 %u1u2_0x0e0e0e0e = call i32 @llvm.amdgcn.perm(i32 undef, i32 undef, i32 235802126) 75 %s1u2_0x03020100 = call i32 @llvm.amdgcn.perm(i32 421542475, i32 undef, i32 50462976) 85 %s1u2_0x03020104 = call i32 @llvm.amdgcn.perm(i32 421542475, i32 undef, i32 50462980) 87 %s1u2_0x0302010c = call i32 @llvm.amdgcn.perm(i32 421542475, i32 undef, i32 50462988) [all …]
|
| /llvm-project-15.0.7/mlir/lib/ExecutionEngine/ |
| H A D | SparseTensorUtils.cpp | 106 assert(perm && shape); in assertPermutedSizesMatchShape() 231 permsz[perm[r]] = dimSizes[r]; in newSparseTensorCOO() 270 assert(perm && sparsity); in SparseTensorStorageBase() 282 rev[perm[r]] = r; in SparseTensorStorageBase() 563 permsz[perm[r]] = shape[r]; in newSparseTensor() 849 : Base(tensor, rank, perm) {} in SparseTensorEnumerator() 1385 indices[perm[r]] = idx - 1; in openSparseTensorCOO() 1433 std::vector<uint64_t> order(perm, perm + rank); in toMLIRSparseTensor() 1451 idx[perm[r]] = indices[base + r]; in toMLIRSparseTensor() 1471 std::vector<uint64_t> perm(rank); in fromMLIRSparseTensor() local [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | llvm.amdgcn.perm.ll | 4 declare i32 @llvm.amdgcn.perm(i32, i32, i32) #0 9 %val = call i32 @llvm.amdgcn.perm(i32 %src1, i32 %src2, i32 %src3) #0 17 %val = call i32 @llvm.amdgcn.perm(i32 %src1, i32 %src2, i32 12345) #0 25 %val = call i32 @llvm.amdgcn.perm(i32 %src1, i32 %src2, i32 12345) #0 33 %val = call i32 @llvm.amdgcn.perm(i32 %src1, i32 %src2, i32 12345) #0 41 %val = call i32 @llvm.amdgcn.perm(i32 %src1, i32 %src2, i32 1) #0
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToGPU/ |
| H A D | NvGpuSupport.cpp | 291 static constexpr std::array<int64_t, 2> perm = {1, 0}; in matchAndRewrite() local 307 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 309 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 311 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 312 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 315 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 316 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 319 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 322 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite()
|
| H A D | VectorToGPU.cpp | 292 static constexpr std::array<int64_t, 2> perm = {1, 0}; in matchAndRewrite() local 307 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 309 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 311 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 312 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 315 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 316 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 319 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 355 SmallVector<int64_t, 2> perm; in matchAndRewrite() local 356 op.getTransp(perm); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Utils/ |
| H A D | VectorUtils.cpp | 149 SmallVector<AffineExpr, 4> perm(enclosingLoopToVectorDim.size(), in makePermutationMap() local 153 assert(kvp.second < perm.size()); in makePermutationMap() 160 assert(perm[kvp.second] == getAffineConstantExpr(0, context) && in makePermutationMap() 162 perm[kvp.second] = getAffineDimExpr(dim, context); in makePermutationMap() 172 return AffineMap::get(indices.size(), 0, perm, context); in makePermutationMap()
|
| /llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/ |
| H A D | fix_bfi.ll | 12 @perm = internal unnamed_addr global [351 x ptr] zeroinitializer, align 16 18 %arrayidx = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %div 31 %arrayidx1 = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %l.1 44 %arrayidx4 = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %r.1
|
| H A D | bfi_verification.ll | 13 @perm = internal unnamed_addr global [351 x ptr] zeroinitializer, align 16 19 %arrayidx = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %div 32 %arrayidx1 = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %l.1 45 %arrayidx4 = getelementptr inbounds [351 x ptr], ptr @perm, i64 0, i64 %r.1
|
| /llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/ |
| H A D | ppc64-pre-inc-no-extra-phi.ll | 6 @perm = local_unnamed_addr global [100 x i64] zeroinitializer, align 8 14 %arrayidx = getelementptr inbounds [100 x i64], [100 x i64]* @perm, i64 0, i64 %l.0
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | pr30562.ll | 5 define i32 @foo(ptr nocapture %perm, i32 %n) { 31 %l14 = getelementptr inbounds i64, ptr %perm, i64 %l13
|
| H A D | perm.avx2-false-deps.ll | 2 ; RUN: llc -verify-machineinstrs -mcpu=alderlake -mattr=+false-deps-perm -mtriple=x86_64-unknown-un… 3 ; RUN: llc -verify-machineinstrs -mcpu=sapphirerapids -mattr=+false-deps-perm -mtriple=x86_64-unkno… 4 ; RUN: llc -verify-machineinstrs -mcpu=alderlake -mattr=-false-deps-perm -mtriple=x86_64-unknown-un… 5 ; RUN: llc -verify-machineinstrs -mcpu=sapphirerapids -mattr=-false-deps-perm -mtriple=x86_64-unkno…
|
| H A D | vec_cast3.ll | 139 …%perm = shufflevector <4 x i64> %x, <4 x i64> undef, <4 x i32> <i32 0, i32 undef, i32 1, i32 undef> 140 %t1 = bitcast <4 x i64> %perm to <32 x i8>
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorDropLeadUnitDim.cpp | 341 SmallVector<int64_t> perm; in matchAndRewrite() local 348 perm.insert(perm.begin(), i); in matchAndRewrite() 352 perm.push_back(i); in matchAndRewrite() 363 contractOp.getLoc(), operands[it.index()], perm); in matchAndRewrite()
|
| H A D | VectorTransforms.cpp | 1048 SmallVector<int64_t> perm; in matchAndRewrite() local 1049 transposeOp.getTransp(perm); in matchAndRewrite() 1468 static constexpr std::array<int64_t, 2> perm = {1, 0}; in t() local 1469 return builder.create<vector::TransposeOp>(loc, v, perm); in t() 1654 static constexpr std::array<int64_t, 2> perm = {1, 0}; in matchAndRewrite() local 1674 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 1678 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 1679 rhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() 1681 lhs = rewriter.create<vector::TransposeOp>(loc, lhs, perm); in matchAndRewrite() 1685 lhs = rewriter.create<vector::TransposeOp>(loc, rhs, perm); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/unittests/Analysis/Presburger/ |
| H A D | IntegerPolyhedronTest.cpp | 109 SmallVector<unsigned, 4> perm(nDim); in checkPermutationsSample() local 110 std::iota(perm.begin(), perm.end(), 0); in checkPermutationsSample() 111 auto permute = [&perm](ArrayRef<int64_t> coeffs) { in checkPermutationsSample() 113 for (unsigned id : perm) in checkPermutationsSample() 127 } while (std::next_permutation(perm.begin(), perm.end())); in checkPermutationsSample()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | knownbits-intrinsics-binop.ll | 352 %perm = call <2 x i64> @llvm.s390.vpdi(<2 x i64> <i64 0, i64 0>, 354 %res = and <2 x i64> %perm, <i64 1, i64 1> 365 %perm = call <2 x i64> @llvm.s390.vpdi(<2 x i64> <i64 1, i64 1>, 367 %res = and <2 x i64> %perm, <i64 1, i64 1> 430 %perm = call <16 x i8> @llvm.s390.vperm( 437 %res = and <16 x i8> %perm, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, 450 %perm = call <16 x i8> @llvm.s390.vperm( 457 %res = and <16 x i8> %perm, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1,
|
| H A D | signbits-intrinsics-binop.ll | 192 %perm = call <2 x i64> @llvm.s390.vpdi(<2 x i64> <i64 0, i64 1>, 194 %trunc = trunc <2 x i64> %perm to <2 x i32> 226 %perm = call <16 x i8> @llvm.s390.vperm( 233 %trunc = trunc <16 x i8> %perm to <16 x i4>
|
| /llvm-project-15.0.7/cross-project-tests/debuginfo-tests/dexter/dex/utils/ |
| H A D | PrettyOutputBase.py | 241 for perm in permutations(comb): 243 perm[0][0]('stdout ' 245 for fn, string in perm:
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/ |
| H A D | Sparsification.cpp | 126 SmallVector<unsigned, 4> perm(sz); in permute() local 128 perm[i] = inv[topSort[i]]; in permute() 129 return AffineMap::getPermutationMap(perm, context); in permute() 200 AffineExpr a = map.getResult(perm(enc, d)); in findSparseAnnotations() 282 AffineExpr f = map.getResult(perm(enc, d - 1)); in computeIterationGraph() 283 AffineExpr t = map.getResult(perm(enc, d)); in computeIterationGraph() 510 AffineExpr a = map.getResult(perm(enc, d)); in genBuffers() 529 unsigned p = perm(enc, d); in genBuffers() 704 AffineExpr a = map.getResult(perm(enc, rank - 1)); in genSubscript() 711 AffineExpr a = map.getResult(perm(enc, d)); in genSubscript() [all …]
|
| H A D | SparseTensorConversion.cpp | 272 Value ptr, Value valPtr, Value ind, Value perm) { in genAddEltCall() argument 274 SmallVector<Value, 4> params{ptr, valPtr, ind, perm}; in genAddEltCall() 818 Value perm = params[2]; in matchAndRewrite() local 854 genAddEltCall(rewriter, op, eltType, coo, elemPtr, ind, perm); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/test/Integration/Dialect/SparseTensor/taco/tools/ |
| H A D | mlir_pytaco_utils.py | 187 perm = np_perm.ctypes.data_as(ctypes.POINTER(ctypes.c_ulonglong)) 191 ptr = convert_to(rank, nse, shape, values, indices, perm, sparse)
|
| H A D | mlir_pytaco.py | 355 perm = np.array(self.ordering.ordering, dtype=np.ulonglong) 358 return (perm, sparse) 1495 perm, sparse = self.format.get_permutation_and_sparsity() 1496 ptr = utils.coo_tensor_to_sparse_tensor(shape, values, indices, perm,
|
| /llvm-project-15.0.7/mlir/include/mlir/ExecutionEngine/ |
| H A D | SparseTensorUtils.h | 280 uint64_t *indices, uint64_t *perm, uint8_t *sparse);
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Vector/ |
| H A D | TestVectorTransforms.cpp | 398 SmallVector<AffineExpr, 2> perm; in runOnOperation() local 408 perm.push_back(getAffineDimExpr(i, ctx)); in runOnOperation() 412 perm, ctx); in runOnOperation()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 136 auto perm = op.getPerms(); in matchAndRewrite() local 139 if (!matchPattern(perm, m_Constant(&permAttr))) { in matchAndRewrite()
|