Searched defs:SrcTy (Results 1 - 22 of 22) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp300 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) {
303 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
306 Type *SrcPTy = SrcTy->getElementType();
320 SrcTy = cast<PointerType>(CastOp->getType());
321 SrcPTy = SrcTy->getElementType();
465 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); local
466 if (SrcTy == 0) return 0;
468 Type *SrcPTy = SrcTy->getElementType();
501 SrcTy = PointerType::get(SrcPTy, SrcTy
[all...]
H A DInstCombineAndOrXor.cpp1212 Type *SrcTy = Op0C->getOperand(0)->getType(); local
1214 SrcTy == Op1C->getOperand(0)->getType() &&
1215 SrcTy->isIntOrIntVectorTy()) {
1989 Type *SrcTy = Op0C->getOperand(0)->getType(); local
1990 if (SrcTy == Op1C->getOperand(0)->getType() &&
1991 SrcTy->isIntOrIntVectorTy()) {
2270 Type *SrcTy = Op0C->getOperand(0)->getType(); local
2271 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() &&
H A DInstCombineCasts.cpp235 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local
242 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
249 (!TD || SrcTy != TD->getIntPtrType(CI->getContext()))) ||
437 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local
443 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
754 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
761 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
763 assert(BitsToClear < SrcTy->getScalarSizeInBits() &&
772 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear;
1055 Type *SrcTy local
1187 Type *SrcTy = OpI->getType(); local
1397 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local
1642 Type *SrcTy = Src->getType(); local
[all...]
H A DInstCombineCompares.cpp1548 Type *SrcTy = LHSCIOp->getType(); local
1559 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy);
1609 // Compute the constant that would happen if we truncated to SrcTy then
1611 Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy);
1643 Constant *NegOne = Constant::getAllOnesValue(SrcTy);
H A DInstructionCombining.cpp578 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy()); local
581 if ((SrcTy == NULL) != (DestTy == NULL)) return 0;
583 if (SrcTy && SrcTy->getNumElements() != DestTy->getNumElements())
/external/llvm/lib/Analysis/
H A DValueTracking.cpp422 Type *SrcTy = I->getOperand(0)->getType(); local
427 if (SrcTy->isPointerTy())
428 SrcBitWidth = TD->getTypeSizeInBits(SrcTy);
430 SrcBitWidth = SrcTy->getScalarSizeInBits();
443 Type *SrcTy = I->getOperand(0)->getType(); local
444 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
H A DInstructionSimplify.cpp1874 Type *SrcTy = SrcOp->getType(); local
1884 ConstantExpr::getIntToPtr(RHSC, SrcTy),
1888 if (RI->getOperand(0)->getType() == SrcTy)
1900 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
1910 // Compute the constant that would happen if we truncated to SrcTy then
1912 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
1960 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
1969 // Compute the constant that would happen if we truncated to SrcTy then
1971 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
2010 Constant::getNullValue(SrcTy),
[all...]
/external/llvm/lib/Linker/
H A DLinkModules.cpp61 void addTypeMapping(Type *DstTy, Type *SrcTy);
69 Type *get(Type *SrcTy);
88 Type *remapType(Type *SrcTy) { argument
89 return get(SrcTy);
92 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
96 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
97 Type *&Entry = MappedTypes[SrcTy];
100 if (DstTy == SrcTy) {
107 if (!areTypesIsomorphic(DstTy, SrcTy)) {
118 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
659 ArrayType *SrcTy = local
[all...]
/external/llvm/lib/VMCore/
H A DConstantFold.cpp85 Type *SrcTy = Op->getOperand(0)->getType(); local
91 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
96 Type *SrcTy = V->getType(); local
97 if (SrcTy == DestTy)
134 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
135 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() &&
137 SrcTy = NULL;
H A DVerifier.cpp864 Type *SrcTy = I.getOperand(0)->getType(); local
868 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
871 Assert1(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I);
873 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(),
882 Type *SrcTy = I.getOperand(0)->getType(); local
886 Assert1(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I);
888 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(),
890 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
900 Type *SrcTy = I.getOperand(0)->getType();
904 unsigned SrcBitSize = SrcTy
935 Type *SrcTy = I.getOperand(0)->getType(); local
976 Type *SrcTy = I.getOperand(0)->getType(); local
999 Type *SrcTy = I.getOperand(0)->getType(); local
1022 Type *SrcTy = I.getOperand(0)->getType(); local
1045 Type *SrcTy = I.getOperand(0)->getType(); local
1067 Type *SrcTy = I.getOperand(0)->getType(); local
1087 Type *SrcTy = I.getOperand(0)->getType(); local
[all...]
H A DInstructions.cpp2054 Type* SrcTy = getOperand(0)->getType();
2056 if (SrcTy == DstTy)
2060 if (SrcTy->isPointerTy())
2074 Type *SrcTy,
2096 SrcTy->getScalarSizeInBits();
2108 /// * %F = firstOpcode SrcTy %x to MidTy
2111 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2115 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2171 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2174 if ((isFirstBitcast && isa<VectorType>(SrcTy) !
2073 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument
2113 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument
2448 isCastable(Type *SrcTy, Type *DestTy) argument
2519 Type *SrcTy = Src->getType(); local
2620 Type *SrcTy = S->getType(); local
[all...]
/external/llvm/lib/Target/ARM/
H A DARMFastISel.cpp2599 Type *SrcTy = Src->getType(); local
2602 SrcVT = TLI.getValueType(SrcTy, true);
/external/clang/lib/CodeGen/
H A DCGCall.cpp600 llvm::Type *SrcTy = local
602 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy))
649 llvm::Type *SrcTy = local
652 // If SrcTy and Ty are the same, just do a load.
653 if (SrcTy == Ty)
658 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) {
660 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
663 uint64_t SrcSize = CGF.CGM.getTargetData().getTypeAllocSize(SrcTy);
668 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) {
735 llvm::Type *SrcTy = Src->getType(); local
[all...]
H A DCGExprCXX.cpp1699 QualType SrcTy, QualType DestTy,
1731 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType();
1734 SrcRecordTy = SrcTy;
1792 QualType SrcTy = DCE->getSubExpr()->getType();
1797 bool ShouldNullCheckSrcValue = SrcTy->isPointerType();
1812 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd);
1698 EmitDynamicCastCall(CodeGenFunction &CGF, llvm::Value *Value, QualType SrcTy, QualType DestTy, llvm::BasicBlock *CastEnd) argument
H A DCGExpr.cpp1070 llvm::Type *SrcTy = Value->getType(); local
1071 llvm::VectorType *VecTy = cast<llvm::VectorType>(SrcTy);
1093 SrcTy = llvm::VectorType::get(VecTy->getElementType(), 4);
1096 if (DstPtr->getElementType() != SrcTy) {
1098 llvm::PointerType::get(SrcTy, DstPtr->getAddressSpace());
1376 llvm::Type *SrcTy = Src.getScalarVal()->getType(); local
1377 llvm::Value *ReloadVal = Builder.CreateIntCast(SrcVal, SrcTy, false,
H A DCGExprScalar.cpp104 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
110 QualType SrcTy, QualType DstTy);
548 llvm::Type *SrcTy = Src->getType();
555 SrcTy = CGF.FloatTy;
565 if (SrcTy == DstTy)
573 if (isa<llvm::PointerType>(SrcTy))
587 if (isa<llvm::PointerType>(SrcTy)) {
613 if (isa<llvm::VectorType>(SrcTy) ||
625 if (isa<llvm::IntegerType>(SrcTy)) {
634 assert(SrcTy
660 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
2686 llvm::Type *SrcTy = Src->getType(); local
2754 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
2764 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGObjC.cpp2816 QualType SrcTy = Ty; local
2817 SrcTy.addConst();
2818 SrcTy = C.getPointerType(SrcTy);
2823 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy);
2849 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy,
2851 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(),
2903 QualType SrcTy = Ty; local
2904 SrcTy.addConst();
2905 SrcTy
[all...]
H A DCGObjCMac.cpp3482 llvm::Type * SrcTy = src->getType(); local
3483 if (!isa<llvm::PointerType>(SrcTy)) {
3484 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3503 llvm::Type * SrcTy = src->getType(); local
3504 if (!isa<llvm::PointerType>(SrcTy)) {
3505 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3529 llvm::Type * SrcTy = src->getType(); local
3530 if (!isa<llvm::PointerType>(SrcTy)) {
3531 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3549 llvm::Type * SrcTy local
6144 llvm::Type * SrcTy = src->getType(); local
6165 llvm::Type * SrcTy = src->getType(); local
6212 llvm::Type * SrcTy = src->getType(); local
6233 llvm::Type * SrcTy = src->getType(); local
[all...]
/external/clang/lib/Sema/
H A DSemaCast.cpp1439 QualType SrcTy, DestTy; local
1444 SrcTy = SrcType->getPointeeType();
1450 SrcTy = SrcType;
1455 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) {
1460 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) {
1464 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
1469 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) ||
1470 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) {
1471 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) {
[all...]
H A DSemaExpr.cpp3923 QualType SrcTy = E->getType(); local
3924 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
3928 << SrcTy
4248 QualType SrcTy = Src.get()->getType(); local
4249 if (Context.hasSameUnqualifiedType(SrcTy, DestTy))
4252 switch (Type::ScalarTypeKind SrcKind = SrcTy->getScalarTypeKind()) {
4349 QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
4359 SrcTy->castAs<ComplexType>()->getElementType(),
4378 QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
4388 SrcTy
4428 QualType SrcTy = CastExpr->getType(); local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp1701 Type *SrcTy = PH->getType(); local
1704 if ((int)SE.getTypeSizeInBits(SrcTy) > Mantissa)
3406 Type *SrcTy = *I; local
3407 if (SrcTy != DstTy && TLI->isTruncateFree(SrcTy, DstTy)) {
3413 *J = SE.getAnyExtendExpr(*J, SrcTy);
/external/clang/lib/AST/
H A DExprConstant.cpp5200 QualType SrcTy = E->getTypeOfArgument(); local
5203 if (const ReferenceType *Ref = SrcTy->getAs<ReferenceType>())
5204 SrcTy = Ref->getPointeeType();
5207 if (!HandleSizeof(Info, E->getExprLoc(), SrcTy, Sizeof))

Completed in 444 milliseconds