/external/llvm/lib/Transforms/InstCombine/ |
InstCombineLoadStoreAlloca.cpp | 96 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) { 99 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace()) 102 Type *SrcPTy = SrcTy->getElementType(); 116 SrcTy = cast<PointerType>(CastOp->getType()); 117 SrcPTy = SrcTy->getElementType(); 261 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); 262 if (SrcTy == 0) return 0; 264 Type *SrcPTy = SrcTy->getElementType(); 297 SrcTy = PointerType::get(SrcPTy, SrcTy->getAddressSpace()) [all...] |
InstCombineCasts.cpp | 237 Type *SrcTy = CI->getOperand(0)->getType(); // A from above 244 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, 251 (!TD || SrcTy != TD->getIntPtrType(CI->getContext()))) || 439 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); 445 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 762 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); 769 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) && 771 assert(BitsToClear < SrcTy->getScalarSizeInBits() && 780 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear; [all...] |
InstCombineAndOrXor.cpp | [all...] |
InstCombineCompares.cpp | [all...] |
InstructionCombining.cpp | 569 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy()); 572 if ((SrcTy == NULL) != (DestTy == NULL)) return 0; 574 if (SrcTy && SrcTy->getNumElements() != DestTy->getNumElements()) [all...] |
/external/llvm/lib/Linker/ |
LinkModules.cpp | 49 void addTypeMapping(Type *DstTy, Type *SrcTy); 57 Type *get(Type *SrcTy); 64 Type *remapType(Type *SrcTy) { 65 return get(SrcTy); 68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy); 72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { 73 Type *&Entry = MappedTypes[SrcTy]; 76 if (DstTy == SrcTy) { 83 if (!areTypesIsomorphic(DstTy, SrcTy)) { 94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { [all...] |
/external/llvm/lib/Analysis/ |
InstructionSimplify.cpp | [all...] |
ValueTracking.cpp | 271 Type *SrcTy = I->getOperand(0)->getType(); 276 if (SrcTy->isPointerTy()) 277 SrcBitWidth = TD->getTypeSizeInBits(SrcTy); 279 SrcBitWidth = SrcTy->getScalarSizeInBits(); 294 Type *SrcTy = I->getOperand(0)->getType(); 295 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) && [all...] |
/external/clang/lib/CodeGen/ |
ItaniumCXXABI.cpp | 347 const MemberPointerType *SrcTy = 351 const CXXRecordDecl *SrcDecl = SrcTy->getClass()->getAsCXXRecordDecl(); 371 if (SrcTy->isMemberDataPointer()) { 404 const MemberPointerType *SrcTy = 414 DerivedDecl = SrcTy->getClass()->getAsCXXRecordDecl(); 429 if (SrcTy->isMemberDataPointer()) { [all...] |
CGCall.cpp | 404 llvm::Type *SrcTy = 406 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) 453 llvm::Type *SrcTy = 456 // If SrcTy and Ty are the same, just do a load. 457 if (SrcTy == Ty) 462 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) { 464 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType(); 467 uint64_t SrcSize = CGF.CGM.getTargetData().getTypeAllocSize(SrcTy); 472 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) { [all...] |
CGExpr.cpp | [all...] |
CGExprScalar.cpp | 102 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy); 108 QualType SrcTy, QualType DstTy); 555 llvm::Type *SrcTy = Src->getType(); 562 SrcTy = llvm::Type::getFloatTy(VMContext); 572 if (SrcTy == DstTy) 580 if (isa<llvm::PointerType>(SrcTy)) 594 if (isa<llvm::PointerType>(SrcTy)) { 623 if (isa<llvm::VectorType>(SrcTy) || 635 if (isa<llvm::IntegerType>(SrcTy)) { 644 assert(SrcTy->isFloatingPointTy() && "Unknown real conversion") [all...] |
CGObjCMac.cpp | [all...] |
/external/clang/lib/Sema/ |
SemaCast.cpp | [all...] |
SemaExpr.cpp | [all...] |
/external/llvm/lib/VMCore/ |
ConstantFold.cpp | 88 Type *SrcTy = Op->getOperand(0)->getType(); 94 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy, 99 Type *SrcTy = V->getType(); 100 if (SrcTy == DestTy) 136 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) { 137 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() && 139 SrcTy = NULL; [all...] |
Instructions.cpp | [all...] |
Verifier.cpp | 854 Type *SrcTy = I.getOperand(0)->getType(); 858 unsigned SrcBitSize = SrcTy->getScalarSizeInBits(); 861 Assert1(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I) [all...] |
/external/llvm/lib/Target/ARM/ |
ARMFastISel.cpp | [all...] |
/external/llvm/lib/Target/CBackend/ |
CBackend.cpp | 212 void printCast(unsigned opcode, Type *SrcTy, Type *DstTy); 687 void CWriter::printCast(unsigned opc, Type *SrcTy, Type *DstTy) { 723 printSimpleType(Out, SrcTy, false); 729 printSimpleType(Out, SrcTy, true); [all...] |
/external/clang/lib/AST/ |
ExprConstant.cpp | [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopStrengthReduce.cpp | [all...] |