Lines Matching refs:cast
59 FunctionType *get(FunctionType *T) {return cast<FunctionType>(get((Type*)T));}
123 if (cast<StructType>(DstTy)->isOpaque()) {
138 if (PT->getAddressSpace() != cast<PointerType>(SrcTy)->getAddressSpace())
141 if (FT->isVarArg() != cast<FunctionType>(SrcTy)->isVarArg())
144 StructType *SSTy = cast<StructType>(SrcTy);
149 if (DATy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
152 if (DVTy->getNumElements() != cast<ArrayType>(SrcTy)->getNumElements())
180 StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]);
229 if (!isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral()) {
258 cast<ArrayType>(Ty)->getNumElements());
261 cast<VectorType>(Ty)->getNumElements());
264 cast<PointerType>(Ty)->getAddressSpace());
268 cast<FunctionType>(Ty)->isVarArg());
272 cast<StructType>(Ty)->isPacked());
299 StructType *STy = cast<StructType>(Ty);
532 ArrayType *DAT = cast<ArrayType>(DGV->getType()->getElementType());
533 ArrayType *SAT = cast<ArrayType>(I->getType()->getElementType());
559 ArrayType *DstTy = cast<ArrayType>(DstGV->getType()->getElementType());
561 cast<ArrayType>(TypeMap.get(SrcGV->getType()->getElementType()));
622 return linkAppendingVarProto(cast<GlobalVariable>(DGV), SGV);
708 // Any uses of DF need to change to NewDF, with cast.
750 // Any uses of DGV need to change to NewDA, with cast.
767 ArrayType *DstAT = cast<ArrayType>(AVI.DstInit->getType());
778 ArrayType *SrcAT = cast<ArrayType>(SrcInit->getType());
782 ArrayType *NewType = cast<ArrayType>(AVI.NewGV->getType()->getElementType());
798 GlobalVariable *DGV = cast<GlobalVariable>(ValueMap[I]);
853 GlobalAlias *DA = cast<GlobalAlias>(ValueMap[I]);
966 linkFunctionBody(cast<Function>(ValueMap[SF]), SF);