Home | History | Annotate | Download | only in IPO

Lines Matching refs:cast

93         SequentialType *STy = cast<SequentialType>(Ty);
98 StructType *STy = cast<StructType>(Ty);
130 Instruction *I = cast<Instruction>(V);
247 User *U = cast<User>(UV);
269 // Pointer cast, delete any stores and memsets to the global.
341 !cast<Constant>(GEPI->getOperand(1))->isNullValue())
357 cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr))
365 !cast<Constant>(U->getOperand(1))->isNullValue() ||
375 ConstantInt *Idx = cast<ConstantInt>(U->getOperand(2));
479 NumElements = cast<VectorType>(STy)->getNumElements();
522 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)||
528 unsigned Val = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
542 ConstantExpr::getGetElementPtr(NewTy, cast<Constant>(NewPtr), Idxs);
544 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP);
558 cast<ConstantExpr>(GEP)->destroyConstant();
643 Instruction *I = cast<Instruction>(*UI++);
816 Instruction *User = cast<Instruction>(CI->user_back());
854 LoadInst *LI = cast<LoadInst>(GV->user_back());
896 cast<StoreInst>(InitBool->user_back())->eraseFromParent();
922 const Instruction *Inst = cast<Instruction>(U);
968 Instruction *U = cast<Instruction>(*Alloc->user_begin());
1014 const Instruction *UI = cast<Instruction>(U);
1129 PHINode *PN = cast<PHINode>(V);
1133 PointerType *PTy = cast<PointerType>(PN->getType());
1134 StructType *ST = cast<StructType>(PTy->getElementType());
1175 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1197 PHINode *PN = cast<PHINode>(LoadUser);
1205 Instruction *User = cast<Instruction>(*UI++);
1217 Instruction *User = cast<Instruction>(*UI++);
1234 StructType *STy = cast<StructType>(MAT);
1351 Instruction *User = cast<Instruction>(*UI++);
1359 StoreInst *SI = cast<StoreInst>(User);
1365 Type *ValTy = cast<GlobalValue>(FieldGlobals[i])->getValueType();
1378 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1414 return cast<GlobalVariable>(FieldGlobals[0]);
1418 /// value stored it that is a malloc or cast of malloc.
1498 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI);
1499 CI->replaceAllUsesWith(Cast);
1502 CI = cast<CallInst>(BCI->getOperand(0));
1504 CI = cast<CallInst>(Malloc);
1588 // If initialized to zero and storing one into the global, we can use a cast
1595 Instruction *UI = cast<Instruction>(GV->user_back());
1608 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
1610 // If we've already replaced the input, StoredVal will be a cast or
1629 LoadInst *LI = cast<LoadInst>(UI);
1784 Users.push_back(cast<ConstantExpr>(U));
1799 Instruction *UI = cast<Instruction>(UU);
1984 CallSite CS(cast<Instruction>(U));
2007 CallSite CS(cast<Instruction>(U));
2115 ConstantInt *CU = cast<ConstantInt>(Addr->getOperand(OpNo));
2124 ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo));
2125 SequentialType *InitTy = cast<SequentialType>(Init->getType());
2142 return ConstantArray::get(cast<ArrayType>(InitTy), Elts);
2155 ConstantExpr *CE = cast<ConstantExpr>(Addr);
2156 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2204 Constant *Cast
2206 UsedArray.push_back(Cast);
2319 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts());