Lines Matching refs:dyn_cast
159 getElementPtrInst* GEP = dyn_cast<getElementPtrInst>(Val); in IsIndirect()
170 Value* V2 = dyn_cast<Value>(*I); in IsIndirect()
186 P.Val = dyn_cast<Value>(Arg); in AddParam()
201 if (Arg->hasByValAttr() && dyn_cast<PointerType>(T)) { in CalculateArgumentSize()
202 T = dyn_cast<PointerType>(T)->getElementType(); in CalculateArgumentSize()
246 LoadInst* Load = dyn_cast<LoadInst>(V); in Propagate()
247 GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V); in Propagate()
260 if (dyn_cast<PointerType>(Op->getType())->getAddressSpace() != Addrspace) { in Propagate()
261 Op = new BitCastInst(Op, PointerType::get(dyn_cast<PointerType>( in Propagate()
263 Name, dyn_cast<Instruction>(V)); in Propagate()
269 dyn_cast<Instruction>(V)); in Propagate()
271 V = dyn_cast<Value>(GEP2); in Propagate()
281 PointerType *OrigPtrType = dyn_cast<PointerType>(OrigPtr->getType()); in Propagate()
303 Value* V2 = dyn_cast<Value>(Users[i]); in Propagate()
329 Argument *Arg = dyn_cast<Argument>(P.Val); in ConstantRead()
331 PointerType * ArgPtrType = dyn_cast<PointerType>(P.Val->getType()); in ConstantRead()
405 PointerType *PT = dyn_cast<PointerType>(T); in getSpecialTypeName()
409 ST = dyn_cast<StructType>(PT->getElementType()); in getSpecialTypeName()