/netbsd-current/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
H A D | VNCoercion.cpp | 509 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 D | SCCPSolver.cpp | 785 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 D | CGExprComplex.cpp | 176 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 D | CGExprCXX.cpp | 2220 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 D | CGCXXABI.h | 267 QualType SrcRecordTy, QualType DestTy, 273 QualType DestTy) = 0;
|
H A D | CGDeclCXX.cpp | 124 auto DestTy = CGF.getTypes().ConvertType(Type)->getPointerTo( local 128 Argument = llvm::ConstantExpr::getBitCast(Addr.getPointer(), DestTy); 132 Argument = llvm::ConstantPointerNull::get(DestTy);
|
H A D | CGObjC.cpp | 3682 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 D | ItaniumCXXABI.cpp | 189 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 D | MicrosoftCXXABI.cpp | 152 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 D | ExecutionEngine.cpp | 748 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 D | InstCombineVectorOps.cpp | 187 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 D | InstCombineAndOrXor.cpp | 1575 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 D | InstCombineLoadStoreAlloca.cpp | 416 auto *DestTy = PointerType::get(AI.getAllocatedType(), SrcAddrSpace); local 421 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy); 433 Value *Cast = Builder.CreateBitCast(TheSrc, DestTy);
|
H A D | InstructionCombining.cpp | 341 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 D | SemaCast.cpp | 1985 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 D | SemaExpr.cpp | 6539 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 D | TypePromotion.cpp | 663 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 D | InferAddressSpaces.cpp | 345 Type *DestTy = II->getType(); local 348 Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
|
H A D | LoopStrengthReduce.cpp | 2084 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 D | IRBuilder.cpp | 845 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 D | Constants.cpp | 2092 "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 D | HexagonVectorCombine.cpp | 1239 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 D | AMDGPUTargetTransformInfo.cpp | 1080 Type *DestTy = II->getType(); 1083 Intrinsic::getDeclaration(M, II->getIntrinsicID(), {DestTy, SrcTy});
|
/netbsd-current/external/apache2/llvm/dist/clang/lib/Parse/ |
H A D | ParseExpr.cpp | 2628 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 D | NVPTXISelDAGToDAG.cpp | 3714 /// 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) {
|