Lines Matching refs:cast
283 Type *PtrTy = cast<PointerType>(Addr->getType()->getScalarType());
336 LoadInst *Load = cast<LoadInst>(I);
351 ? cast<StoreInst>(I)->getPointerOperand()
352 : cast<LoadInst>(I)->getPointerOperand();
463 ? cast<StoreInst>(I)->getPointerOperand()
464 : cast<LoadInst>(I)->getPointerOperand();
470 Value *StoredValue = cast<StoreInst>(I)->getValueOperand();
493 ? cast<StoreInst>(I)->getAlignment()
494 : cast<LoadInst>(I)->getAlignment();
495 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
579 Type *OrigTy = cast<PointerType>(Addr->getType())->getElementType();
584 // We are loading a pointer, so we need to cast the return value.
586 Instruction *Cast = CastInst::Create(Instruction::IntToPtr, C, OrigTy);
587 ReplaceInstWithInst(I, Cast);
643 // The value is a pointer, so we need to cast the return value.
666 Type *OrigTy = cast<PointerType>(OrigPtrTy)->getElementType();