Home | History | Annotate | Download | only in IPO

Lines Matching full:getoperand

220         if (SI->getOperand(0) == V) return true;
232 SI->getOperand(1))) {
233 Value *StoredVal = SI->getOperand(0);
246 cast<LoadInst>(StoredVal)->getOperand(0) == GV) {
375 V = I->getOperand(0);
453 Instruction *J = dyn_cast<Instruction>(I->getOperand(0));
508 if (!isa<ConstantExpr>(GEP->getOperand(0))) {
561 return SI->getOperand(0) != V;
567 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) ||
568 !cast<Constant>(GEPI->getOperand(1))->isNullValue())
593 if (U->getNumOperands() < 3 || !isa<Constant>(U->getOperand(1)) ||
594 !cast<Constant>(U->getOperand(1))->isNullValue() ||
595 !isa<ConstantInt>(U->getOperand(2)))
604 ConstantInt *Idx = cast<ConstantInt>(U->getOperand(2));
633 ConstantInt *IdxVal = dyn_cast<ConstantInt>(GEPI.getOperand());
754 unsigned Val = cast<ConstantInt>(GEP->getOperand(2))->getZExtValue();
765 Idxs.push_back(CE->getOperand(i));
772 Idxs.push_back(GEPI->getOperand(i));
814 if (SI->getOperand(0) == V) {
838 isa<ConstantPointerNull>(UI->getOperand(1))) {
879 if (SI->getOperand(1) == V) {
961 assert(GlobalUser->getOperand(1) == GV &&
1168 if (SI->getOperand(0) == V && SI->getOperand(1) != GV)
1212 if (SI->getOperand(1) == GV) {
1230 if (SI->getOperand(1) == GV) {
1259 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
1337 if (LI->getOperand(0) == GV)
1368 Result = new LoadInst(GetHeapSROAValue(LI->getOperand(0), FieldNo,
1398 assert(isa<ConstantPointerNull>(SCI->getOperand(1)));
1401 Value *NPtr = GetHeapSROAValue(SCI->getOperand(0), 0,
1414 assert(GEPI->getNumOperands() >= 3 && isa<ConstantInt>(GEPI->getOperand(2))
1418 unsigned FieldNo = cast<ConstantInt>(GEPI->getOperand(2))->getZExtValue();
1419 Value *NewPtr = GetHeapSROAValue(GEPI->getOperand(0), FieldNo,
1424 GEPIdx.push_back(GEPI->getOperand(1));
1602 assert(isa<ConstantPointerNull>(SI->getOperand(0)) &&
1748 CI = cast<CallInst>(BCI->getOperand(0));
1846 bool StoringOther = SI->getOperand(0) == OtherVal;
1849 if (StoringOther || SI->getOperand(0) == InitVal) {
1856 Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
1862 assert(LI->getOperand(0) == GV && "Not a copy!");
1869 StoreVal = StoredVal->getOperand(0);
2172 if (isa<ConstantPointerNull>(CS->getOperand(1)))
2176 if (!isa<Function>(CS->getOperand(1)))
2180 ConstantInt *CI = cast<ConstantInt>(CS->getOperand(0));
2198 Result.push_back(dyn_cast<Function>(CS->getOperand(1)));
2292 Constant *Op = cast<Constant>(C->getOperand(i));
2306 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, TD);
2313 TD->getTypeSizeInBits(CE->getOperand(0)->getType()))
2315 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, TD);
2320 if (!isa<ConstantInt>(CE->getOperand(i)))
2322 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, TD);
2326 if (!isa<ConstantInt>(CE->getOperand(1)))
2328 return isSimpleEnoughValueToCommit(CE->getOperand(0), SimpleConstants, TD);
2363 isa<GlobalVariable>(CE->getOperand(0)) &&
2365 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2386 isa<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));
2455 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2573 isa<GlobalVariable>(CE->getOperand(0))) {
2574 GlobalVariable *GV = cast<GlobalVariable>(CE->getOperand(0));
2598 Constant *Ptr = getVal(SI->getOperand(1));
2610 Constant *Val = getVal(SI->getOperand(0));
2626 Ptr = CE->getOperand(0);
2668 getVal(BO->getOperand(0)),
2669 getVal(BO->getOperand(1)));
2674 getVal(CI->getOperand(0)),
2675 getVal(CI->getOperand(1)));
2680 getVal(CI->getOperand(0)),
2685 InstResult = ConstantExpr::getSelect(getVal(SI->getOperand(0)),
2686 getVal(SI->getOperand(1)),
2687 getVal(SI->getOperand(2)));
2691 Constant *P = getVal(GEP->getOperand(0));
2708 Constant *Ptr = getVal(LI->getOperand(0));
2952 RetVal = getVal(RI->getOperand(0));