Home
last modified time | relevance | path

Searched refs:newType (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project-15.0.7/flang/test/Semantics/
H A Ddata04.f90113 type newType type
116 type(newType) m2_number1
120 type(newType) m2_number
121 type(newType) m2_number3
136 type(newType) m2_number2
/llvm-project-15.0.7/mlir/lib/Dialect/SCF/Transforms/
H A DStructuralTypeConversions.cpp27 Type newType = typeConverter->convertType(type); in matchAndRewrite() local
28 if (!newType) in matchAndRewrite()
30 newResultTypes.push_back(newType); in matchAndRewrite()
95 Type newType = typeConverter->convertType(type); in matchAndRewrite() local
96 if (!newType) in matchAndRewrite()
98 newResultTypes.push_back(newType); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/IR/
H A DFunctionInterfaces.cpp117 unsigned originalNumArgs, Type newType) { in insertFunctionArguments() argument
155 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in insertFunctionArguments()
163 Type newType) { in insertFunctionResults() argument
199 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in insertFunctionResults()
203 Operation *op, const BitVector &argIndices, Type newType) { in eraseFunctionArguments() argument
221 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionArguments()
226 Operation *op, const BitVector &resultIndices, Type newType) { in eraseFunctionResults() argument
242 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in eraseFunctionResults()
280 Type newType) { in setFunctionType() argument
284 op->setAttr(getTypeAttrName(), TypeAttr::get(newType)); in setFunctionType()
H A DBuiltinAttributes.cpp1276 DenseElementsAttr DenseElementsAttr::reshape(ShapedType newType) { in reshape() argument
1278 if (curType == newType) in reshape()
1281 assert(newType.getElementType() == curType.getElementType() && in reshape()
1283 assert(newType.getNumElements() == curType.getNumElements() && in reshape()
1285 return DenseIntOrFPElementsAttr::getRaw(newType, getRawData()); in reshape()
1288 DenseElementsAttr DenseElementsAttr::resizeSplat(ShapedType newType) { in resizeSplat() argument
1292 if (curType == newType) in resizeSplat()
1295 assert(newType.getElementType() == curType.getElementType() && in resizeSplat()
1297 return DenseIntOrFPElementsAttr::getRaw(newType, getRawData()); in resizeSplat()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorDropLeadUnitDim.cpp205 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite() local
207 if (newType == oldType) in matchAndRewrite()
212 oldMap.getResults().take_back(newType.getRank()); in matchAndRewrite()
220 read.getInBoundsAttr().getValue().take_back(newType.getRank())); in matchAndRewrite()
223 read.getLoc(), newType, read.getSource(), read.getIndices(), in matchAndRewrite()
253 VectorType newType = trimLeadingOneDims(oldType); in matchAndRewrite() local
254 if (newType == oldType) in matchAndRewrite()
256 int64_t dropDim = oldType.getRank() - newType.getRank(); in matchAndRewrite()
260 oldMap.getResults().take_back(newType.getRank()); in matchAndRewrite()
268 write.getInBoundsAttr().getValue().take_back(newType.getRank())); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DFunctionInterfaces.h79 unsigned originalNumArgs, Type newType);
85 unsigned originalNumResults, Type newType);
89 Type newType);
93 Type newType);
96 void setFunctionType(Operation *op, Type newType);
H A DFunctionInterfaces.td239 void setType(Type newType) {
240 function_interface_impl::setFunctionType(this->getOperation(), newType);
306 Type newType = $_op.getTypeWithArgsAndResults(
310 originalNumArgs, newType);
326 Type newType = $_op.getTypeWithArgsAndResults(
330 originalNumResults, newType);
342 Type newType = $_op.getTypeWithoutArgs(argIndices);
344 this->getOperation(), argIndices, newType);
356 Type newType = $_op.getTypeWithoutResults(resultIndices);
358 this->getOperation(), resultIndices, newType);
H A DAttributeSupport.h149 void setType(Type newType) { type = newType; } in setType() argument
H A DValue.h129 void setType(Type newType) { impl->setType(newType); } in setType() argument
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaInferShapes.cpp53 Type newType = oldType.clone(inferredTy.getDims()); in propagateShapesToTosaIf() local
54 blockArg.setType(newType); in propagateShapesToTosaIf()
151 Type newType = yieldTypeInfo[i].getType(); in propagateShapesToTosaWhile() local
152 hasNewTypes |= (newType != argTypes[i]); in propagateShapesToTosaWhile()
153 argTypes[i] = newType; in propagateShapesToTosaWhile()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/Transforms/
H A DMultiBuffer.cpp46 Type newType = memref::SubViewOp::inferRankReducedResultType( in replaceUsesAndPropagateType() local
52 subviewUse->getLoc(), newType.cast<MemRefType>(), val, in replaceUsesAndPropagateType()
/llvm-project-15.0.7/lld/wasm/
H A DSymbolTable.cpp156 const WasmGlobalType *newType) { in checkGlobalType() argument
163 if (*newType != *oldType) { in checkGlobalType()
166 "\n>>> defined as " + toString(*newType) + " in " + toString(file)); in checkGlobalType()
187 const WasmTableType *newType) { in checkTableType() argument
194 if (newType->ElemType != oldType->ElemType) { in checkTableType()
197 "\n>>> defined as " + toString(*newType) + " in " + toString(file)); in checkTableType()
H A DSymbols.cpp383 auto *newType = make<WasmTableType>(*tableType); in setLimits() local
384 newType->Limits = limits; in setLimits()
385 tableType = newType; in setLimits()
/llvm-project-15.0.7/lld/ELF/Arch/
H A DPPC.cpp312 RelType newType; in relocate() local
313 std::tie(newType, val) = fromDTPREL(rel.type, val); in relocate()
314 switch (newType) { in relocate()
H A DRISCV.cpp769 } else if (RelType newType = aux.relocTypes[i]) { in riscvFinalizeRelax() local
770 switch (newType) { in riscvFinalizeRelax()
/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizationOps.cpp318 RankedTensorType newType = RankedTensorType::get( in matchAndRewrite() local
320 if (newType == op.getType()) in matchAndRewrite()
323 op.getLoc(), newType, newDynamicSizes, /*copy=*/Value()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/ExecutionEngine/
H A DExecutionEngine.cpp168 auto *newType = llvm::FunctionType::get( in packFunctionArguments() local
172 auto funcCst = module->getOrInsertFunction(newName, newType); in packFunctionArguments()
/llvm-project-15.0.7/mlir/test/Conversion/PDLToPDLInterp/
H A Dpdl-to-pdl-interp-rewriter.mlir223 %newType = apply_native_rewrite "functor"(%root : !pdl.operation) : !pdl.type
224 %newOp = operation "foo.op" -> (%newType : !pdl.type)
/llvm-project-15.0.7/clang/lib/AST/
H A DASTContext.cpp3751 auto *newType in getDependentSizedArrayType() local
3756 Types.push_back(newType); in getDependentSizedArrayType()
3837 Types.push_back(newType); in getIncompleteArrayType()
4590 Type *newType = in getInjectedClassNameType() local
4593 Types.push_back(newType); in getInjectedClassNameType()
4637 Types.push_back(newType); in getTypedefType()
4671 Types.push_back(newType); in getRecordType()
4684 Types.push_back(newType); in getEnumType()
4700 Types.push_back(newType); in getUnresolvedUsingType()
5039 Types.push_back(newType); in getMacroQualifiedType()
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DSplitReduction.cpp148 Type newType = RankedTensorType::get( in splitReduction() local
152 loc, newType, operand->get(), reassociation); in splitReduction()
/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DPolynomialApproximation.cpp312 Type newType; in insertCasts() local
314 newType = shaped.clone(rewriter.getF32Type()); in insertCasts()
316 newType = rewriter.getF32Type(); in insertCasts()
325 operands.push_back(rewriter.create<arith::ExtFOp>(loc, newType, operand)); in insertCasts()
326 auto result = rewriter.create<math::Atan2Op>(loc, newType, operands); in insertCasts()
/llvm-project-15.0.7/lld/COFF/
H A DPDB.cpp371 TypeIndex newType = TypeIndex(SimpleTypeKind::NotTranslated); in translateIdSymbols() local
375 newType = idToType->second; in translateIdSymbols()
381 newType = *reinterpret_cast<const TypeIndex *>(&funcIdData.data()[8]); in translateIdSymbols()
385 if (newType == TypeIndex(SimpleTypeKind::NotTranslated)) { in translateIdSymbols()
391 *ti = newType; in translateIdSymbols()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgOps.cpp1285 RankedTensorType newType = in matchAndRewrite() local
1287 if (newType == op.getType()) in matchAndRewrite()
1290 rewriter.create<InitTensorOp>(op.getLoc(), newType, dynamicSizes, in matchAndRewrite()
1907 Type newType = newResult.getType(); in matchAndRewrite() local
1910 (newType != oldType) in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffinePromotion.cpp409 auto newType = mlir::MemRefType::get({-1}, arrayElementType); in createAffineOps() local
410 auto arrayConvert = rewriter.create<fir::ConvertOp>(acoOp.getLoc(), newType, in createAffineOps()
/llvm-project-15.0.7/flang/lib/Semantics/
H A Dtype.cpp422 if (const DeclTypeSpec * newType{InstantiateType(newSymbol)}) { in InstantiateComponent() local
423 details->ReplaceType(*newType); in InstantiateComponent()

12