| /trueos/contrib/llvm/lib/IR/ |
| HD | Instructions.cpp | 2064 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 2108 SrcTy->getScalarSizeInBits(); in isNoopCast() 2127 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2186 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); in isEliminableCastPair() 2189 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2210 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 2222 if (SrcTy->isIntegerTy()) in isEliminableCastPair() [all …]
|
| HD | Verifier.cpp | 341 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy); 944 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { in VerifyBitcastType() argument 946 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits(); in VerifyBitcastType() 951 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(), in VerifyBitcastType() 957 Assert1(!SrcTy->isAggregateType(), in VerifyBitcastType() 966 !SrcTy->isPtrOrPtrVectorTy() || in VerifyBitcastType() 968 SrcTy->isVectorTy() != DestTy->isVectorTy()) { in VerifyBitcastType() 972 unsigned SrcAS = SrcTy->getPointerAddressSpace(); in VerifyBitcastType() 982 Type *SrcTy = CE->getOperand(0)->getType(); in VerifyConstantExprBitcastType() local 984 VerifyBitcastType(CE, DstTy, SrcTy); in VerifyConstantExprBitcastType() [all …]
|
| HD | AutoUpgrade.cpp | 458 Type *SrcTy = V->getType(); in UpgradeBitCastInst() local 459 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastInst() 460 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastInst() 478 Type *SrcTy = C->getType(); in UpgradeBitCastExpr() local 479 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastExpr() 480 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastExpr()
|
| HD | ConstantFold.cpp | 85 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()
|
| /trueos/contrib/llvm/lib/Linker/ |
| HD | LinkModules.cpp | 61 void addTypeMapping(Type *DstTy, Type *SrcTy); 69 Type *get(Type *SrcTy); 88 Type *remapType(Type *SrcTy) { in remapType() argument 89 return get(SrcTy); in remapType() 92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument 97 Type *&Entry = MappedTypes[SrcTy]; in addTypeMapping() 100 if (DstTy == SrcTy) { in addTypeMapping() 107 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 118 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument [all …]
|
| /trueos/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineCasts.cpp | 241 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 …]
|
| HD | InstCombineLoadStoreAlloca.cpp | 290 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { in InstCombineLoadCast() local 293 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) in InstCombineLoadCast() 296 Type *SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 307 ? TD->getIntPtrType(SrcTy) in InstCombineLoadCast() 308 : Type::getInt64Ty(SrcTy->getContext()); in InstCombineLoadCast() 312 SrcTy = cast<PointerType>(CastOp->getType()); in InstCombineLoadCast() 313 SrcPTy = SrcTy->getElementType(); in InstCombineLoadCast() 458 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); in InstCombineStoreToCast() local 459 if (SrcTy == 0) return 0; in InstCombineStoreToCast() 461 Type *SrcPTy = SrcTy->getElementType(); in InstCombineStoreToCast() [all …]
|
| HD | InstCombineAndOrXor.cpp | 1293 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd() local 1295 SrcTy == Op1C->getOperand(0)->getType() && in visitAnd() 1296 SrcTy->isIntOrIntVectorTy()) { in visitAnd() 2181 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitOr() local 2182 if (SrcTy == Op1C->getOperand(0)->getType() && in visitOr() 2183 SrcTy->isIntOrIntVectorTy()) { in visitOr() 2495 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitXor() local 2496 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() && in visitXor()
|
| /trueos/contrib/llvm/lib/Target/ARM/ |
| HD | ARMTargetTransformInfo.cpp | 203 EVT SrcTy = TLI->getValueType(Src); in getCastInstrCost() local 206 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 288 if (SrcTy.isVector() && ST->hasNEON()) { in getCastInstrCost() 290 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 319 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { in getCastInstrCost() 321 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 351 if (SrcTy.isInteger() && ST->hasNEON()) { in getCastInstrCost() 353 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 371 if (SrcTy.isInteger()) { in getCastInstrCost() 373 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost()
|
| /trueos/contrib/llvm/lib/ExecutionEngine/Interpreter/ |
| HD | Execution.cpp | 1219 Type *SrcTy = SrcVal->getType(); in executeTruncInst() local 1220 if (SrcTy->isVectorTy()) { in executeTruncInst() 1238 const Type *SrcTy = SrcVal->getType(); in executeSExtInst() local 1240 if (SrcTy->isVectorTy()) { in executeSExtInst() 1258 const Type *SrcTy = SrcVal->getType(); in executeZExtInst() local 1260 if (SrcTy->isVectorTy()) { in executeZExtInst() 1324 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local 1327 if (SrcTy->getTypeID() == Type::VectorTyID) { in executeFPToUIInst() 1329 const Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1348 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() [all …]
|
| /trueos/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | CGExprScalar.cpp | 114 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 120 QualType SrcTy, QualType DstTy); 563 llvm::Type *SrcTy = Src->getType(); in EmitFloatConversionCheck() local 566 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck() 703 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local 709 SrcTy = CGF.FloatTy; in EmitScalarConversion() 719 if (SrcTy == DstTy) in EmitScalarConversion() 727 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion() 741 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion() 759 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion() [all …]
|
| HD | CGCall.cpp | 636 llvm::Type *SrcTy = in EnterStructPointerForCoercedAccess() local 638 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) in EnterStructPointerForCoercedAccess() 706 llvm::Type *SrcTy = in CreateCoercedLoad() local 710 if (SrcTy == Ty) in CreateCoercedLoad() 715 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { in CreateCoercedLoad() 717 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad() 720 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedLoad() 725 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { in CreateCoercedLoad() 793 llvm::Type *SrcTy = Src->getType(); in CreateCoercedStore() local 796 if (SrcTy == DstTy) { in CreateCoercedStore() [all …]
|
| HD | CGObjC.cpp | 2886 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() 2915 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() 2917 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction() 2967 QualType SrcTy = Ty; in GenerateObjCAtomicGetterCopyHelperFunction() local 2968 SrcTy.addConst(); in GenerateObjCAtomicGetterCopyHelperFunction() 2969 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() 2974 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() [all …]
|
| HD | MicrosoftCXXABI.cpp | 1721 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local 1724 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); in EmitMemberPointerConversion() 1726 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion() 1738 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); in EmitMemberPointerConversion() 1821 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local 1827 if (MemberPointerConstantIsNull(SrcTy, Src)) in EmitMemberPointerConversion() 1836 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy); in EmitMemberPointerConversion() 1844 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion()
|
| HD | CGObjCMac.cpp | 4168 llvm::Type * SrcTy = src->getType(); in EmitObjCWeakAssign() local 4169 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCWeakAssign() 4170 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign() 4190 llvm::Type * SrcTy = src->getType(); in EmitObjCGlobalAssign() local 4191 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCGlobalAssign() 4192 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign() 4217 llvm::Type * SrcTy = src->getType(); in EmitObjCIvarAssign() local 4218 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCIvarAssign() 4219 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign() 4237 llvm::Type * SrcTy = src->getType(); in EmitObjCStrongCastAssign() local [all …]
|
| HD | CGExprCXX.cpp | 1717 QualType SrcTy, QualType DestTy, in EmitDynamicCastCall() argument 1749 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType(); in EmitDynamicCastCall() 1752 SrcRecordTy = SrcTy; in EmitDynamicCastCall() 1816 QualType SrcTy = DCE->getSubExpr()->getType(); in EmitDynamicCast() local 1821 bool ShouldNullCheckSrcValue = SrcTy->isPointerType(); in EmitDynamicCast() 1836 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd); in EmitDynamicCast()
|
| /trueos/contrib/llvm/include/llvm/Transforms/Utils/ |
| HD | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
| /trueos/contrib/llvm/include/llvm/IR/ |
| HD | InstrTypes.h | 530 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
|
| /trueos/contrib/llvm/tools/clang/lib/Sema/ |
| HD | SemaCast.cpp | 1604 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local 1609 SrcTy = SrcType->getPointeeType(); in CheckCompatibleReinterpretCast() 1615 SrcTy = SrcType; in CheckCompatibleReinterpretCast() 1620 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast() 1625 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { in CheckCompatibleReinterpretCast() 1629 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast() 1634 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast() 1635 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast() 1636 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
|
| /trueos/contrib/llvm/lib/Analysis/ |
| HD | ScalarEvolution.cpp | 2807 Type *SrcTy = V->getType(); in getTruncateOrZeroExtend() local 2808 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrZeroExtend() 2811 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 2813 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 2824 Type *SrcTy = V->getType(); in getTruncateOrSignExtend() local 2825 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrSignExtend() 2828 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 2830 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 2840 Type *SrcTy = V->getType(); in getNoopOrZeroExtend() local 2841 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getNoopOrZeroExtend() [all …]
|
| HD | CostModel.cpp | 443 Type *SrcTy = I->getOperand(0)->getType(); in getInstructionCost() local 444 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy); in getInstructionCost()
|
| HD | ValueTracking.cpp | 432 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local 438 SrcBitWidth = TD->getTypeSizeInBits(SrcTy->getScalarType()); in ComputeMaskedBits() 440 SrcBitWidth = SrcTy->getScalarSizeInBits(); in ComputeMaskedBits() 456 Type *SrcTy = I->getOperand(0)->getType(); in ComputeMaskedBits() local 457 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in ComputeMaskedBits()
|
| HD | InstructionSimplify.cpp | 2043 Type *SrcTy = SrcOp->getType(); in SimplifyICmpInst() local 2049 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { in SimplifyICmpInst() 2053 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst() 2057 if (RI->getOperand(0)->getType() == SrcTy) in SimplifyICmpInst() 2069 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 2081 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 2129 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 2140 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 2179 Constant::getNullValue(SrcTy), in SimplifyICmpInst() 2188 Constant::getNullValue(SrcTy), in SimplifyICmpInst()
|
| /trueos/contrib/llvm/lib/Target/X86/ |
| HD | X86TargetTransformInfo.cpp | 395 EVT SrcTy = TLI->getValueType(Src); in getCastInstrCost() local 399 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 452 SrcTy.getSimpleVT()); in getCastInstrCost()
|
| /trueos/contrib/llvm/lib/Transforms/IPO/ |
| HD | MergeFunctions.cpp | 728 Type *SrcTy = V->getType(); in createCast() local 729 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in createCast() 731 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in createCast()
|