Home
last modified time | relevance | path

Searched refs:oldType (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorDropLeadUnitDim.cpp24 static VectorType trimLeadingOneDims(VectorType oldType) { in trimLeadingOneDims() argument
25 ArrayRef<int64_t> oldShape = oldType.getShape(); in trimLeadingOneDims()
31 return VectorType::get(newShape, oldType.getElementType()); in trimLeadingOneDims()
204 VectorType oldType = read.getVectorType(); in matchAndRewrite() local
205 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite()
207 if (newType == oldType) in matchAndRewrite()
226 rewriter.replaceOpWithNewOp<vector::BroadcastOp>(read, oldType, newRead); in matchAndRewrite()
252 VectorType oldType = write.getVectorType(); in matchAndRewrite() local
253 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite()
254 if (newType == oldType) in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Func/IR/
H A DFuncOps.cpp307 FunctionType oldType = getFunctionType(); in clone() local
309 unsigned oldNumArgs = oldType.getNumInputs(); in clone()
314 newInputs.push_back(oldType.getInput(i)); in clone()
319 newFunc.setType(FunctionType::get(oldType.getContext(), newInputs, in clone()
320 oldType.getResults())); in clone()
/llvm-project-15.0.7/lld/wasm/
H A DSymbolTable.cpp162 const WasmGlobalType *oldType = cast<GlobalSymbol>(existing)->getGlobalType(); in checkGlobalType() local
163 if (*newType != *oldType) { in checkGlobalType()
165 toString(*oldType) + " in " + toString(existing->getFile()) + in checkGlobalType()
193 const WasmTableType *oldType = cast<TableSymbol>(existing)->getTableType(); in checkTableType() local
194 if (newType->ElemType != oldType->ElemType) { in checkTableType()
196 toString(*oldType) + " in " + toString(existing->getFile()) + in checkTableType()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaInferShapes.cpp50 auto oldType = blockArg.getType().cast<ShapedType>(); in propagateShapesToTosaIf() local
53 Type newType = oldType.clone(inferredTy.getDims()); in propagateShapesToTosaIf()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgOps.cpp1908 Type oldType = oldResult.getType(); in matchAndRewrite() local
1910 (newType != oldType) in matchAndRewrite()
1911 ? rewriter.create<tensor::CastOp>(loc, oldType, newResult) in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/IR/
H A DSCF.cpp784 Type oldType = operand.get().getType(), newType = replacement.getType(); in replaceTensorCastForOpIterArg() local
785 assert(oldType.isa<RankedTensorType>() && newType.isa<RankedTensorType>() && in replaceTensorCastForOpIterArg()
818 Value castIn = rewriter.create<tensor::CastOp>(newForOp.getLoc(), oldType, in replaceTensorCastForOpIterArg()
842 newForOp.getLoc(), oldType, newResults[yieldIdx]); in replaceTensorCastForOpIterArg()
/llvm-project-15.0.7/clang/lib/Sema/
H A DTreeTransform.h6852 const AttributedType *oldType = TL.getTypePtr(); in TransformAttributedType() local
6867 modifiedType != oldType->getModifiedType()) { in TransformAttributedType()
6871 = getDerived().TransformType(oldType->getEquivalentType()); in TransformAttributedType()
6877 if (auto nullability = oldType->getImmediateNullability()) { in TransformAttributedType()