Searched refs:DestTy (Results 26 - 50 of 68) sorted by relevance

123

/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp509 Type *DestTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); local
511 PointerType::get(DestTy, PtrVal->getType()->getPointerAddressSpace());
514 LoadInst *NewLoad = Builder.CreateLoad(DestTy, PtrVal);
H A DSCCPSolver.cpp785 Type *DestTy = I.getDestTy(); local
793 OpRange.getBitWidth() < DL.getTypeSizeInBits(DestTy))
797 OpRange.castOp(I.getOpcode(), DL.getTypeSizeInBits(DestTy));
/netbsd-current/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprComplex.cpp176 ComplexPairTy EmitCast(CastKind CK, Expr *Op, QualType DestTy);
457 QualType DestTy) {
473 V = Builder.CreateElementBitCast(V, CGF.ConvertType(DestTy));
474 return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy), Op->getExprLoc());
480 CGF.ConvertTypeForMem(DestTy));
481 LValue DestLV = CGF.MakeAddrLValue(Addr, DestTy);
543 DestTy, Op->getExprLoc());
551 return EmitComplexToComplexCast(Visit(Op), Op->getType(), DestTy,
456 EmitCast(CastKind CK, Expr *Op, QualType DestTy) argument
H A DCGExprCXX.cpp2220 QualType DestTy) {
2221 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
2222 if (DestTy->isPointerType())
2237 QualType DestTy = DCE->getTypeAsWritten(); local
2244 const PointerType *DestPTy = DestTy->getAs<PointerType>();
2256 DestRecordTy = DestTy->castAs<ReferenceType>()->getPointeeType();
2268 if (llvm::Value *T = EmitDynamicCastToNull(*this, DestTy))
2296 DestTy);
2301 DestTy, DestRecordTy, CastEnd);
2219 EmitDynamicCastToNull(CodeGenFunction &CGF, QualType DestTy) argument
H A DCGCXXABI.h267 QualType SrcRecordTy, QualType DestTy,
273 QualType DestTy) = 0;
H A DCGDeclCXX.cpp124 auto DestTy = CGF.getTypes().ConvertType(Type)->getPointerTo( local
128 Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy);
132 Argument = llvm::ConstantPointerNull::get(DestTy);
H A DCGObjC.cpp3682 QualType DestTy = C.getPointerType(Ty);
3688 ArgTys.push_back(DestTy);
3697 ImplicitParamDecl DstDecl(C, FD, SourceLocation(), /*Id=*/nullptr, DestTy,
3718 DeclRefExpr DstExpr(C, &DstDecl, false, DestTy, VK_RValue, SourceLocation());
3720 C, &DstExpr, UO_Deref, DestTy->getPointeeType(), VK_LValue, OK_Ordinary,
3731 C, OO_Equal, CalleeExp->getCallee(), Args, DestTy->getPointeeType(),
3766 QualType DestTy = C.getPointerType(Ty);
3772 ArgTys.push_back(DestTy);
3781 ImplicitParamDecl DstDecl(C, FD, SourceLocation(), /*Id=*/nullptr, DestTy,
3828 DeclRefExpr DstExpr(getContext(), &DstDecl, false, DestTy, VK_RValu
[all...]
H A DItaniumCXXABI.cpp189 QualType SrcRecordTy, QualType DestTy,
195 QualType DestTy) override;
1482 QualType DestTy, QualType DestRecordTy, llvm::BasicBlock *CastEnd) {
1485 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
1509 if (DestTy->isReferenceType()) {
1526 QualType DestTy) {
1527 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
1480 EmitDynamicCastCall( CodeGenFunction &CGF, Address ThisAddr, QualType SrcRecordTy, QualType DestTy, QualType DestRecordTy, llvm::BasicBlock *CastEnd) argument
1523 EmitDynamicCastToVoid(CodeGenFunction &CGF, Address ThisAddr, QualType SrcRecordTy, QualType DestTy) argument
H A DMicrosoftCXXABI.cpp152 QualType SrcRecordTy, QualType DestTy,
158 QualType DestTy) override;
995 QualType DestTy, QualType DestRecordTy, llvm::BasicBlock *CastEnd) {
996 llvm::Type *DestLTy = CGF.ConvertType(DestTy);
1022 llvm::ConstantInt::get(CGF.Int32Ty, DestTy->isReferenceType())};
1030 QualType DestTy) {
993 EmitDynamicCastCall( CodeGenFunction &CGF, Address This, QualType SrcRecordTy, QualType DestTy, QualType DestRecordTy, llvm::BasicBlock *CastEnd) argument
1028 EmitDynamicCastToVoid(CodeGenFunction &CGF, Address Value, QualType SrcRecordTy, QualType DestTy) argument
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp748 Type* DestTy = CE->getType(); local
752 assert(DestTy->isFloatingPointTy() && "invalid bitcast");
753 if (DestTy->isFloatTy())
755 else if (DestTy->isDoubleTy())
759 assert(DestTy->isIntegerTy(32) && "Invalid bitcast");
763 assert(DestTy->isIntegerTy(64) && "Invalid bitcast");
767 assert(DestTy->isPointerTy() && "Invalid bitcast");
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp187 Type *DestTy = Ext.getType(); local
193 return new BitCastInst(Elt, DestTy);
235 bool NeedDestBitcast = DestTy->isFloatingPointTy();
240 unsigned DestWidth = DestTy->getPrimitiveSizeInBits();
264 return new BitCastInst(Builder.CreateTrunc(Scalar, DestIntTy), DestTy);
266 return new TruncInst(Scalar, DestTy);
1611 Type *DestTy = VectorType::get( local
1615 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
H A DInstCombineAndOrXor.cpp1575 Type *DestTy = Logic.getType(); local
1585 Constant *ZextTruncC = ConstantExpr::getZExt(TruncC, DestTy);
1589 return new ZExtInst(NewOp, DestTy);
1595 Constant *SextTruncC = ConstantExpr::getSExt(TruncC, DestTy);
1599 return new SExtInst(NewOp, DestTy);
1618 Type *DestTy = I.getType();
1643 return CastInst::Create(CastOpcode, NewOp, DestTy);
1658 return CastInst::Create(CastOpcode, Res, DestTy);
1668 return CastInst::Create(CastOpcode, R, DestTy);
H A DInstCombineLoadStoreAlloca.cpp416 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); local
421 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy);
433 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy);
H A DInstructionCombining.cpp341 Type *DestTy = C1->getType();
342 Constant *CastC2 = ConstantExpr::getCast(CastOpcode, C2, DestTy);
978 VectorType *DestTy = dyn_cast<VectorType>(BC->getDestTy()); local
982 if ((SrcTy == nullptr) != (DestTy == nullptr))
986 if (SrcTy && SrcTy->getElementCount() != DestTy->getElementCount())
/netbsd-current/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaCast.cpp1985 QualType SrcTy, DestTy;
1991 DestTy = DestType->getPointeeType();
1997 DestTy = DestType->getPointeeType();
2001 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) {
2005 if (DestTy->isAnyCharacterType() || DestTy->isVoidType() ||
2010 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
2015 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) ||
2016 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) {
2017 if (Context.getTypeSize(DestTy)
[all...]
H A DSemaExpr.cpp6539 ExprResult Sema::BuildAsTypeExpr(Expr *E, QualType DestTy, argument
6546 Context.getTypeSize(DestTy) != Context.getTypeSize(SrcTy))
6549 << DestTy << SrcTy << E->getSourceRange());
6550 return new (Context) AsTypeExpr(E, DestTy, VK, OK, BuiltinLoc, RParenLoc);
7097 CastKind Sema::PrepareScalarCast(ExprResult &Src, QualType DestTy) { argument
7103 if (Context.hasSameUnqualifiedType(SrcTy, DestTy))
7113 switch (DestTy->getScalarTypeKind()) {
7116 LangAS DestAS = DestTy->getPointeeType().getAddressSpace();
7119 if (Context.hasCvrSimilarType(SrcTy, DestTy))
7147 switch (DestTy
7358 areVectorTypesSameSize(QualType SrcTy, QualType DestTy) argument
7428 CheckMatrixCast(SourceRange R, QualType DestTy, QualType SrcTy, CastKind &Kind) argument
7502 CheckExtVectorCast(SourceRange R, QualType DestTy, Expr *CastExpr, CastKind &Kind) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DTypePromotion.cpp663 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]); local
665 unsigned NumBits = DestTy->getScalarSizeInBits();
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp345 Type *DestTy = II->getType(); local
348 Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
H A DLoopStrengthReduce.cpp2084 Type *DestTy = nullptr; local
2101 DestTy = UCast->getDestTy();
2105 DestTy = SCast->getDestTy();
2107 if (!DestTy) continue;
2109 // If target does not support DestTy natively then do not apply
2111 if (!TTI.isTypeLegal(DestTy)) continue;
2126 int Mantissa = DestTy->getFPMantissaWidth();
2142 Constant *NewInit = ConstantFP::get(DestTy, IsSigned ?
2169 PHINode *NewPH = PHINode::Create(DestTy, 2, "IV.S.", PH);
2172 Constant *CFP = ConstantFP::get(DestTy,
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/IR/
H A DIRBuilder.cpp845 Intrinsic::ID ID, Value *V, Type *DestTy,
868 C = CreateIntrinsic(ID, {DestTy, V->getType()}, {V, RoundingV, ExceptV},
871 C = CreateIntrinsic(ID, {DestTy, V->getType()}, {V, ExceptV}, nullptr,
844 CreateConstrainedFPCast( Intrinsic::ID ID, Value *V, Type *DestTy, Instruction *FMFSource, const Twine &Name, MDNode *FPMathTag, Optional<RoundingMode> Rounding, Optional<fp::ExceptionBehavior> Except) argument
H A DConstants.cpp2092 "SrcTy must be larger than DestTy for Trunc!");
2106 "SrcTy must be smaller than DestTy for SExt!");
2120 "SrcTy must be smaller than DestTy for ZExt!");
2440 Type *DestTy = GetElementPtrInst::getIndexedType(Ty, Idxs);
2441 assert(DestTy && "GEP indices invalid!");
2443 Type *ReqTy = DestTy->getPointerTo(AS);
2871 Type *SrcElementTy, Constant *C, ArrayRef<Constant *> IdxList, Type *DestTy)
2872 : ConstantExpr(DestTy, Instruction::GetElementPtr,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp1239 Type *DestTy) -> Value * {
1241 if (SrcTy == DestTy)
1251 {DestTy, Val->getType()});
1255 return Builder.CreateBitCast(Val, DestTy);
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.cpp1080 Type *DestTy = II->getType();
1083 Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
/netbsd-current/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseExpr.cpp2628 TypeResult DestTy = ParseTypeName(); local
2629 if (DestTy.isInvalid())
2639 Res = Actions.ActOnAsTypeExpr(Expr.get(), DestTy.get(), StartLoc,
2657 TypeResult DestTy = ParseTypeName(); local
2658 if (DestTy.isInvalid())
2668 Res = Actions.ActOnConvertVectorExpr(Expr.get(), DestTy.get(), StartLoc,
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp3714 /// conversion from \p SrcTy to \p DestTy.
3715 unsigned NVPTXDAGToDAGISel::GetConvertOpcode(MVT DestTy, MVT SrcTy,
3721 switch (DestTy.SimpleTy) {
3732 switch (DestTy.SimpleTy) {
3743 switch (DestTy.SimpleTy) {
3754 switch (DestTy.SimpleTy) {

Completed in 378 milliseconds

123