Searched refs:SrcTy (Results 1 - 25 of 30) sorted by relevance

12

/external/llvm/lib/Linker/
H A DLinkModules.cpp49 void addTypeMapping(Type *DstTy, Type *SrcTy);
57 Type *get(Type *SrcTy);
64 Type *remapType(Type *SrcTy) { argument
65 return get(SrcTy);
68 bool areTypesIsomorphic(Type *DstTy, Type *SrcTy);
72 void TypeMapTy::addTypeMapping(Type *DstTy, Type *SrcTy) { argument
73 Type *&Entry = MappedTypes[SrcTy];
76 if (DstTy == SrcTy) {
83 if (!areTypesIsomorphic(DstTy, SrcTy)) {
94 bool TypeMapTy::areTypesIsomorphic(Type *DstTy, Type *SrcTy) { argument
560 ArrayType *SrcTy = local
[all...]
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp237 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local
244 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
251 (!TD || SrcTy != TD->getIntPtrType(CI->getContext()))) ||
439 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local
445 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
762 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
769 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
771 assert(BitsToClear < SrcTy->getScalarSizeInBits() &&
780 uint32_t SrcBitsKept = SrcTy->getScalarSizeInBits()-BitsToClear;
1067 Type *SrcTy local
1196 Type *SrcTy = OpI->getType(); local
1408 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local
1652 Type *SrcTy = Src->getType(); local
[all...]
H A DInstCombineLoadStoreAlloca.cpp96 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()); local
262 if (SrcTy == 0) return 0;
264 Type *SrcPTy = SrcTy->getElementType();
297 SrcTy = PointerType::get(SrcPTy, SrcTy
[all...]
H A DInstCombineAndOrXor.cpp1228 Type *SrcTy = Op0C->getOperand(0)->getType(); local
1230 SrcTy == Op1C->getOperand(0)->getType() &&
1231 SrcTy->isIntOrIntVectorTy()) {
2012 Type *SrcTy = Op0C->getOperand(0)->getType(); local
2013 if (SrcTy == Op1C->getOperand(0)->getType() &&
2014 SrcTy->isIntOrIntVectorTy()) {
2292 Type *SrcTy = Op0C->getOperand(0)->getType(); local
2293 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() &&
H A DInstructionCombining.cpp569 VectorType *SrcTy = dyn_cast<VectorType>(BC->getSrcTy()); local
572 if ((SrcTy == NULL) != (DestTy == NULL)) return 0;
574 if (SrcTy && SrcTy->getNumElements() != DestTy->getNumElements())
H A DInstCombineCalls.cpp766 Type* SrcTy =
769 if (!SrcTy->isSized() || !DstTy->isSized())
771 if (!TD || TD->getTypeAllocSize(SrcTy) != TD->getTypeAllocSize(DstTy))
/external/llvm/lib/VMCore/
H A DVerifier.cpp854 Type *SrcTy = I.getOperand(0)->getType(); local
858 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
861 Assert1(SrcTy->isIntOrIntVectorTy(), "Trunc only operates on integer", &I);
863 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(),
872 Type *SrcTy = I.getOperand(0)->getType(); local
876 Assert1(SrcTy->isIntOrIntVectorTy(), "ZExt only operates on integer", &I);
878 Assert1(SrcTy->isVectorTy() == DestTy->isVectorTy(),
880 unsigned SrcBitSize = SrcTy->getScalarSizeInBits();
890 Type *SrcTy = I.getOperand(0)->getType();
894 unsigned SrcBitSize = SrcTy
925 Type *SrcTy = I.getOperand(0)->getType(); local
966 Type *SrcTy = I.getOperand(0)->getType(); local
989 Type *SrcTy = I.getOperand(0)->getType(); local
1012 Type *SrcTy = I.getOperand(0)->getType(); local
1035 Type *SrcTy = I.getOperand(0)->getType(); local
1046 Type *SrcTy = I.getOperand(0)->getType(); local
1057 Type *SrcTy = I.getOperand(0)->getType(); local
[all...]
H A DInstructions.cpp2021 Type* SrcTy = getOperand(0)->getType();
2023 if (SrcTy == DstTy)
2027 if (SrcTy->isPointerTy())
2041 Type *SrcTy,
2064 SrcTy->getScalarSizeInBits();
2076 /// * %F = firstOpcode SrcTy %x to MidTy
2079 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2083 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2139 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2142 if ((isFirstBitcast && isa<VectorType>(SrcTy) !
2040 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument
2081 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) argument
2423 isCastable(Type *SrcTy, Type *DestTy) argument
2494 Type *SrcTy = Src->getType(); local
2604 Type *SrcTy = S->getType(); local
[all...]
H A DConstantFold.cpp88 Type *SrcTy = Op->getOperand(0)->getType(); local
94 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
99 Type *SrcTy = V->getType(); local
100 if (SrcTy == DestTy)
136 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
137 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() &&
139 SrcTy = NULL;
/external/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h34 virtual Type *remapType(Type *SrcTy) = 0;
/external/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp982 Type *SrcTy = SrcVal->getType();
985 assert(SrcTy->isFloatingPointTy() && "Invalid FPToUI instruction");
987 if (SrcTy->getTypeID() == Type::FloatTyID)
996 Type *SrcTy = SrcVal->getType();
999 assert(SrcTy->isFloatingPointTy() && "Invalid FPToSI instruction");
1001 if (SrcTy->getTypeID() == Type::FloatTyID)
1059 Type *SrcTy = SrcVal->getType();
1062 assert(SrcTy->isPointerTy() && "Invalid BitCast");
1065 if (SrcTy->isFloatTy()) {
1067 } else if (SrcTy
[all...]
/external/clang/lib/CodeGen/
H A DCGExprScalar.cpp102 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
670 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
2639 llvm::Type *SrcTy = Src->getType(); local
2708 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
2718 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGCall.cpp404 llvm::Type *SrcTy = local
406 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy))
453 llvm::Type *SrcTy = local
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))) {
537 llvm::Type *SrcTy = Src->getType(); local
[all...]
H A DItaniumCXXABI.cpp347 const MemberPointerType *SrcTy = local
351 const CXXRecordDecl *SrcDecl = SrcTy->getClass()->getAsCXXRecordDecl();
371 if (SrcTy->isMemberDataPointer()) {
404 const MemberPointerType *SrcTy = local
414 DerivedDecl = SrcTy->getClass()->getAsCXXRecordDecl();
429 if (SrcTy->isMemberDataPointer()) {
H A DCGExprCXX.cpp1631 QualType SrcTy, QualType DestTy,
1663 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType();
1666 SrcRecordTy = SrcTy;
1724 QualType SrcTy = DCE->getSubExpr()->getType();
1729 bool ShouldNullCheckSrcValue = SrcTy->isPointerType();
1744 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd);
1630 EmitDynamicCastCall(CodeGenFunction &CGF, llvm::Value *Value, QualType SrcTy, QualType DestTy, llvm::BasicBlock *CastEnd) argument
H A DCGObjCMac.cpp3246 llvm::Type * SrcTy = src->getType(); local
3247 if (!isa<llvm::PointerType>(SrcTy)) {
3248 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3267 llvm::Type * SrcTy = src->getType(); local
3268 if (!isa<llvm::PointerType>(SrcTy)) {
3269 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3293 llvm::Type * SrcTy = src->getType(); local
3294 if (!isa<llvm::PointerType>(SrcTy)) {
3295 unsigned Size = CGM.getTargetData().getTypeAllocSize(SrcTy);
3313 llvm::Type * SrcTy local
5856 llvm::Type * SrcTy = src->getType(); local
5877 llvm::Type * SrcTy = src->getType(); local
5924 llvm::Type * SrcTy = src->getType(); local
5945 llvm::Type * SrcTy = src->getType(); local
[all...]
/external/clang/lib/Sema/
H A DSemaCast.cpp1425 QualType SrcTy, DestTy; local
1430 SrcTy = SrcType->getPointeeType();
1436 SrcTy = SrcType;
1441 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) {
1446 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) {
1450 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
1455 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) ||
1456 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) {
1457 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) {
[all...]
H A DSemaExpr.cpp3708 QualType SrcTy = E->getType(); local
3709 if (Context.getTypeSize(DstTy) != Context.getTypeSize(SrcTy))
3713 << SrcTy
4017 QualType SrcTy = Src.get()->getType(); local
4018 if (Context.hasSameUnqualifiedType(SrcTy, DestTy))
4021 switch (Type::ScalarTypeKind SrcKind = SrcTy->getScalarTypeKind()) {
4120 QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
4130 SrcTy->castAs<ComplexType>()->getElementType(),
4149 QualType ET = SrcTy->castAs<ComplexType>()->getElementType();
4159 SrcTy
4199 QualType SrcTy = CastExpr->getType(); local
[all...]
/external/llvm/include/llvm/
H A DInstrTypes.h532 Type *SrcTy, ///< The Type from which the value should be cast.
571 Type *SrcTy, ///< SrcTy of cast
585 /// the pair, casting SrcTy to DstTy.
590 Type *SrcTy, ///< SrcTy of 1st cast
591 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
/external/llvm/lib/Analysis/
H A DScalarEvolution.cpp2763 Type *SrcTy = V->getType();
2764 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
2767 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty))
2769 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty))
2780 Type *SrcTy = V->getType();
2781 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
2784 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty))
2786 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBit
[all...]
H A DValueTracking.cpp271 Type *SrcTy = I->getOperand(0)->getType(); local
276 if (SrcTy->isPointerTy())
277 SrcBitWidth = TD->getTypeSizeInBits(SrcTy);
279 SrcBitWidth = SrcTy->getScalarSizeInBits();
294 Type *SrcTy = I->getOperand(0)->getType(); local
295 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
H A DInstructionSimplify.cpp1614 Type *SrcTy = SrcOp->getType(); local
1624 ConstantExpr::getIntToPtr(RHSC, SrcTy),
1628 if (RI->getOperand(0)->getType() == SrcTy)
1640 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
1650 // Compute the constant that would happen if we truncated to SrcTy then
1652 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
1701 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
1710 // Compute the constant that would happen if we truncated to SrcTy then
1712 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
1753 Constant::getNullValue(SrcTy),
[all...]
/external/llvm/lib/Target/CBackend/
H A DCBackend.cpp212 void printCast(unsigned opcode, Type *SrcTy, Type *DstTy);
687 void CWriter::printCast(unsigned opc, Type *SrcTy, Type *DstTy) { argument
723 printSimpleType(Out, SrcTy, false);
729 printSimpleType(Out, SrcTy, true);
2228 Type *SrcTy = I.getOperand(0)->getType();
2230 return (SrcTy->isFloatingPointTy() && DstTy->isIntegerTy()) ||
2231 (DstTy->isFloatingPointTy() && SrcTy->isIntegerTy());
2686 Type *SrcTy = I.getOperand(0)->getType(); local
2700 printCast(I.getOpcode(), SrcTy, DstTy);
2703 if (SrcTy
[all...]
/external/clang/lib/AST/
H A DExprConstant.cpp1727 QualType SrcTy = E->getTypeOfArgument(); local
1732 if (const ReferenceType *Ref = SrcTy->getAs<ReferenceType>())
1733 SrcTy = Ref->getPointeeType();
1737 if (SrcTy->isVoidType() || SrcTy->isFunctionType())
1741 if (!SrcTy->isConstantSizeType())
1745 return Success(Info.Ctx.getTypeSizeInChars(SrcTy), E);
/external/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp1514 Type *SrcTy = PH->getType(); local
1517 if ((int)SE.getTypeSizeInBits(SrcTy) > Mantissa)
2663 Type *SrcTy = *I; local
2664 if (SrcTy != DstTy && TLI->isTruncateFree(SrcTy, DstTy)) {
2670 *J = SE.getAnyExtendExpr(*J, SrcTy);

Completed in 348 milliseconds

12