/external/llvm/lib/IR/ |
H A D | Instructions.cpp | 2273 Type* SrcTy = getOperand(0)->getType(); 2275 if (SrcTy == DstTy) 2279 if (SrcTy->isPointerTy()) 2293 Type *SrcTy, 2317 SrcTy->getScalarSizeInBits(); 2342 /// * %F = firstOpcode SrcTy %x to MidTy 2345 /// * %Replacement = resultOpcode %SrcTy %x to DstTy 2349 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, 2413 if ((IsFirstBitcast && isa<VectorType>(SrcTy) != isa<VectorType>(MidTy)) || 2434 if (!SrcTy [all...] |
H A D | Verifier.cpp | 2025 Type *SrcTy = I.getOperand(0)->getType(); local 2029 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); 2032 Assert(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I); 2034 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), 2043 Type *SrcTy = I.getOperand(0)->getType(); local 2047 Assert(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I); 2049 Assert(SrcTy->isVectorTy() == DestTy->isVectorTy(), 2051 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); 2061 Type *SrcTy = I.getOperand(0)->getType(); 2065 unsigned SrcBitSize = SrcTy 2096 Type *SrcTy = I.getOperand(0)->getType(); local 2137 Type *SrcTy = I.getOperand(0)->getType(); local 2160 Type *SrcTy = I.getOperand(0)->getType(); local 2183 Type *SrcTy = I.getOperand(0)->getType(); local 2206 Type *SrcTy = I.getOperand(0)->getType(); local 2228 Type *SrcTy = I.getOperand(0)->getType(); local 2254 Type *SrcTy = I.getOperand(0)->getType(); local [all...] |
H A D | AutoUpgrade.cpp | 491 VectorType *SrcTy = cast<VectorType>(CI->getArgOperand(0)->getType()); local 501 CI->getArgOperand(0), UndefValue::get(SrcTy), ShuffleMask); 846 Type *SrcTy = V->getType(); local 847 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 848 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) { 866 Type *SrcTy = C->getType(); 867 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() && 868 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 238 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local 245 SrcTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(SrcTy) : nullptr; 250 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, 256 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) || 496 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local 502 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 516 Constant *One = ConstantInt::get(SrcTy, 1); 567 if (Src->hasOneUse() && isa<IntegerType>(SrcTy) && 568 ShouldChangeType(SrcTy, DestT 848 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 1132 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local 1428 Type *SrcTy = SrcI->getType(); local 1565 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local 1793 Type *SrcTy = Src->getType(); local 1918 PointerType *SrcTy = cast<PointerType>(Src->getType()->getScalarType()); local [all...] |
H A D | InstCombineVectorOps.cpp | 939 VectorType *SrcTy = cast<VectorType>(V->getType()); local 940 unsigned VecBitWidth = SrcTy->getBitWidth(); 941 unsigned SrcElemBitWidth = DL.getTypeSizeInBits(SrcTy->getElementType()); 943 unsigned SrcNumElems = SrcTy->getNumElements();
|
/external/llvm/lib/Linker/ |
H A D | IRMover.cpp | 54 void addTypeMapping(Type *DstTy, Type *SrcTy); 62 Type *get(Type *SrcTy); 63 Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited); 72 Type *remapType(Type *SrcTy) override { return get(SrcTy); } 74 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 78 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument 84 if (!areTypesIsomorphic(DstTy, SrcTy)) { 106 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument 108 if (DstTy->getTypeID() != SrcTy [all...] |
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | ValueMapper.h | 34 virtual Type *remapType(Type *SrcTy) = 0;
|
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXFavorNonGenericAddrSpaces.cpp | 130 PointerType *SrcTy = cast<PointerType>(Src->getType()); local 136 if (SrcTy->getElementType() != DestTy->getElementType()) 141 return (SrcTy->getAddressSpace() != AddressSpace::ADDRESS_SPACE_GENERIC &&
|
H A D | NVPTXISelLowering.h | 458 bool isTruncateFree(Type *SrcTy, Type *DstTy) const override { 460 if (!SrcTy->isIntegerTy() || !DstTy->isIntegerTy()) 462 return SrcTy->getPrimitiveSizeInBits() == 64 &&
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMTargetTransformInfo.cpp | 69 EVT SrcTy = TLI->getValueType(DL, Src); local 72 if (!SrcTy.isSimple() || !DstTy.isSimple()) 153 if (SrcTy.isVector() && ST->hasNEON()) { 156 SrcTy.getSimpleVT())) 183 if (SrcTy.isFloatingPoint() && ST->hasNEON()) { 186 SrcTy.getSimpleVT())) 214 if (SrcTy.isInteger() && ST->hasNEON()) { 217 SrcTy.getSimpleVT())) 233 if (SrcTy.isInteger()) { 236 SrcTy [all...] |
/external/clang/lib/CodeGen/ |
H A D | CGExprScalar.cpp | 151 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 154 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, 160 QualType SrcTy, QualType DstTy, 604 llvm::Type *SrcTy = Src->getType(); 607 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) { 750 llvm::Type *SrcTy = Src->getType(); local 779 SrcTy = CGF.FloatTy; 784 if (SrcTy == DstTy) 792 if (isa<llvm::PointerType>(SrcTy)) 806 if (isa<llvm::PointerType>(SrcTy)) { 897 EmitComplexToScalarConversion( CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument 1070 llvm::Type *SrcTy = Src->getType(); local 1392 llvm::Type *SrcTy = Src->getType(); local 3400 llvm::Type *SrcTy = Src->getType(); local 3463 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument 3473 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy, SourceLocation Loc) argument [all...] |
H A D | CGCall.cpp | 901 llvm::Type *SrcTy = SrcPtr.getElementType(); local 902 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) 971 llvm::Type *SrcTy = Src.getElementType(); local 973 // If SrcTy and Ty are the same, just do a load. 974 if (SrcTy == Ty) 979 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { 981 SrcTy = Src.getType()->getElementType(); 984 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy); 989 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { 1049 llvm::Type *SrcTy = Src->getType(); local [all...] |
H A D | CGObjC.cpp | 2928 QualType SrcTy = Ty; local 2929 SrcTy.addConst(); 2930 SrcTy = C.getPointerType(SrcTy); 2935 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); local 2957 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy, 2959 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(), 3009 QualType SrcTy = Ty; local 3010 SrcTy.addConst(); 3011 SrcTy 3016 ImplicitParamDecl srcDecl(getContext(), FD, SourceLocation(), nullptr, SrcTy); local [all...] |
H A D | MicrosoftCXXABI.cpp | 646 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 659 const MemberPointerType *SrcTy, const MemberPointerType *DstTy, 2628 const MemberPointerType *SrcTy = local 2655 C = EmitMemberPointerConversion(SrcTy, DstTy, CK, DerivedToBasePath.begin(), 2986 const MemberPointerType *SrcTy = local 2989 bool IsFunc = SrcTy->isMemberFunctionPointer(); 2996 CXXRecordDecl *SrcRD = SrcTy->getMostRecentCXXRecordDecl(); 3005 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy); 3024 SrcTy, DstTy, E->getCastKind(), E->path_begin(), E->path_end(), Src, 3038 const MemberPointerType *SrcTy, cons 3037 EmitNonNullMemberPointerConversion( const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, llvm::Value *Src, CGBuilderTy &Builder) argument 3182 const MemberPointerType *SrcTy = local 3192 EmitMemberPointerConversion( const MemberPointerType *SrcTy, const MemberPointerType *DstTy, CastKind CK, CastExpr::path_const_iterator PathBegin, CastExpr::path_const_iterator PathEnd, llvm::Constant *Src) argument [all...] |
H A D | CGObjCMac.cpp | 4322 llvm::Type * SrcTy = src->getType(); local 4323 if (!isa<llvm::PointerType>(SrcTy)) { 4324 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4344 llvm::Type * SrcTy = src->getType(); local 4345 if (!isa<llvm::PointerType>(SrcTy)) { 4346 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4371 llvm::Type * SrcTy = src->getType(); local 4372 if (!isa<llvm::PointerType>(SrcTy)) { 4373 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); 4391 llvm::Type * SrcTy local 6990 llvm::Type * SrcTy = src->getType(); local 7010 llvm::Type * SrcTy = src->getType(); local 7056 llvm::Type * SrcTy = src->getType(); local 7077 llvm::Type * SrcTy = src->getType(); local [all...] |
/external/llvm/lib/ExecutionEngine/Interpreter/ |
H A D | Execution.cpp | 1221 Type *SrcTy = SrcVal->getType(); 1222 if (SrcTy->isVectorTy()) { 1240 Type *SrcTy = SrcVal->getType(); 1242 if (SrcTy->isVectorTy()) { 1260 Type *SrcTy = SrcVal->getType(); 1262 if (SrcTy->isVectorTy()) { 1326 Type *SrcTy = SrcVal->getType(); 1329 if (SrcTy->getTypeID() == Type::VectorTyID) { 1331 Type *SrcVecTy = SrcTy->getScalarType(); 1350 assert(SrcTy [all...] |
/external/llvm/lib/Target/X86/ |
H A D | X86TargetTransformInfo.cpp | 803 EVT SrcTy = TLI->getValueType(DL, Src); local 807 if (!SrcTy.isSimple() || !DstTy.isSimple()) 813 SrcTy.getSimpleVT())) 819 SrcTy.getSimpleVT())) 825 SrcTy.getSimpleVT())) 832 SrcTy.getSimpleVT())) 839 SrcTy.getSimpleVT())) 846 SrcTy.getSimpleVT())) 994 int X86TTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *SrcTy, argument 997 VectorType *SrcVTy = dyn_cast<VectorType>(SrcTy); [all...] |
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 493 Type *SrcTy = C->getType(); local 497 if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) { 501 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) 503 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy()) 512 if (!SrcTy->isAggregateType()) 677 static Constant *CastGEPIndices(Type *SrcTy, ArrayRef<Constant *> Ops, argument 704 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ops[0], NewIdxs); 730 static Constant *SymbolicallyEvaluateGEP(Type *SrcTy, ArrayRef<Constant *> Ops, argument 872 Constant *C = ConstantExpr::getGetElementPtr(SrcTy, Ptr, NewIdxs); 1092 Type *SrcTy local [all...] |
H A D | CostModel.cpp | 452 Type *SrcTy = I->getOperand(0)->getType(); local 453 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy);
|
H A D | ScalarEvolution.cpp | 3410 Type *SrcTy = V->getType(); 3411 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 3414 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 3416 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty)) 3427 Type *SrcTy = V->getType(); 3428 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && 3431 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty)) 3433 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBit [all...] |
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetTransformInfo.cpp | 183 EVT SrcTy = TLI->getValueType(DL, Src); local 186 if (!SrcTy.isSimple() || !DstTy.isSimple()) 288 SrcTy.getSimpleVT()))
|
/external/llvm/lib/Transforms/IPO/ |
H A D | ArgumentPromotion.cpp | 676 Type *SrcTy; local 678 SrcTy = L->getType(); 680 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); 692 ArgIndices.insert(std::make_pair(SrcTy, Indices));
|
H A D | MergeFunctions.cpp | 1649 Type *SrcTy = V->getType(); local 1650 if (SrcTy->isStructTy()) { 1652 assert(SrcTy->getStructNumElements() == DestTy->getStructNumElements()); 1654 for (unsigned int I = 0, E = SrcTy->getStructNumElements(); I < E; ++I) { 1665 if (SrcTy->isIntegerTy() && DestTy->isPointerTy()) 1667 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())
|
/external/clang/lib/Sema/ |
H A D | SemaCast.cpp | 1670 QualType SrcTy, DestTy; 1675 SrcTy = SrcType->getPointeeType(); 1681 SrcTy = SrcType; 1686 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) { 1691 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) { 1695 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) { 1700 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) || 1701 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) { 1702 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) { [all...] |
/external/llvm/include/llvm/IR/ |
H A D | InstrTypes.h | 758 Type *SrcTy, ///< The Type from which the value should be cast. 764 Type *SrcTy, ///< The Type from which the value should be cast. 774 Type *SrcTy, ///< The Type from which the value should be cast. 813 Type *SrcTy, ///< SrcTy of cast 832 /// the pair, casting SrcTy to DstTy. 837 Type *SrcTy, ///< SrcTy of 1st cast 838 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast 840 Type *SrcIntPtrTy, ///< Integer type corresponding to Ptr SrcTy, o [all...] |