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

12

/freebsd-9.3-release/contrib/llvm/lib/IR/
H A DVerifier.cpp341 void VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy);
944 void Verifier::VerifyBitcastType(const Value *V, Type *DestTy, Type *SrcTy) { argument
946 unsigned SrcBitSize = SrcTy->getPrimitiveSizeInBits();
951 Assert1(SrcTy->isPointerTy() == DestTy->isPointerTy(),
957 Assert1(!SrcTy->isAggregateType(),
966 !SrcTy->isPtrOrPtrVectorTy() ||
968 SrcTy->isVectorTy() != DestTy->isVectorTy()) {
972 unsigned SrcAS = SrcTy->getPointerAddressSpace();
982 Type *SrcTy = CE->getOperand(0)->getType(); local
984 VerifyBitcastType(CE, DstTy, SrcTy);
1235 Type *SrcTy = I.getOperand(0)->getType(); local
1253 Type *SrcTy = I.getOperand(0)->getType(); local
1306 Type *SrcTy = I.getOperand(0)->getType(); local
1347 Type *SrcTy = I.getOperand(0)->getType(); local
1370 Type *SrcTy = I.getOperand(0)->getType(); local
1393 Type *SrcTy = I.getOperand(0)->getType(); local
1416 Type *SrcTy = I.getOperand(0)->getType(); local
1438 Type *SrcTy = I.getOperand(0)->getType(); local
1457 Type *SrcTy = I.getOperand(0)->getType(); local
1464 Type *SrcTy = I.getOperand(0)->getType(); local
[all...]
H A DInstructions.cpp2064 Type* SrcTy = getOperand(0)->getType();
2066 if (SrcTy == DstTy)
2070 if (SrcTy->isPointerTy())
2084 Type *SrcTy,
2108 SrcTy->getScalarSizeInBits();
2120 /// * %F = firstOpcode SrcTy %x to MidTy
2123 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2127 Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy,
2186 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2189 if ((isFirstBitcast && isa<VectorType>(SrcTy) !
2083 isNoopCast(Instruction::CastOps Opcode, Type *SrcTy, Type *DestTy, Type *IntPtrTy) argument
2125 isEliminableCastPair( Instruction::CastOps firstOp, Instruction::CastOps secondOp, Type *SrcTy, Type *MidTy, Type *DstTy, Type *SrcIntPtrTy, Type *MidIntPtrTy, Type *DstIntPtrTy) argument
2541 isCastable(Type *SrcTy, Type *DestTy) argument
2602 isBitCastable(Type *SrcTy, Type *DestTy) argument
2652 Type *SrcTy = Src->getType(); local
2756 Type *SrcTy = S->getType(); local
[all...]
H A DAutoUpgrade.cpp458 Type *SrcTy = V->getType(); local
459 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
460 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
478 Type *SrcTy = C->getType();
479 if (SrcTy->isPtrOrPtrVectorTy() && DestTy->isPtrOrPtrVectorTy() &&
480 SrcTy->getPointerAddressSpace() != DestTy->getPointerAddressSpace()) {
H A DConstantFold.cpp85 Type *SrcTy = Op->getOperand(0)->getType(); local
96 return CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, DstTy,
101 Type *SrcTy = V->getType(); local
102 if (SrcTy == DestTy)
139 if (VectorType *SrcTy = dyn_cast<VectorType>(V->getType())) {
140 assert(DestPTy->getBitWidth() == SrcTy->getBitWidth() &&
142 SrcTy = NULL;
/freebsd-9.3-release/contrib/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
691 ArrayType *SrcTy = local
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/Transforms/Utils/
H A DValueMapper.h34 virtual Type *remapType(Type *SrcTy) = 0;
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp241 Type *SrcTy = CI->getOperand(0)->getType(); // A from above local
247 Type *SrcIntPtrTy = TD && SrcTy->isPtrOrPtrVectorTy() ?
248 TD->getIntPtrType(SrcTy) : 0;
253 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy,
259 if ((Res == Instruction::IntToPtr && SrcTy != DstIntPtrTy) ||
446 Type *DestTy = CI.getType(), *SrcTy = Src->getType(); local
452 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
773 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
780 if ((DestTy->isVectorTy() || ShouldChangeType(SrcTy, DestTy)) &&
782 assert(BitsToClear < SrcTy
1074 Type *SrcTy = Src->getType(), *DestTy = CI.getType(); local
1206 Type *SrcTy = OpI->getType(); local
1466 VectorType *SrcTy = cast<VectorType>(InVal->getType()); local
1731 Type *SrcTy = Src->getType(); local
[all...]
H A DInstCombineLoadStoreAlloca.cpp290 if (PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType())) {
293 if (DestTy->getAddressSpace() != SrcTy->getAddressSpace())
296 Type *SrcPTy = SrcTy->getElementType();
307 ? TD->getIntPtrType(SrcTy)
308 : Type::getInt64Ty(SrcTy->getContext());
312 SrcTy = cast<PointerType>(CastOp->getType());
313 SrcPTy = SrcTy->getElementType();
458 PointerType *SrcTy = dyn_cast<PointerType>(CastOp->getType()); local
459 if (SrcTy == 0) return 0;
461 Type *SrcPTy = SrcTy
[all...]
H A DInstCombineAndOrXor.cpp1293 Type *SrcTy = Op0C->getOperand(0)->getType(); local
1295 SrcTy == Op1C->getOperand(0)->getType() &&
1296 SrcTy->isIntOrIntVectorTy()) {
2181 Type *SrcTy = Op0C->getOperand(0)->getType(); local
2182 if (SrcTy == Op1C->getOperand(0)->getType() &&
2183 SrcTy->isIntOrIntVectorTy()) {
2495 Type *SrcTy = Op0C->getOperand(0)->getType(); local
2496 if (SrcTy == Op1C->getOperand(0)->getType() && SrcTy->isIntegerTy() &&
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp203 EVT SrcTy = TLI->getValueType(Src); local
206 if (!SrcTy.isSimple() || !DstTy.isSimple())
288 if (SrcTy.isVector() && ST->hasNEON()) {
290 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
319 if (SrcTy.isFloatingPoint() && ST->hasNEON()) {
321 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
351 if (SrcTy.isInteger() && ST->hasNEON()) {
353 DstTy.getSimpleVT(), SrcTy.getSimpleVT());
371 if (SrcTy.isInteger()) {
373 DstTy.getSimpleVT(), SrcTy
[all...]
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprScalar.cpp114 Value *EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy);
120 QualType SrcTy, QualType DstTy);
563 llvm::Type *SrcTy = Src->getType();
566 if (llvm::IntegerType *IntTy = dyn_cast<llvm::IntegerType>(SrcTy)) {
703 llvm::Type *SrcTy = Src->getType(); local
709 SrcTy = CGF.FloatTy;
719 if (SrcTy == DstTy)
727 if (isa<llvm::PointerType>(SrcTy))
741 if (isa<llvm::PointerType>(SrcTy)) {
759 if (isa<llvm::VectorType>(SrcTy) ||
813 EmitComplexToScalarConversion(CodeGenFunction::ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
988 llvm::Type *SrcTy = Src->getType(); local
3190 llvm::Type *SrcTy = Src->getType(); local
3258 EmitScalarConversion(Value *Src, QualType SrcTy, QualType DstTy) argument
3268 EmitComplexToScalarConversion(ComplexPairTy Src, QualType SrcTy, QualType DstTy) argument
[all...]
H A DCGCall.cpp636 llvm::Type *SrcTy = local
638 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy))
706 llvm::Type *SrcTy = local
709 // If SrcTy and Ty are the same, just do a load.
710 if (SrcTy == Ty)
715 if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) {
717 SrcTy = cast<llvm::PointerType>(SrcPtr->getType())->getElementType();
720 uint64_t SrcSize = CGF.CGM.getDataLayout().getTypeAllocSize(SrcTy);
725 (isa<llvm::IntegerType>(SrcTy) || isa<llvm::PointerType>(SrcTy))) {
793 llvm::Type *SrcTy = Src->getType(); local
2411 llvm::Type *SrcTy = local
[all...]
H A DCGObjC.cpp2886 QualType SrcTy = Ty; local
2887 SrcTy.addConst();
2888 SrcTy = C.getPointerType(SrcTy);
2893 ImplicitParamDecl srcDecl(FD, SourceLocation(), 0, SrcTy);
2915 DeclRefExpr SrcExpr(&srcDecl, false, SrcTy,
2917 UnaryOperator SRC(&SrcExpr, UO_Deref, SrcTy->getPointeeType(),
2967 QualType SrcTy = Ty; local
2968 SrcTy.addConst();
2969 SrcTy
[all...]
H A DCGObjCMac.cpp4168 llvm::Type * SrcTy = src->getType(); local
4169 if (!isa<llvm::PointerType>(SrcTy)) {
4170 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4190 llvm::Type * SrcTy = src->getType(); local
4191 if (!isa<llvm::PointerType>(SrcTy)) {
4192 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4217 llvm::Type * SrcTy = src->getType(); local
4218 if (!isa<llvm::PointerType>(SrcTy)) {
4219 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4237 llvm::Type * SrcTy local
6845 llvm::Type * SrcTy = src->getType(); local
6865 llvm::Type * SrcTy = src->getType(); local
6912 llvm::Type * SrcTy = src->getType(); local
6933 llvm::Type * SrcTy = src->getType(); local
[all...]
H A DMicrosoftCXXABI.cpp1721 const MemberPointerType *SrcTy = local
1724 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy);
1726 bool IsFunc = SrcTy->isMemberFunctionPointer();
1738 llvm::Value *IsNotNull = EmitMemberPointerIsNotNull(CGF, Src, SrcTy);
1821 const MemberPointerType *SrcTy = local
1827 if (MemberPointerConstantIsNull(SrcTy, Src))
1836 MSInheritanceModel SrcInheritance = getInheritanceFromMemptr(SrcTy);
1844 bool IsFunc = SrcTy->isMemberFunctionPointer();
H A DCGExprCXX.cpp1717 QualType SrcTy, QualType DestTy,
1749 SrcRecordTy = SrcTy->castAs<PointerType>()->getPointeeType();
1752 SrcRecordTy = SrcTy;
1816 QualType SrcTy = DCE->getSubExpr()->getType();
1821 bool ShouldNullCheckSrcValue = SrcTy->isPointerType();
1836 Value = EmitDynamicCastCall(*this, Value, SrcTy, DestTy, CastEnd);
1716 EmitDynamicCastCall(CodeGenFunction &CGF, llvm::Value *Value, QualType SrcTy, QualType DestTy, llvm::BasicBlock *CastEnd) argument
/freebsd-9.3-release/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1219 Type *SrcTy = SrcVal->getType();
1220 if (SrcTy->isVectorTy()) {
1238 const Type *SrcTy = SrcVal->getType();
1240 if (SrcTy->isVectorTy()) {
1258 const Type *SrcTy = SrcVal->getType();
1260 if (SrcTy->isVectorTy()) {
1324 Type *SrcTy = SrcVal->getType();
1327 if (SrcTy->getTypeID() == Type::VectorTyID) {
1329 const Type *SrcVecTy = SrcTy->getScalarType();
1348 assert(SrcTy
[all...]
/freebsd-9.3-release/contrib/llvm/include/llvm/IR/
H A DInstrTypes.h530 Type *SrcTy, ///< The Type from which the value should be cast.
536 Type *SrcTy, ///< The Type from which the value should be cast.
575 Type *SrcTy, ///< SrcTy of cast
589 /// the pair, casting SrcTy to DstTy.
594 Type *SrcTy, ///< SrcTy of 1st cast
595 Type *MidTy, ///< DstTy of 1st cast & SrcTy of 2nd cast
597 Type *SrcIntPtrTy, ///< Integer type corresponding to Ptr SrcTy, or null
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DCostModel.cpp443 Type *SrcTy = I->getOperand(0)->getType(); local
444 return TTI->getCastInstrCost(I->getOpcode(), I->getType(), SrcTy);
H A DScalarEvolution.cpp2807 Type *SrcTy = V->getType();
2808 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
2811 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty))
2813 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBits(Ty))
2824 Type *SrcTy = V->getType();
2825 assert((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
2828 if (getTypeSizeInBits(SrcTy) == getTypeSizeInBits(Ty))
2830 if (getTypeSizeInBits(SrcTy) > getTypeSizeInBit
[all...]
H A DInstructionSimplify.cpp2043 Type *SrcTy = SrcOp->getType(); local
2049 Q.TD->getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
2053 ConstantExpr::getIntToPtr(RHSC, SrcTy),
2057 if (RI->getOperand(0)->getType() == SrcTy)
2069 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
2079 // Compute the constant that would happen if we truncated to SrcTy then
2081 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
2129 if (MaxRecurse && SrcTy == RI->getOperand(0)->getType())
2138 // Compute the constant that would happen if we truncated to SrcTy then
2140 Constant *Trunc = ConstantExpr::getTrunc(CI, SrcTy);
[all...]
H A DValueTracking.cpp432 Type *SrcTy = I->getOperand(0)->getType(); local
438 SrcBitWidth = TD->getTypeSizeInBits(SrcTy->getScalarType());
440 SrcBitWidth = SrcTy->getScalarSizeInBits();
456 Type *SrcTy = I->getOperand(0)->getType(); local
457 if ((SrcTy->isIntegerTy() || SrcTy->isPointerTy()) &&
/freebsd-9.3-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaCast.cpp1604 QualType SrcTy, DestTy; local
1609 SrcTy = SrcType->getPointeeType();
1615 SrcTy = SrcType;
1620 if (Context.hasSameUnqualifiedType(DestTy, SrcTy)) {
1625 SrcTy->isAnyCharacterType() || SrcTy->isVoidType()) {
1629 if (SrcTy->getAs<TagType>() || DestTy->getAs<TagType>()) {
1634 if ((SrcTy->isUnsignedIntegerType() && DestTy->isSignedIntegerType()) ||
1635 (SrcTy->isSignedIntegerType() && DestTy->isUnsignedIntegerType())) {
1636 if (Context.getTypeSize(DestTy) == Context.getTypeSize(SrcTy)) {
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp395 EVT SrcTy = TLI->getValueType(Src); local
399 if (!SrcTy.isSimple() || !DstTy.isSimple())
452 SrcTy.getSimpleVT());
/freebsd-9.3-release/contrib/llvm/lib/Transforms/IPO/
H A DMergeFunctions.cpp728 Type *SrcTy = V->getType(); local
729 if (SrcTy->isIntegerTy() && DestTy->isPointerTy())
731 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())

Completed in 443 milliseconds

12