| /NextBSD/contrib/llvm/lib/IR/ |
| HD | Instructions.cpp | 1959 Type* SrcTy = getOperand(0)->getType(); in isLosslessCast() local 1961 if (SrcTy == DstTy) in isLosslessCast() 1965 if (SrcTy->isPointerTy()) in isLosslessCast() 1979 Type *SrcTy, in isNoopCast() argument 2003 SrcTy->getScalarSizeInBits(); in isNoopCast() 2035 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, in isEliminableCastPair() argument 2094 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast); in isEliminableCastPair() 2097 if ((isFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || in isEliminableCastPair() 2118 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy()) in isEliminableCastPair() 2130 if (SrcTy->isIntegerTy()) in isEliminableCastPair() [all …]
|
| HD | Verifier.cpp | 1942 Type *SrcTy = I.getOperand(0)->getType(); in visitTruncInst() local 1946 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitTruncInst() 1949 Assert(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); in visitTruncInst() 1951 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitTruncInst() 1960 Type *SrcTy = I.getOperand(0)->getType(); in visitZExtInst() local 1964 Assert(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); in visitZExtInst() 1966 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), in visitZExtInst() 1968 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitZExtInst() 1978 Type *SrcTy = I.getOperand(0)->getType(); in visitSExtInst() local 1982 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); in visitSExtInst() [all …]
|
| HD | AutoUpgrade.cpp | 755 Type *SrcTy = V->getType(); in UpgradeBitCastInst() local 756 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastInst() 757 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastInst() 775 Type *SrcTy = C->getType(); in UpgradeBitCastExpr() local 776 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && in UpgradeBitCastExpr() 777 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { in UpgradeBitCastExpr()
|
| /NextBSD/contrib/llvm/lib/Transforms/InstCombine/ |
| HD | InstCombineCasts.cpp | 239 Type *SrcTy = CI->getOperand(0)->getType(); // A from above in isEliminableCastPair() local 246 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; in isEliminableCastPair() 251 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair() 257 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || in isEliminableCastPair() 453 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); in visitTrunc() local 459 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitTrunc() 782 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); in visitZExt() local 789 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && in visitZExt() 791 assert(BitsToClear < SrcTy->getScalarSizeInBits() && in visitZExt() 800 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear; in visitZExt() [all …]
|
| HD | InstCombineVectorOps.cpp | 939 VectorType *SrcTy = cast<VectorType>(V->getType()); in visitShuffleVectorInst() local 940 unsigned VecBitWidth = SrcTy->getBitWidth(); in visitShuffleVectorInst() 941 unsigned SrcElemBitWidth = DL.getTypeSizeInBits(SrcTy->getElementType()); in visitShuffleVectorInst() 943 unsigned SrcNumElems = SrcTy->getNumElements(); in visitShuffleVectorInst()
|
| /NextBSD/contrib/llvm/lib/Linker/ |
| HD | LinkModules.cpp | 69 void addTypeMapping(Type *DstTy, Type *SrcTy); 77 Type *get(Type *SrcTy); 78 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited); 98 Type *remapType(Type *SrcTy) override { return get(SrcTy); } in remapType() argument 100 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 104 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { in addTypeMapping() argument 110 if (!areTypesIsomorphic(DstTy, SrcTy)) { in addTypeMapping() 132 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { in areTypesIsomorphic() argument 134 if (DstTy->getTypeID() != SrcTy->getTypeID()) in areTypesIsomorphic() 138 Type *&Entry = MappedTypes[SrcTy]; in areTypesIsomorphic() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/ARM/ |
| HD | ARMTargetTransformInfo.cpp | 70 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 73 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 155 if (SrcTy.isVector() && ST->hasNEON()) { in getCastInstrCost() 157 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 186 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { in getCastInstrCost() 188 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 218 if (SrcTy.isInteger() && ST->hasNEON()) { in getCastInstrCost() 220 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 238 if (SrcTy.isInteger()) { in getCastInstrCost() 240 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost()
|
| /NextBSD/contrib/llvm/lib/ExecutionEngine/Interpreter/ |
| HD | Execution.cpp | 1221 Type *SrcTy = SrcVal->getType(); in executeTruncInst() local 1222 if (SrcTy->isVectorTy()) { in executeTruncInst() 1240 const Type *SrcTy = SrcVal->getType(); in executeSExtInst() local 1242 if (SrcTy->isVectorTy()) { in executeSExtInst() 1260 const Type *SrcTy = SrcVal->getType(); in executeZExtInst() local 1262 if (SrcTy->isVectorTy()) { in executeZExtInst() 1326 Type *SrcTy = SrcVal->getType(); in executeFPToUIInst() local 1329 if (SrcTy->getTypeID() == Type::VectorTyID) { in executeFPToUIInst() 1331 const Type *SrcVecTy = SrcTy->getScalarType(); in executeFPToUIInst() 1350 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction"); in executeFPToUIInst() [all …]
|
| /NextBSD/contrib/llvm/lib/Target/NVPTX/ |
| HD | NVPTXFavorNonGenericAddrSpaces.cpp | 130 PointerType *SrcTy = cast<PointerType>(Src->getType()); in isEliminableAddrSpaceCast() local 136 if (SrcTy->getElementType() != DestTy->getElementType()) in isEliminableAddrSpaceCast() 141 return (SrcTy->getAddressSpace() != AddressSpace::ADDRESS_SPACE_GENERIC && in isEliminableAddrSpaceCast()
|
| /NextBSD/contrib/llvm/tools/clang/lib/CodeGen/ |
| HD | CGExprScalar.cpp | 151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 157 QualType SrcTy, QualType DstTy); 606 llvm::Type *SrcTy = Src->getType(); in EmitFloatConversionCheck() local 609 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { in EmitFloatConversionCheck() 746 llvm::Type *SrcTy = Src->getType(); in EmitScalarConversion() local 775 SrcTy = CGF.FloatTy; in EmitScalarConversion() 780 if (SrcTy == DstTy) in EmitScalarConversion() 788 if (isa<llvm::PointerType>(SrcTy)) in EmitScalarConversion() 802 if (isa<llvm::PointerType>(SrcTy)) { in EmitScalarConversion() 820 if (isa<llvm::VectorType>(SrcTy) || in EmitScalarConversion() [all …]
|
| HD | CGCall.cpp | 852 llvm::Type *SrcTy = in EnterStructPointerForCoercedAccess() local 854 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) in EnterStructPointerForCoercedAccess() 924 llvm::Type *SrcTy = in CreateCoercedLoad() local 928 if (SrcTy == Ty) in CreateCoercedLoad() 933 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { in CreateCoercedLoad() 935 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); in CreateCoercedLoad() 938 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); in CreateCoercedLoad() 943 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { in CreateCoercedLoad() 1014 llvm::Type *SrcTy = Src->getType(); in CreateCoercedStore() local 1017 if (SrcTy == DstTy) { in CreateCoercedStore() [all …]
|
| HD | CGObjC.cpp | 2916 QualType SrcTy = Ty; in GenerateObjCAtomicSetterCopyHelperFunction() local 2917 SrcTy.addConst(); in GenerateObjCAtomicSetterCopyHelperFunction() 2918 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2923 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); in GenerateObjCAtomicSetterCopyHelperFunction() 2943 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, in GenerateObjCAtomicSetterCopyHelperFunction() 2945 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), in GenerateObjCAtomicSetterCopyHelperFunction() 2995 QualType SrcTy = Ty; in GenerateObjCAtomicGetterCopyHelperFunction() local 2996 SrcTy.addConst(); in GenerateObjCAtomicGetterCopyHelperFunction() 2997 SrcTy = C.getPointerType(SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() 3002 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); in GenerateObjCAtomicGetterCopyHelperFunction() [all …]
|
| HD | MicrosoftCXXABI.cpp | 607 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 620 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 2565 const MemberPointerType *SrcTy = in EmitMemberPointer() local 2592 C = EmitMemberPointerConversion(SrcTy, DstTy, CK, DerivedToBasePath.begin(), in EmitMemberPointer() 2911 const MemberPointerType *SrcTy = in EmitMemberPointerConversion() local 2914 bool IsFunc = SrcTy->isMemberFunctionPointer(); in EmitMemberPointerConversion() 2921 CXXRecordDecl *SrcRD = SrcTy->getMostRecentCXXRecordDecl(); in EmitMemberPointerConversion() 2930 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); in EmitMemberPointerConversion() 2949 SrcTy, DstTy, E->getCastKind(), E->path_begin(), E->path_end(), Src, in EmitMemberPointerConversion() 2963 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, in EmitNonNullMemberPointerConversion() argument [all …]
|
| HD | CGObjCMac.cpp | 4103 llvm::Type * SrcTy = src->getType(); in EmitObjCWeakAssign() local 4104 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCWeakAssign() 4105 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign() 4125 llvm::Type * SrcTy = src->getType(); in EmitObjCGlobalAssign() local 4126 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCGlobalAssign() 4127 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign() 4152 llvm::Type * SrcTy = src->getType(); in EmitObjCIvarAssign() local 4153 if (!isa<llvm::PointerType>(SrcTy)) { in EmitObjCIvarAssign() 4154 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign() 4172 llvm::Type * SrcTy = src->getType(); in EmitObjCStrongCastAssign() local [all …]
|
| /NextBSD/contrib/llvm/lib/Analysis/ |
| HD | ConstantFolding.cpp | 494 Type *SrcTy = C->getType(); in ConstantFoldLoadThroughBitcast() local 498 if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) { in ConstantFoldLoadThroughBitcast() 502 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in ConstantFoldLoadThroughBitcast() 504 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in ConstantFoldLoadThroughBitcast() 513 if (!SrcTy->isAggregateType()) in ConstantFoldLoadThroughBitcast() 674 static Constant *CastGEPIndices(Type *SrcTy, ArrayRef<Constant *> Ops, in CastGEPIndices() argument 701 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ops[0], NewIdxs); in CastGEPIndices() 727 static Constant *SymbolicallyEvaluateGEP(Type *SrcTy, ArrayRef<Constant *> Ops, in SymbolicallyEvaluateGEP() argument 869 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ptr, NewIdxs); in SymbolicallyEvaluateGEP() 1089 Type *SrcTy = nullptr; in ConstantFoldInstOperands() local [all …]
|
| HD | ScalarEvolution.cpp | 3381 Type *SrcTy = V->getType(); in getTruncateOrZeroExtend() local 3382 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrZeroExtend() 3385 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 3387 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrZeroExtend() 3398 Type *SrcTy = V->getType(); in getTruncateOrSignExtend() local 3399 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getTruncateOrSignExtend() 3402 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 3404 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) in getTruncateOrSignExtend() 3414 Type *SrcTy = V->getType(); in getNoopOrZeroExtend() local 3415 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && in getNoopOrZeroExtend() [all …]
|
| HD | CostModel.cpp | 457 Type *SrcTy = I->getOperand(0)->getType(); in getInstructionCost() local 458 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy); in getInstructionCost()
|
| HD | InstructionSimplify.cpp | 2377 Type *SrcTy = SrcOp->getType(); in SimplifyICmpInst() local 2383 Q.DL.getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) { in SimplifyICmpInst() 2387 ConstantExpr::getIntToPtr(RHSC, SrcTy), in SimplifyICmpInst() 2391 if (RI->getOperand(0)->getType() == SrcTy) in SimplifyICmpInst() 2403 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 2415 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 2463 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType()) in SimplifyICmpInst() 2474 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy); in SimplifyICmpInst() 2513 Constant::getNullValue(SrcTy), in SimplifyICmpInst() 2522 Constant::getNullValue(SrcTy), in SimplifyICmpInst() [all …]
|
| /NextBSD/contrib/llvm/include/llvm/IR/ |
| HD | InstrTypes.h | 561 Type *SrcTy, ///< The Type from which the value should be cast. 567 Type *SrcTy, ///< The Type from which the value should be cast. 577 Type *SrcTy, ///< The Type from which the value should be cast. 616 Type *SrcTy, ///< SrcTy of cast 640 Type *SrcTy, ///< SrcTy of 1st cast
|
| /NextBSD/contrib/llvm/include/llvm/Transforms/Utils/ |
| HD | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
| /NextBSD/contrib/llvm/lib/Target/X86/ |
| HD | X86TargetTransformInfo.cpp | 543 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 547 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 655 DstTy.getSimpleVT(), SrcTy.getSimpleVT()); in getCastInstrCost() 662 SrcTy.getSimpleVT()); in getCastInstrCost() 824 unsigned X86TTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *SrcTy, in getMaskedMemoryOpCost() argument 827 VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy); in getMaskedMemoryOpCost() 830 return getMemoryOpCost(Opcode, SrcTy, Alignment, AddressSpace); in getMaskedMemoryOpCost()
|
| /NextBSD/contrib/llvm/lib/Transforms/IPO/ |
| HD | MergeFunctions.cpp | 1308 Type *SrcTy = V->getType(); in createCast() local 1309 if (SrcTy->isStructTy()) { in createCast() 1311 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); in createCast() 1313 for (unsigned int I = 0, E = SrcTy->getStructNumElements(); I < E; ++I) { in createCast() 1324 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) in createCast() 1326 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) in createCast()
|
| HD | ArgumentPromotion.cpp | 667 Type *SrcTy; in DoPromotion() local 669 SrcTy = L->getType(); in DoPromotion() 671 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); in DoPromotion() 683 ArgIndices.insert(std::make_pair(SrcTy, Indices)); in DoPromotion()
|
| /NextBSD/contrib/llvm/tools/clang/lib/Sema/ |
| HD | SemaCast.cpp | 1668 QualType SrcTy, DestTy; in CheckCompatibleReinterpretCast() local 1673 SrcTy = SrcType->getPointeeType(); in CheckCompatibleReinterpretCast() 1679 SrcTy = SrcType; in CheckCompatibleReinterpretCast() 1684 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { in CheckCompatibleReinterpretCast() 1689 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { in CheckCompatibleReinterpretCast() 1693 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { in CheckCompatibleReinterpretCast() 1698 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || in CheckCompatibleReinterpretCast() 1699 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { in CheckCompatibleReinterpretCast() 1700 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { in CheckCompatibleReinterpretCast()
|
| /NextBSD/contrib/llvm/lib/Target/AArch64/ |
| HD | AArch64TargetTransformInfo.cpp | 184 EVT SrcTy = TLI->getValueType(DL, Src); in getCastInstrCost() local 187 if (!SrcTy.isSimple() || !DstTy.isSimple()) in getCastInstrCost() 255 SrcTy.getSimpleVT()); in getCastInstrCost()
|