| /llvm-project-15.0.7/mlir/lib/Dialect/Bufferization/IR/ |
| H A D | BufferizationOps.cpp | 28 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 D | CGExprConstant.cpp | 1078 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 D | ConstantEmitter.h | 74 QualType destType); 76 QualType destType);
|
| H A D | CGExpr.cpp | 58 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 D | CGCall.cpp | 3941 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 D | InferIntRangeInterfaceImpls.cpp | 474 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 D | WmmaOpsToNvvm.cpp | 225 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 D | SemaCast.cpp | 58 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 D | SemaExpr.cpp | 8341 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 D | SemaInit.cpp | 8972 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 D | SemaExprObjC.cpp | 1657 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 D | VectorTransforms.cpp | 2809 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 D | TensorOps.cpp | 537 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 D | Sema.h | 5741 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);
|