Home
last modified time | relevance | path

Searched refs:destType (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/
H A DBufferizationOps.cpp28 MemRefType destType) { in castOrReallocMemRefValue() argument
32 if (srcType.getElementType() != destType.getElementType()) in castOrReallocMemRefValue()
36 if (srcType.getRank() != destType.getRank()) in castOrReallocMemRefValue()
63 if (memref::CastOp::areCastCompatible(srcType, destType) && in castOrReallocMemRefValue()
64 isGuaranteedCastCompatible(srcType, destType)) { in castOrReallocMemRefValue()
71 for (int i = 0; i < destType.getRank(); ++i) { in castOrReallocMemRefValue()
72 if (destType.getShape()[i] != ShapedType::kDynamicSize) in castOrReallocMemRefValue()
95 Type destType = toMemref.getType(); in foldToMemrefToTensorPair() local
98 if (srcType == destType) { in foldToMemrefToTensorPair()
104 auto rankedDestType = destType.dyn_cast<MemRefType>(); in foldToMemrefToTensorPair()
[all …]
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprConstant.cpp1078 auto destTy = ConvertType(destType); in VisitCastExpr()
1128 return Visit(subExpr, destType); in VisitCastExpr()
1293 auto C = Visit(E->getBase(), destType); in VisitDesignatedInitUpdateExpr()
1384 auto C = tryEmitPrivate(E, destType); in tryEmitAbstract()
1412 auto C = tryEmitPrivate(E, destType); in emitAbstract()
1417 C = CGM.EmitNullConstant(destType); in emitAbstract()
1431 C = CGM.EmitNullConstant(destType); in emitAbstract()
1658 QualType destType = D.getType(); in tryEmitPrivateForVarInit() local
1672 if (destType->isReferenceType()) in tryEmitPrivateForVarInit()
1752 if (destType->isReferenceType()) in tryEmitPrivate()
[all …]
H A DConstantEmitter.h74 QualType destType);
76 QualType destType);
H A DCGExpr.cpp58 llvm::PointerType *destType = Int8PtrTy; in EmitCastToVoidPtr() local
60 destType = llvm::Type::getInt8PtrTy(getLLVMContext(), addressSpace); in EmitCastToVoidPtr()
62 if (value->getType() == destType) return value; in EmitCastToVoidPtr()
63 return Builder.CreateBitCast(value, destType); in EmitCastToVoidPtr()
H A DCGCall.cpp3941 llvm::PointerType *destType = in emitWritebackArg() local
3948 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)), in emitWritebackArg()
3985 llvm::ConstantPointerNull::get(destType), in emitWritebackArg()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DInferIntRangeInterfaceImpls.cpp474 Type destType = getResult().getType(); in inferResultRanges() local
475 unsigned destWidth = ConstantIntRanges::getStorageBitwidth(destType); in inferResultRanges()
486 Type destType) { in extSIRange() argument
495 Type destType = getResult().getType(); in inferResultRanges() local
496 setResultRange(getResult(), extSIRange(argRanges[0], destType)); in inferResultRanges()
504 Type destType) { in truncIRange() argument
515 Type destType = getResult().getType(); in inferResultRanges() local
516 setResultRange(getResult(), truncIRange(argRanges[0], destType)); in inferResultRanges()
526 Type destType = getResult().getType(); in inferResultRanges() local
531 setResultRange(getResult(), extSIRange(argRanges[0], destType)); in inferResultRanges()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DWmmaOpsToNvvm.cpp225 NVVM::MMATypes destType = getElementType(cType); in matchAndRewrite() local
227 destType) == 0) in matchAndRewrite()
236 destType, unpackedOps); in matchAndRewrite()
334 LLVM::LLVMStructType destType = convertMMAToLLVMType( in matchAndRewrite() local
336 Value matrixStruct = rewriter.create<LLVM::UndefOp>(loc, destType); in matchAndRewrite()
337 for (size_t i = 0, e = destType.getBody().size(); i < e; ++i) { in matchAndRewrite()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaCast.cpp58 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
59 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
60 ResultType(destType.getNonLValueExprType(S.Context)), in CastOperation()
61 ValueKind(Expr::getValueKindForType(destType)), in CastOperation()
418 QualType destType, in tryDiagnoseOverloadedCast() argument
436 if (!destType->isRecordType() && !srcType->isRecordType()) in tryDiagnoseOverloadedCast()
439 InitializedEntity entity = InitializedEntity::InitializeTemporary(destType); in tryDiagnoseOverloadedCast()
485 S.PDiag(msg) << CT << srcType << destType << range in tryDiagnoseOverloadedCast()
497 tryDiagnoseOverloadedCast(S, castType, opRange, src, destType, in diagnoseBadCast()
502 << src->getType() << destType << opRange << src->getSourceRange(); in diagnoseBadCast()
[all …]
H A DSemaExpr.cpp8341 return destType; in checkConditionalBlockPointerCompatibility()
8373 LHS = S.ImpCastExprToType(LHS.get(), destType, CK_NoOp); in checkConditionalObjectPointersCompatibility()
8376 return destType; in checkConditionalObjectPointersCompatibility()
8383 RHS = S.ImpCastExprToType(RHS.get(), destType, CK_NoOp); in checkConditionalObjectPointersCompatibility()
8386 return destType; in checkConditionalObjectPointersCompatibility()
8893 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType() local
8895 LHS = ImpCastExprToType(LHS.get(), destType, CK_NoOp); in FindCompositeObjCPointerType()
8898 return destType; in FindCompositeObjCPointerType()
8913 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType() local
8915 RHS = ImpCastExprToType(RHS.get(), destType, CK_NoOp); in FindCompositeObjCPointerType()
[all …]
H A DSemaInit.cpp8972 QualType destType = entity.getType(); in emitBadConversionNotes() local
8973 if (destType.getNonReferenceType()->isObjCObjectPointerType() && in emitBadConversionNotes()
8983 S.EmitRelatedResultTypeNoteForReturn(destType); in emitBadConversionNotes()
8987 QualType destPointeeType = destType.getCanonicalType()->getPointeeType(); in emitBadConversionNotes()
8989 auto *destDecl = destType->getPointeeCXXRecordDecl(); in emitBadConversionNotes()
H A DSemaExprObjC.cpp1657 void Sema::EmitRelatedResultTypeNoteForReturn(QualType destType) { in EmitRelatedResultTypeNoteForReturn() argument
1662 Context.hasSameUnqualifiedType(destType, MD->getReturnType())) in EmitRelatedResultTypeNoteForReturn()
/llvm-project-15.0.7/mlir/lib/Dialect/Vector/Transforms/
H A DVectorTransforms.cpp2809 VectorType destType = scanOp.getDestType(); in matchAndRewrite() local
2810 ArrayRef<int64_t> destShape = destType.getShape(); in matchAndRewrite()
2811 auto elType = destType.getElementType(); in matchAndRewrite()
2821 int64_t destRank = destType.getRank(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/
H A DTensorOps.cpp537 if (auto destType = getDest().getType().dyn_cast<RankedTensorType>()) in verify() local
538 if (destType.getRank() != static_cast<int64_t>(getIndices().size())) in verify()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5741 CastKind PrepareScalarCast(ExprResult &src, QualType destType);
12259 bool isValidSveBitcast(QualType srcType, QualType destType);
12263 bool areVectorTypesSameSize(QualType srcType, QualType destType);
12264 bool areLaxCompatibleVectorTypes(QualType srcType, QualType destType);
12265 bool isLaxVectorConversion(QualType srcType, QualType destType);
12266 bool areSameVectorElemTypes(QualType srcType, QualType destType);
12267 bool anyAltivecTypes(QualType srcType, QualType destType);
12413 void EmitRelatedResultTypeNoteForReturn(QualType destType);