| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/ |
| H A D | VectorTransferOpTransforms.cpp | 270 if (!sourceType || !sourceType.hasStaticShape()) in matchAndRewrite() 272 if (sourceType.getNumElements() != vectorType.getNumElements()) in matchAndRewrite() 279 int reducedRank = getReducedRank(sourceType.getShape()); in matchAndRewrite() 280 if (reducedRank == sourceType.getRank()) in matchAndRewrite() 313 if (!sourceType || !sourceType.hasStaticShape()) in matchAndRewrite() 322 int reducedRank = getReducedRank(sourceType.getShape()); in matchAndRewrite() 323 if (reducedRank == sourceType.getRank()) in matchAndRewrite() 425 if (!sourceType) in matchAndRewrite() 432 if (firstContiguousInnerDim >= sourceType.getRank() - 1) in matchAndRewrite() 483 if (!sourceType) in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/clang/tools/clang-format-vs/ClangFormat/ |
| H A D | ClangFormatPackage.cs | 70 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) in CanConvertFrom() argument 72 if (sourceType == typeof(string)) in CanConvertFrom() 75 return base.CanConvertFrom(context, sourceType); in CanConvertFrom() 111 public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) in CanConvertFrom() argument 113 if (sourceType == typeof(string)) in CanConvertFrom() 116 return base.CanConvertFrom(context, sourceType); in CanConvertFrom()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 46 auto sourceType = source.dyn_cast<RankedTensorType>(); in preservesStaticInformation() local 50 if (!sourceType || !targetType) in preservesStaticInformation() 58 if (sourceType.getRank() != targetType.getRank()) in preservesStaticInformation() 205 auto sourceType = in matchAndRewrite() local 222 auto newJoin = joinShapes(sourceType, resultType); in matchAndRewrite() 1287 int64_t count = sourceType.getNumElements(); in matchAndRewrite() 1304 ArrayRef<int64_t> shape = sourceType.getShape(); in matchAndRewrite() 1869 unsigned rank = sourceType.getRank(); in inferResultType() 1877 if (sourceType.isDynamicDim(i) || in inferResultType() 1909 unsigned rank = sourceType.getRank(); in build() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Utils/ |
| H A D | ReshapeOpsUtils.cpp | 19 mlir::getReassociationIndicesForReshape(ShapedType sourceType, in getReassociationIndicesForReshape() argument 21 if (sourceType.getRank() > targetType.getRank()) in getReassociationIndicesForReshape() 22 return getReassociationIndicesForCollapse(sourceType.getShape(), in getReassociationIndicesForReshape() 24 if (sourceType.getRank() < targetType.getRank()) in getReassociationIndicesForReshape() 26 sourceType.getShape()); in getReassociationIndicesForReshape()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Transforms/ |
| H A D | BufferizableOpInterfaceImpl.cpp | 95 auto sourceType = source->getType().cast<BaseMemRefType>(); in bufferize() local 99 if (auto rankedMemRefType = sourceType.dyn_cast<MemRefType>()) { in bufferize() 104 auto unrankedMemrefType = sourceType.cast<UnrankedMemRefType>(); in bufferize()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MemRef/Transforms/ |
| H A D | ResolveShapedTypeResultDims.cpp | 94 auto sourceType = dimValue.getType().dyn_cast<RankedTensorType>(); in matchAndRewrite() local 96 static_cast<size_t>(sourceType.getRank())) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | ControlFlowInterfaces.cpp | 136 Type sourceType = std::get<0>(typesIdx.value()); in verifyTypesAlongAllEdges() local 138 if (!regionInterface.areTypesCompatible(sourceType, inputType)) { in verifyTypesAlongAllEdges() 141 << ": source type #" << typesIdx.index() << " " << sourceType in verifyTypesAlongAllEdges()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/ |
| H A D | WmmaOpsToNvvm.cpp | 224 NVVM::MMATypes sourceType = getElementType(aType); in matchAndRewrite() local 226 if (NVVM::WMMAMmaOp::getIntrinsicID(m, n, k, layout, layout, sourceType, in matchAndRewrite() 235 op, adaptor.opC().getType(), m, n, k, layout, layout, sourceType, in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/ |
| H A D | MemRefOps.cpp | 517 MemRefType sourceType = castOp.getSource().getType().dyn_cast<MemRefType>(); in canFoldIntoConsumerOp() local 521 if (!sourceType || !resultType) in canFoldIntoConsumerOp() 525 if (sourceType.getElementType() != resultType.getElementType()) in canFoldIntoConsumerOp() 529 if (sourceType.getRank() != resultType.getRank()) in canFoldIntoConsumerOp() 535 if (failed(getStridesAndOffset(sourceType, sourceStrides, sourceOffset)) || in canFoldIntoConsumerOp() 540 for (auto it : llvm::zip(sourceType.getShape(), resultType.getShape())) { in canFoldIntoConsumerOp() 865 MemRefType sourceType = getSourceType(); in getDroppedDims() local 2439 MemRefType sourceType, ArrayRef<OpFoldResult> mixedOffsets, in getCanonicalSubViewResultType() argument 2467 MemRefType currentResultType, MemRefType sourceType, in getCanonicalSubViewResultType() argument 2470 return getCanonicalSubViewResultType(currentResultType, sourceType, in getCanonicalSubViewResultType() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/ |
| H A D | LinalgOps.cpp | 1771 auto sourceType = src.getType().cast<RankedTensorType>(); in populateMap() local 1778 ArrayRef<int64_t> sourceShape = sourceType.getShape(); in populateMap() 1791 if (sourceType.isDynamicDim(i)) in populateMap() 1813 auto sourceType = src.getType().cast<RankedTensorType>(); in createNewOperandWithStaticSizes() local 1814 Type resultType = sourceType; in createNewOperandWithStaticSizes() 1815 if (sourceType.hasStaticShape() && linalgOp.isOutputTensor(opOperand)) { in createNewOperandWithStaticSizes() 1819 ArrayRef<int64_t> sourceShape = sourceType.getShape(); in createNewOperandWithStaticSizes() 1829 !sourceType.isDynamicDim(i)) { in createNewOperandWithStaticSizes() 1839 resultType = RankedTensorType::get(newShape, sourceType.getElementType()); in createNewOperandWithStaticSizes()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | Transforms.cpp | 793 auto sourceType = padOp.getSourceType(); in matchAndRewrite() local 796 for (unsigned dim = 0; dim < sourceType.getRank(); ++dim) { in matchAndRewrite() 797 if (sourceType.isDynamicDim(dim)) { in matchAndRewrite() 801 srcSizes.push_back(rewriter.getIndexAttr(sourceType.getDimSize(dim))); in matchAndRewrite() 805 SmallVector<OpFoldResult> strides(sourceType.getRank(), in matchAndRewrite()
|
| H A D | Vectorization.cpp | 692 auto sourceType = padOp.getSourceType(); in tryVectorizeCopy() local 700 if (!sourceType.hasStaticShape()) in tryVectorizeCopy() 703 auto elemType = sourceType.getElementType(); in tryVectorizeCopy() 711 for (unsigned i = 0; i < sourceType.getRank(); ++i) { in tryVectorizeCopy() 712 if (!sourceType.isDynamicDim(i)) { in tryVectorizeCopy() 713 vecShape.push_back(sourceType.getDimSize(i)); in tryVectorizeCopy() 736 auto vecType = VectorType::get(vecShape, sourceType.getElementType()); in tryVectorizeCopy()
|
| H A D | DropUnitDims.cpp | 497 RankedTensorType sourceType = insertSliceOp.getSourceType(); in matchAndRewrite() local 503 reassociation->size() == static_cast<size_t>(sourceType.getRank())) in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | check-allocate.cpp | 565 const evaluate::DynamicType &sourceType{ in RunCoarrayRelatedChecks() local 567 if (const auto *derived{evaluate::GetDerivedTypeSpec(sourceType)}) { in RunCoarrayRelatedChecks()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToSCF/ |
| H A D | VectorToSCF.cpp | 1032 auto sourceType = isTensorOp(xferOp) ? xferOp.getShapedType() : Type(); in matchAndRewrite() local 1041 isTensorOp(xferOp) ? TypeRange(sourceType) : TypeRange(), in matchAndRewrite() 1057 loc, sourceType, extracted, source, xferIndices, in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Utils/ |
| H A D | ReshapeOpsUtils.h | 69 getReassociationIndicesForReshape(ShapedType sourceType, ShapedType targetType);
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | InferIntRangeInterfaceImpls.cpp | 525 Type sourceType = getOperand().getType(); in inferResultRanges() local 527 unsigned srcWidth = ConstantIntRanges::getStorageBitwidth(sourceType); in inferResultRanges()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/ |
| H A D | ConvertVectorToLLVM.cpp | 769 auto sourceType = insertOp.getSourceType(); in matchAndRewrite() local 786 if (sourceType.isa<VectorType>()) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Vector/IR/ |
| H A D | VectorOps.cpp | 4534 auto sourceType = getMemRefType(); in verify() local 4536 if (getElementTypeOrSelf(getElementTypeOrSelf(sourceType)) != in verify() 4541 if (extractShape(sourceType) != extractShape(resultType)) in verify()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 3952 Type sourceType = in verify() local 3955 if (targetType != sourceType) in verify()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/Tensor/IR/ |
| H A D | TensorOps.td | 991 RankedTensorType sourceType,
|