/external/llvm/lib/VMCore/ |
D | Verifier.cpp | 847 Type *SrcTy = I.getOperand(0)->getType(); in visitTruncInst() local 851 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() 854 Assert1(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); in visitTruncInst() 856 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 865 Type *SrcTy = I.getOperand(0)->getType(); in visitZExtInst() local 869 Assert1(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); in visitZExtInst() 871 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 873 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() 883 Type *SrcTy = I.getOperand(0)->getType(); in visitSExtInst() local 887 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() [all …]
|
D | Instructions.cpp | 2048 Type* SrcTy = getOperand(0)->getType(); in isLosslessCast() local 2050 if (SrcTy == DstTy) in isLosslessCast() 2054 if (SrcTy->isPointerTy()) in isLosslessCast() 2068 Type *SrcTy, in isNoopCast() argument 2090 SrcTy->getScalarSizeInBits(); in isNoopCast() 2109 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) { in isEliminableCastPair() argument 2165 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); in isEliminableCastPair() 2168 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2189 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 2201 if (SrcTy->isIntegerTy()) in isEliminableCastPair() [all …]
|
D | ConstantFold.cpp | 86 Type *SrcTy = Op->getOperand(0)->getType(); in foldConstantCastPair() local 92 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair() 97 Type *SrcTy = V->getType(); in FoldBitCast() local 98 if (SrcTy == DestTy) in FoldBitCast() 135 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast() local 136 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() && in FoldBitCast() 138 SrcTy = NULL; in FoldBitCast()
|
/external/llvm/lib/Linker/ |
D | LinkModules.cpp | 59 void addTypeMapping(Type *DstTy, Type *SrcTy); 67 Type *get(Type *SrcTy); 86 Type *remapType(Type *SrcTy) { in remapType() argument 87 return get(SrcTy); in remapType() 90 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 94 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument 95 Type *&Entry = MappedTypes[SrcTy]; in addTypeMapping() 98 if (DstTy == SrcTy) { in addTypeMapping() 105 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 116 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument [all …]
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 235 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() local 242 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 249 (!TD || SrcTy != TD->getIntPtrType(CI->getContext()))) || in isEliminableCastPair() 437 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local 443 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc() 756 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local 763 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt() 765 assert(BitsToClear < SrcTy->getScalarSizeInBits() && in visitZExt() 774 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear; in visitZExt() 1060 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitSExt() local [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 165 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { in InstCombineLoadCast() local 168 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) in InstCombineLoadCast() 171 Type *SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 185 SrcTy = cast<PointerType>(CastOp->getType()); in InstCombineLoadCast() 186 SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 330 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); in InstCombineStoreToCast() local 331 if (SrcTy == 0) return 0; in InstCombineStoreToCast() 333 Type *SrcPTy = SrcTy->getElementType(); in InstCombineStoreToCast() 366 SrcTy = PointerType::get(SrcPTy, SrcTy->getAddressSpace()); in InstCombineStoreToCast() 375 SrcTy->getAddressSpace() != in InstCombineStoreToCast()
|
D | InstCombineAndOrXor.cpp | 1208 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd() local 1210 SrcTy == Op1C->getOperand(0)->getType() && in visitAnd() 1211 SrcTy->isIntOrIntVectorTy()) { in visitAnd() 1980 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitOr() local 1981 if (SrcTy == Op1C->getOperand(0)->getType() && in visitOr() 1982 SrcTy->isIntOrIntVectorTy()) { in visitOr() 2261 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitXor() local 2262 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() && in visitXor()
|
D | InstCombineCalls.cpp | 766 Type* SrcTy = in isSafeToEliminateVarargsCast() local 769 if (!SrcTy->isSized() || !DstTy->isSized()) in isSafeToEliminateVarargsCast() 771 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy)) in isSafeToEliminateVarargsCast()
|
D | InstructionCombining.cpp | 574 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy()); in FoldOpIntoSelect() local 577 if ((SrcTy == NULL) != (DestTy == NULL)) return 0; in FoldOpIntoSelect() 579 if (SrcTy && SrcTy->getNumElements() != DestTy->getNumElements()) in FoldOpIntoSelect()
|
D | InstCombineCompares.cpp | 1547 Type *SrcTy = LHSCIOp->getType(); in visitICmpInstWithCastAndCast() local 1558 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast() 1610 Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy); in visitICmpInstWithCastAndCast() 1642 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 102 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 108 QualType SrcTy, QualType DstTy); 550 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local 557 SrcTy = CGF.FloatTy; in EmitScalarConversion() 567 if (SrcTy == DstTy) in EmitScalarConversion() 575 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion() 589 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion() 615 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion() 627 if (isa<llvm::IntegerType>(SrcTy)) { in EmitScalarConversion() 636 assert(SrcTy->isFloatingPointTy() && "Unknown real conversion"); in EmitScalarConversion() [all …]
|
D | CGCall.cpp | 550 llvm::Type *SrcTy = in EnterStructPointerForCoercedAccess() local 552 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) in EnterStructPointerForCoercedAccess() 599 llvm::Type *SrcTy = in CreateCoercedLoad() local 603 if (SrcTy == Ty) in CreateCoercedLoad() 608 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { in CreateCoercedLoad() 610 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad() 613 uint64_t SrcSize = CGF.CGM.getTargetData().getTypeAllocSize(SrcTy); in CreateCoercedLoad() 618 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { in CreateCoercedLoad() 643 CGF.Builder.CreateBitCast(Tmp, llvm::PointerType::getUnqual(SrcTy)); in CreateCoercedLoad() 685 llvm::Type *SrcTy = Src->getType(); in CreateCoercedStore() local [all …]
|
D | CGObjC.cpp | 2788 QualType SrcTy = Ty; in GenerateObjCAtomicSetterCopyHelperFunction() local 2789 SrcTy.addConst(); in GenerateObjCAtomicSetterCopyHelperFunction() 2790 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2795 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2821 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() 2823 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction() 2874 QualType SrcTy = Ty; in GenerateObjCAtomicGetterCopyHelperFunction() local 2875 SrcTy.addConst(); in GenerateObjCAtomicGetterCopyHelperFunction() 2876 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() 2881 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() [all …]
|
D | CGObjCMac.cpp | 3482 llvm::Type * SrcTy = src->getType(); in EmitObjCWeakAssign() local 3483 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCWeakAssign() 3484 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign() 3503 llvm::Type * SrcTy = src->getType(); in EmitObjCGlobalAssign() local 3504 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCGlobalAssign() 3505 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign() 3529 llvm::Type * SrcTy = src->getType(); in EmitObjCIvarAssign() local 3530 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCIvarAssign() 3531 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign() 3549 llvm::Type * SrcTy = src->getType(); in EmitObjCStrongCastAssign() local [all …]
|
D | CGExprCXX.cpp | 1681 QualType SrcTy, QualType DestTy, in EmitDynamicCastCall() argument 1713 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType(); in EmitDynamicCastCall() 1716 SrcRecordTy = SrcTy; in EmitDynamicCastCall() 1774 QualType SrcTy = DCE->getSubExpr()->getType(); in EmitDynamicCast() local 1779 bool ShouldNullCheckSrcValue = SrcTy->isPointerType(); in EmitDynamicCast() 1794 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd); in EmitDynamicCast()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 962 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local 965 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() 967 if (SrcTy->getTypeID() == Type::FloatTyID) in executeFPToUIInst() 976 Type *SrcTy = SrcVal->getType(); in executeFPToSIInst() local 979 assert(SrcTy->isFloatingPointTy() && "Invalid FPToSI instruction"); in executeFPToSIInst() 981 if (SrcTy->getTypeID() == Type::FloatTyID) in executeFPToSIInst() 1039 Type *SrcTy = SrcVal->getType(); in executeBitCastInst() local 1042 assert(SrcTy->isPointerTy() && "Invalid BitCast"); in executeBitCastInst() 1045 if (SrcTy->isFloatTy()) { in executeBitCastInst() 1047 } else if (SrcTy->isDoubleTy()) { in executeBitCastInst() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
/external/clang/lib/Sema/ |
D | SemaCast.cpp | 1438 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local 1443 SrcTy = SrcType->getPointeeType(); in CheckCompatibleReinterpretCast() 1449 SrcTy = SrcType; in CheckCompatibleReinterpretCast() 1454 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast() 1459 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { in CheckCompatibleReinterpretCast() 1463 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast() 1468 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast() 1469 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast() 1470 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
|
D | SemaExpr.cpp | 3732 QualType SrcTy = E->getType(); in ActOnAsTypeExpr() local 3733 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy)) in ActOnAsTypeExpr() 3737 << SrcTy in ActOnAsTypeExpr() 4056 QualType SrcTy = Src.get()->getType(); in PrepareScalarCast() local 4057 if (const AtomicType *SrcAtomicTy = SrcTy->getAs<AtomicType>()) in PrepareScalarCast() 4058 SrcTy = SrcAtomicTy->getValueType(); in PrepareScalarCast() 4062 if (Context.hasSameUnqualifiedType(SrcTy, DestTy)) in PrepareScalarCast() 4065 switch (Type::ScalarTypeKind SrcKind = SrcTy->getScalarTypeKind()) { in PrepareScalarCast() 4162 QualType ET = SrcTy->castAs<ComplexType>()->getElementType(); in PrepareScalarCast() 4172 SrcTy->castAs<ComplexType>()->getElementType(), in PrepareScalarCast() [all …]
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 2782 Type *SrcTy = V->getType(); in getTruncateOrZeroExtend() local 2783 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrZeroExtend() 2786 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 2788 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 2799 Type *SrcTy = V->getType(); in getTruncateOrSignExtend() local 2800 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrSignExtend() 2803 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 2805 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 2815 Type *SrcTy = V->getType(); in getNoopOrZeroExtend() local 2816 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getNoopOrZeroExtend() [all …]
|
D | ValueTracking.cpp | 422 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local 427 if (SrcTy->isPointerTy()) in ComputeMaskedBits() 428 SrcBitWidth = TD->getTypeSizeInBits(SrcTy); in ComputeMaskedBits() 430 SrcBitWidth = SrcTy->getScalarSizeInBits(); in ComputeMaskedBits() 443 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local 444 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in ComputeMaskedBits()
|
D | InstructionSimplify.cpp | 1868 Type *SrcTy = SrcOp->getType(); in SimplifyICmpInst() local 1878 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst() 1882 if (RI->getOperand(0)->getType() == SrcTy) in SimplifyICmpInst() 1894 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 1906 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 1954 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 1965 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 2004 Constant::getNullValue(SrcTy), in SimplifyICmpInst() 2013 Constant::getNullValue(SrcTy), in SimplifyICmpInst()
|
/external/llvm/include/llvm/ |
D | InstrTypes.h | 533 Type *SrcTy, ///< The Type from which the value should be cast. 572 Type *SrcTy, ///< SrcTy of cast 591 Type *SrcTy, ///< SrcTy of 1st cast
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 1656 Type *SrcTy = PH->getType(); in OptimizeShadowIV() local 1659 if ((int)SE.getTypeSizeInBits(SrcTy) > Mantissa) in OptimizeShadowIV() 3339 Type *SrcTy = *I; in GenerateTruncates() local 3340 if (SrcTy != DstTy && TLI->isTruncateFree(SrcTy, DstTy)) { in GenerateTruncates() 3346 *J = SE.getAnyExtendExpr(*J, SrcTy); in GenerateTruncates()
|
/external/llvm/lib/Target/ARM/ |
D | ARMInstrNEON.td | 5294 class AlignedVEXTq<ValueType DestTy, ValueType SrcTy, SDNodeXForm LaneCVT> 5295 : Pat<(DestTy (vector_extract_subvec (SrcTy QPR:$src), (i32 imm:$start))), 5296 (EXTRACT_SUBREG (SrcTy QPR:$src), (LaneCVT imm:$start))>; 5593 multiclass Lengthen_Single<string DestLanes, string DestTy, string SrcTy> { 5595 (!cast<PatFrag>("extloadv" # SrcTy) addrmode5:$addr)), 5599 (!cast<PatFrag>("zextloadv" # SrcTy) addrmode5:$addr)), 5603 (!cast<PatFrag>("sextloadv" # SrcTy) addrmode5:$addr)), 5616 multiclass Lengthen_HalfSingle<string DestLanes, string DestTy, string SrcTy, 5619 (!cast<PatFrag>("extloadv" # SrcTy) addrmode5:$addr)), 5624 (!cast<PatFrag>("zextloadv" # SrcTy) addrmode5:$addr)), [all …]
|