Home | History | Annotate | Download | only in IPO

Lines Matching defs:Cast

247                        cast<LoadInst>(StoredVal)->getOperand(0) == GV) {
319 Types.push_back(cast<PointerType>(GV->getType())->getElementType());
329 SequentialType *STy = cast<SequentialType>(Ty);
334 StructType *STy = cast<StructType>(Ty);
366 Instruction *I = cast<Instruction>(V);
497 // Pointer cast, delete any stores and memsets to the global.
569 !cast<Constant>(GEPI->getOperand(1))->isNullValue())
587 cast<ConstantExpr>(U)->getOpcode() != Instruction::GetElementPtr))
595 !cast<Constant>(U->getOperand(1))->isNullValue() ||
605 ConstantInt *Idx = cast<ConstantInt>(U->getOperand(2));
708 NumElements = cast<VectorType>(STy)->getNumElements();
749 cast<ConstantExpr>(GEP)->getOpcode()==Instruction::GetElementPtr)||
755 unsigned Val = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
767 NewPtr = ConstantExpr::getGetElementPtr(cast<Constant>(NewPtr), Idxs);
769 GetElementPtrInst *GEPI = cast<GetElementPtrInst>(GEP);
783 cast<ConstantExpr>(GEP)->destroyConstant();
875 Instruction *I = cast<Instruction>(*UI++);
1053 Instruction *User = cast<Instruction>(CI->use_back());
1092 LoadInst *LI = cast<LoadInst>(GV->use_back());
1100 ICmpInst *ICI = cast<ICmpInst>(LoadUse.getUser());
1134 cast<StoreInst>(InitBool->use_back())->eraseFromParent();
1162 const Instruction *Inst = cast<Instruction>(*UI);
1209 Instruction *U = cast<Instruction>(*Alloc->use_begin());
1256 const Instruction *User = cast<Instruction>(*UI);
1377 cast<StructType>(cast<PointerType>(PN->getType())->getElementType());
1419 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1441 PHINode *PN = cast<PHINode>(LoadUser);
1449 Instruction *User = cast<Instruction>(*UI++);
1463 Instruction *User = cast<Instruction>(*UI++);
1480 StructType *STy = cast<StructType>(MAT);
1594 Instruction *User = cast<Instruction>(*UI++);
1602 StoreInst *SI = cast<StoreInst>(User);
1608 PointerType *PT = cast<PointerType>(FieldGlobals[i]->getType());
1621 PHINode *FieldPN = cast<PHINode>(InsertedScalarizedValues[PN][FieldNo]);
1657 return cast<GlobalVariable>(FieldGlobals[0]);
1662 /// cast of malloc.
1745 Instruction *Cast = new BitCastInst(Malloc, CI->getType(), "tmp", CI);
1746 CI->replaceAllUsesWith(Cast);
1749 CI = cast<CallInst>(BCI->getOperand(0));
1751 CI = cast<CallInst>(Malloc);
1837 // If initialized to zero and storing one into the global, we can use a cast
1844 Instruction *UI = cast<Instruction>(GV->use_back());
1857 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
1859 // If we've already replaced the input, StoredVal will be a cast or
1878 LoadInst *LI = cast<LoadInst>(UI);
2067 CallSite User(cast<Instruction>(*UI));
2090 CallSite User(cast<Instruction>(*UI));
2166 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
2171 ConstantStruct *CS = cast<ConstantStruct>(*i);
2180 ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
2193 ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
2197 ConstantStruct *CS = cast<ConstantStruct>(*i);
2213 cast <StructType>(
2214 cast<ArrayType>(GCL->getType()->getElementType())->getElementType());
2292 Constant *Op = cast<Constant>(C->getOperand(i));
2302 ConstantExpr *CE = cast<ConstantExpr>(C);
2345 /// enough for us to understand. In particular, if it is a cast to anything
2352 if (!cast<PointerType>(C->getType())->getElementType()->isSingleValueType())
2364 cast<GEPOperator>(CE)->isInBounds()) {
2365 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2389 return cast<GlobalVariable>(CE->getOperand(0))->hasUniqueInitializer();
2414 ConstantInt *CU = cast<ConstantInt>(Addr->getOperand(OpNo));
2423 ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo));
2424 SequentialType *InitTy = cast<SequentialType>(Init->getType());
2441 return ConstantArray::get(cast<ArrayType>(InitTy), Elts);
2454 ConstantExpr *CE = cast<ConstantExpr>(Addr);
2455 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2574 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2628 Type *NewTy = cast<PointerType>(Ptr->getType())->getElementType();
2682 DEBUG(dbgs() << "Found a Cast! Simplifying: " << *InstResult
2698 cast<GEPOperator>(GEP)->isInBounds());
2782 ConstantInt *Size = cast<ConstantInt>(II->getArgOperand(0));
2786 Type *ElemTy = cast<PointerType>(GV->getType())->getElementType();
2950 ReturnInst *RI = cast<ReturnInst>(CurBB->getTerminator());
3066 Constant *Cast = llvm::ConstantExpr::getBitCast(*I, Int8PtrTy);
3067 UsedArray.push_back(Cast);
3170 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts());
3204 GlobalValue *Target = cast<GlobalValue>(Aliasee->stripPointerCasts());