Home
last modified time | relevance | path

Searched refs:SrcTy (Results 1 – 25 of 37) sorted by relevance

12

/external/llvm/lib/IR/
DVerifier.cpp328 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy);
902 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { in VerifyBitcastType() argument
904 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits(); in VerifyBitcastType()
909 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), in VerifyBitcastType()
915 Assert1(!SrcTy->isAggregateType(), in VerifyBitcastType()
924 !SrcTy->isPtrOrPtrVectorTy() || in VerifyBitcastType()
926 SrcTy->isVectorTy() != DestTy->isVectorTy()) { in VerifyBitcastType()
930 unsigned SrcAS = SrcTy->getPointerAddressSpace(); in VerifyBitcastType()
942 Type *SrcTy = CE->getOperand(0)->getType(); in VerifyConstantExprBitcastType() local
944 VerifyBitcastType(CE, DstTy, SrcTy); in VerifyConstantExprBitcastType()
[all …]
DInstructions.cpp2064 Type* SrcTy = getOperand(0)->getType(); in isLosslessCast() local
2066 if (SrcTy == DstTy) in isLosslessCast()
2070 if (SrcTy->isPointerTy()) in isLosslessCast()
2084 Type *SrcTy, in isNoopCast() argument
2106 SrcTy->getScalarSizeInBits(); in isNoopCast()
2125 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument
2182 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); in isEliminableCastPair()
2185 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair()
2206 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair()
2218 if (SrcTy->isIntegerTy()) in isEliminableCastPair()
[all …]
DConstantFold.cpp85 Type *SrcTy = Op->getOperand(0)->getType(); in foldConstantCastPair() local
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, in foldConstantCastPair()
101 Type *SrcTy = V->getType(); in FoldBitCast() local
102 if (SrcTy == DestTy) in FoldBitCast()
139 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { in FoldBitCast() local
140 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() && in FoldBitCast()
142 SrcTy = NULL; in FoldBitCast()
/external/llvm/lib/Linker/
DLinkModules.cpp62 void addTypeMapping(Type *DstTy, Type *SrcTy);
70 Type *get(Type *SrcTy);
89 Type *remapType(Type *SrcTy) { in remapType() argument
90 return get(SrcTy); in remapType()
93 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
97 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument
98 Type *&Entry = MappedTypes[SrcTy]; in addTypeMapping()
101 if (DstTy == SrcTy) { in addTypeMapping()
108 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping()
119 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCasts.cpp241 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() local
247 Type *SrcIntPtrTy = TD && SrcTy->isPtrOrPtrVectorTy() ? in isEliminableCastPair()
248 TD->getIntPtrType(SrcTy) : 0; in isEliminableCastPair()
253 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
259 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || in isEliminableCastPair()
446 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local
452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc()
773 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local
780 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt()
782 assert(BitsToClear < SrcTy->getScalarSizeInBits() && in visitZExt()
[all …]
DInstCombineLoadStoreAlloca.cpp289 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { in InstCombineLoadCast() local
292 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) in InstCombineLoadCast()
295 Type *SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast()
309 SrcTy = cast<PointerType>(CastOp->getType()); in InstCombineLoadCast()
310 SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast()
454 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); in InstCombineStoreToCast() local
455 if (SrcTy == 0) return 0; in InstCombineStoreToCast()
457 Type *SrcPTy = SrcTy->getElementType(); in InstCombineStoreToCast()
490 SrcTy = PointerType::get(SrcPTy, SrcTy->getAddressSpace()); in InstCombineStoreToCast()
499 SrcTy->getAddressSpace() != in InstCombineStoreToCast()
DInstCombineAndOrXor.cpp1204 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd() local
1206 SrcTy == Op1C->getOperand(0)->getType() && in visitAnd()
1207 SrcTy->isIntOrIntVectorTy()) { in visitAnd()
2045 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitOr() local
2046 if (SrcTy == Op1C->getOperand(0)->getType() && in visitOr()
2047 SrcTy->isIntOrIntVectorTy()) { in visitOr()
2359 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitXor() local
2360 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() && in visitXor()
DInstCombineCalls.cpp776 Type* SrcTy = in isSafeToEliminateVarargsCast() local
779 if (!SrcTy->isSized() || !DstTy->isSized()) in isSafeToEliminateVarargsCast()
781 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy)) in isSafeToEliminateVarargsCast()
/external/llvm/lib/Target/ARM/
DARMTargetTransformInfo.cpp201 EVT SrcTy = TLI->getValueType(Src); in getCastInstrCost() local
204 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
285 if (SrcTy.isVector() && ST->hasNEON()) { in getCastInstrCost()
288 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost()
316 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { in getCastInstrCost()
320 SrcTy.getSimpleVT()); in getCastInstrCost()
349 if (SrcTy.isInteger() && ST->hasNEON()) { in getCastInstrCost()
353 SrcTy.getSimpleVT()); in getCastInstrCost()
370 if (SrcTy.isInteger()) { in getCastInstrCost()
375 SrcTy.getSimpleVT()); in getCastInstrCost()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1237 Type *SrcTy = SrcVal->getType(); in executeTruncInst() local
1238 if (SrcTy->isVectorTy()) { in executeTruncInst()
1256 const Type *SrcTy = SrcVal->getType(); in executeSExtInst() local
1258 if (SrcTy->isVectorTy()) { in executeSExtInst()
1276 const Type *SrcTy = SrcVal->getType(); in executeZExtInst() local
1278 if (SrcTy->isVectorTy()) { in executeZExtInst()
1342 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local
1345 if (SrcTy->getTypeID() == Type::VectorTyID) { in executeFPToUIInst()
1347 const Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst()
1366 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst()
[all …]
/external/clang/lib/CodeGen/
DCGExprScalar.cpp113 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
119 QualType SrcTy, QualType DstTy);
560 llvm::Type *SrcTy = Src->getType(); in EmitFloatConversionCheck() local
563 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck()
700 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local
706 SrcTy = CGF.FloatTy; in EmitScalarConversion()
716 if (SrcTy == DstTy) in EmitScalarConversion()
724 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion()
738 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion()
756 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion()
[all …]
DCGCall.cpp640 llvm::Type *SrcTy = in EnterStructPointerForCoercedAccess() local
642 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) in EnterStructPointerForCoercedAccess()
710 llvm::Type *SrcTy = in CreateCoercedLoad() local
714 if (SrcTy == Ty) in CreateCoercedLoad()
719 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { in CreateCoercedLoad()
721 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad()
724 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedLoad()
729 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { in CreateCoercedLoad()
797 llvm::Type *SrcTy = Src->getType(); in CreateCoercedStore() local
800 if (SrcTy == DstTy) { in CreateCoercedStore()
[all …]
DMicrosoftCXXABI.cpp1099 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local
1102 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); in EmitMemberPointerConversion()
1104 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion()
1116 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); in EmitMemberPointerConversion()
1199 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local
1205 if (MemberPointerConstantIsNull(SrcTy, Src)) in EmitMemberPointerConversion()
1214 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); in EmitMemberPointerConversion()
1222 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion()
DCGObjC.cpp2886 QualType SrcTy = Ty; in GenerateObjCAtomicSetterCopyHelperFunction() local
2887 SrcTy.addConst(); in GenerateObjCAtomicSetterCopyHelperFunction()
2888 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction()
2893 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction()
2918 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction()
2920 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction()
2970 QualType SrcTy = Ty; in GenerateObjCAtomicGetterCopyHelperFunction() local
2971 SrcTy.addConst(); in GenerateObjCAtomicGetterCopyHelperFunction()
2972 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction()
2977 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction()
[all …]
DCGObjCMac.cpp4167 llvm::Type * SrcTy = src->getType(); in EmitObjCWeakAssign() local
4168 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCWeakAssign()
4169 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign()
4189 llvm::Type * SrcTy = src->getType(); in EmitObjCGlobalAssign() local
4190 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCGlobalAssign()
4191 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign()
4216 llvm::Type * SrcTy = src->getType(); in EmitObjCIvarAssign() local
4217 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCIvarAssign()
4218 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign()
4236 llvm::Type * SrcTy = src->getType(); in EmitObjCStrongCastAssign() local
[all …]
DCGExprCXX.cpp1791 QualType SrcTy, QualType DestTy, in EmitDynamicCastCall() argument
1823 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType(); in EmitDynamicCastCall()
1826 SrcRecordTy = SrcTy; in EmitDynamicCastCall()
1890 QualType SrcTy = DCE->getSubExpr()->getType(); in EmitDynamicCast() local
1895 bool ShouldNullCheckSrcValue = SrcTy->isPointerType(); in EmitDynamicCast()
1910 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd); in EmitDynamicCast()
/external/llvm/include/llvm/Transforms/Utils/
DValueMapper.h34 virtual Type *remapType(Type *SrcTy) = 0;
/external/llvm/lib/Analysis/
DCostModel.cpp183 Type *SrcTy = I->getOperand(0)->getType(); in getInstructionCost() local
184 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy); in getInstructionCost()
DScalarEvolution.cpp2820 Type *SrcTy = V->getType(); in getTruncateOrZeroExtend() local
2821 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrZeroExtend()
2824 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend()
2826 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend()
2837 Type *SrcTy = V->getType(); in getTruncateOrSignExtend() local
2838 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrSignExtend()
2841 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrSignExtend()
2843 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrSignExtend()
2853 Type *SrcTy = V->getType(); in getNoopOrZeroExtend() local
2854 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getNoopOrZeroExtend()
[all …]
DValueTracking.cpp431 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local
437 SrcBitWidth = TD->getTypeSizeInBits(SrcTy->getScalarType()); in ComputeMaskedBits()
439 SrcBitWidth = SrcTy->getScalarSizeInBits(); in ComputeMaskedBits()
455 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local
456 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in ComputeMaskedBits()
DInstructionSimplify.cpp2030 Type *SrcTy = SrcOp->getType(); in SimplifyICmpInst() local
2036 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { in SimplifyICmpInst()
2040 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst()
2044 if (RI->getOperand(0)->getType() == SrcTy) in SimplifyICmpInst()
2056 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst()
2068 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
2116 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst()
2127 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst()
2166 Constant::getNullValue(SrcTy), in SimplifyICmpInst()
2175 Constant::getNullValue(SrcTy), in SimplifyICmpInst()
/external/llvm/include/llvm/IR/
DInstrTypes.h530 Type *SrcTy, ///< The Type from which the value should be cast.
536 Type *SrcTy, ///< The Type from which the value should be cast.
575 Type *SrcTy, ///< SrcTy of cast
594 Type *SrcTy, ///< SrcTy of 1st cast
/external/clang/lib/Sema/
DSemaCast.cpp1600 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local
1605 SrcTy = SrcType->getPointeeType(); in CheckCompatibleReinterpretCast()
1611 SrcTy = SrcType; in CheckCompatibleReinterpretCast()
1616 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast()
1621 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { in CheckCompatibleReinterpretCast()
1625 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast()
1630 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast()
1631 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast()
1632 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp397 EVT SrcTy = TLI->getValueType(Src); in getCastInstrCost() local
401 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost()
451 ISD, DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp684 Type *SrcTy = VL0->getOperand(0)->getType(); in buildTree_rec() local
687 if (Ty != SrcTy || Ty->isAggregateType() || Ty->isVectorTy()) { in buildTree_rec()
836 Type *SrcTy = VL0->getOperand(0)->getType(); in getEntryCost() local
840 VL0->getType(), SrcTy); in getEntryCost()
842 VectorType *SrcVecTy = VectorType::get(SrcTy, VL.size()); in getEntryCost()

12