Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenExprConstant.cpp93 mlir::Attribute VisitCastExpr(CastExpr *e, QualType destType) { in VisitCastExpr() argument
114 return Visit(subExpr, destType); in VisitCastExpr()
241 QualType destType) { in VisitDesignatedInitUpdateExpr() argument
242 mlir::Attribute c = Visit(e->getBase(), destType); in VisitDesignatedInitUpdateExpr()
353 QualType destType; member in __anon56f2e7ec0111::ConstantLValueEmitter
360 QualType destType) in ConstantLValueEmitter() argument
361 : cgm(emitter.cgm), emitter(emitter), value(value), destType(destType) {} in ConstantLValueEmitter()
397 mlir::Type destTy = cgm.getTypes().convertTypeForMem(destType); in tryEmit()
618 QualType destType = d.getType(); in tryEmitPrivateForVarInit() local
620 if (!destType->isReferenceType()) { in tryEmitPrivateForVarInit()
[all …]
H A DCIRGenBuilder.h276 mlir::Value createFloatingCast(mlir::Value v, mlir::Type destType) { in createFloatingCast() argument
279 return create<cir::CastOp>(v.getLoc(), destType, cir::CastKind::floating, in createFloatingCast()
314 mlir::Type destType, unsigned offset, in createBaseClassAddr() argument
316 if (destType == addr.getElementType()) in createBaseClassAddr()
319 auto ptrTy = getPointerTo(destType); in createBaseClassAddr()
322 return Address(baseAddr, destType, addr.getAlignment()); in createBaseClassAddr()
328 mlir::Type destType) { in createElementBitCast() argument
329 if (destType == addr.getElementType()) in createElementBitCast()
332 auto ptrTy = getPointerTo(destType); in createElementBitCast()
333 return Address(createBitcast(loc, addr.getPointer(), ptrTy), destType, in createElementBitCast()
H A DCIRGenConstantEmitter.h104 mlir::Attribute tryEmitPrivate(const APValue &value, QualType destType);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1186 llvm::Constant *VisitCastExpr(const CastExpr *E, QualType destType) { in VisitCastExpr() argument
1202 auto destTy = ConvertType(destType); in VisitCastExpr()
1243 return Visit(E->getInitializer(), destType); in VisitCastExpr()
1251 return Visit(subExpr, destType); in VisitCastExpr()
1258 if (Visit(subExpr, destType)) in VisitCastExpr()
1259 return CGM.EmitNullConstant(destType); in VisitCastExpr()
1266 return ProduceIntToIntCast(subExpr, destType); in VisitCastExpr()
1495 QualType destType) { in VisitDesignatedInitUpdateExpr() argument
1496 auto C = Visit(E->getBase(), destType); in VisitDesignatedInitUpdateExpr()
1503 if (!EmitDesignatedInitUpdater(Emitter, Const, CharUnits::Zero(), destType, in VisitDesignatedInitUpdateExpr()
[all …]
H A DConstantEmitter.h77 QualType destType);
79 QualType destType);
H A DCGCall.cpp4410 llvm::PointerType *destType = in emitWritebackArg() local
4417 args.add(RValue::get(llvm::ConstantPointerNull::get(destType)), in emitWritebackArg()
4453 isNull, llvm::ConstantPointerNull::get(destType), in emitWritebackArg()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaRISCV.h42 bool isValidRVVBitcast(QualType srcType, QualType destType);
H A DSemaObjC.h850 void EmitRelatedResultTypeNoteForReturn(QualType destType);
H A DSema.h7432 CastKind PrepareScalarCast(ExprResult &src, QualType destType);
7843 bool isValidSveBitcast(QualType srcType, QualType destType);
7849 bool areVectorTypesSameSize(QualType srcType, QualType destType);
7858 bool areLaxCompatibleVectorTypes(QualType srcType, QualType destType);
7862 bool isLaxVectorConversion(QualType srcType, QualType destType);
7865 bool anyAltivecTypes(QualType srcType, QualType destType);
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaCast.cpp61 CastOperation(Sema &S, QualType destType, ExprResult src) in CastOperation()
62 : Self(S), SrcExpr(src), DestType(destType), in CastOperation()
63 ResultType(destType.getNonLValueExprType(S.Context)), in CastOperation()
64 ValueKind(Expr::getValueKindForType(destType)), in CastOperation()
462 Expr *src, QualType destType, in tryDiagnoseOverloadedCast() argument
480 if (!destType->isRecordType() && !srcType->isRecordType()) in tryDiagnoseOverloadedCast()
483 InitializedEntity entity = InitializedEntity::InitializeTemporary(destType); in tryDiagnoseOverloadedCast()
518 if (destType->isArrayType()) in tryDiagnoseOverloadedCast()
556 << CT << srcType << destType << (Msg != nullptr) in tryDiagnoseOverloadedCast()
566 S.PDiag(msg) << CT << srcType << destType << range in tryDiagnoseOverloadedCast()
[all …]
H A DSemaExprObjC.cpp1655 void SemaObjC::EmitRelatedResultTypeNoteForReturn(QualType destType) { in EmitRelatedResultTypeNoteForReturn() argument
1661 Context.hasSameUnqualifiedType(destType, MD->getReturnType())) in EmitRelatedResultTypeNoteForReturn()
5044 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType() local
5046 LHS = SemaRef.ImpCastExprToType(LHS.get(), destType, CK_NoOp); in FindCompositeObjCPointerType()
5048 RHS = SemaRef.ImpCastExprToType(RHS.get(), destType, CK_BitCast); in FindCompositeObjCPointerType()
5049 return destType; in FindCompositeObjCPointerType()
5065 QualType destType = Context.getPointerType(destPointee); in FindCompositeObjCPointerType() local
5067 RHS = SemaRef.ImpCastExprToType(RHS.get(), destType, CK_NoOp); in FindCompositeObjCPointerType()
5069 LHS = SemaRef.ImpCastExprToType(LHS.get(), destType, CK_BitCast); in FindCompositeObjCPointerType()
5070 return destType; in FindCompositeObjCPointerType()
H A DAnalysisBasedWarnings.cpp2476 QualType destType = ECE->getType(); in handleUnsafeOperation() local
2479 if (!isa<PointerType>(destType)) in handleUnsafeOperation()
2481 destType = destType.getTypePtr()->getPointeeType(); in handleUnsafeOperation()
2482 if (const auto *D = destType->getAsTagDecl()) in handleUnsafeOperation()
2488 const uint64_t dSize = Ctx.getTypeSize(destType); in handleUnsafeOperation()
H A DSemaExpr.cpp8220 QualType destType = S.Context.getPointerType(S.Context.VoidTy); in checkConditionalBlockPointerCompatibility() local
8221 LHS = S.ImpCastExprToType(LHS.get(), destType, CK_BitCast); in checkConditionalBlockPointerCompatibility()
8222 RHS = S.ImpCastExprToType(RHS.get(), destType, CK_BitCast); in checkConditionalBlockPointerCompatibility()
8223 return destType; in checkConditionalBlockPointerCompatibility()
8253 QualType destType = S.Context.getPointerType(destPointee); in checkConditionalObjectPointersCompatibility() local
8255 LHS = S.ImpCastExprToType(LHS.get(), destType, CK_NoOp); in checkConditionalObjectPointersCompatibility()
8257 RHS = S.ImpCastExprToType(RHS.get(), destType, CK_BitCast); in checkConditionalObjectPointersCompatibility()
8258 return destType; in checkConditionalObjectPointersCompatibility()
8263 QualType destType = S.Context.getPointerType(destPointee); in checkConditionalObjectPointersCompatibility() local
8265 RHS = S.ImpCastExprToType(RHS.get(), destType, CK_NoOp); in checkConditionalObjectPointersCompatibility()
[all …]
H A DSemaInit.cpp8786 QualType destType = entity.getType(); in emitBadConversionNotes() local
8787 if (destType.getNonReferenceType()->isObjCObjectPointerType() && in emitBadConversionNotes()
8797 S.ObjC().EmitRelatedResultTypeNoteForReturn(destType); in emitBadConversionNotes()
8801 QualType destPointeeType = destType.getCanonicalType()->getPointeeType(); in emitBadConversionNotes()
8803 auto *destDecl = destType->getPointeeCXXRecordDecl(); in emitBadConversionNotes()