Home | History | Annotate | Download | only in IR

Lines Matching full:getoperand

85   Type *SrcTy = Op->getOperand(0)->getType();
223 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
232 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
238 Constant *RHS = ExtractConstantBytes(CE->getOperand(1), ByteStart,ByteSize);
246 Constant *LHS = ExtractConstantBytes(CE->getOperand(0), ByteStart,ByteSize);
252 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1));
267 return ExtractConstantBytes(CE->getOperand(0), ByteStart+ShAmt, ByteSize);
274 ConstantInt *Amt = dyn_cast<ConstantInt>(CE->getOperand(1));
289 return ExtractConstantBytes(CE->getOperand(0), ByteStart-ShAmt, ByteSize);
297 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth();
306 return CE->getOperand(0);
311 return ExtractConstantBytes(CE->getOperand(0), ByteStart, ByteSize);
317 Constant *Res = CE->getOperand(0);
530 return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy);
536 if (!CE->getOperand(i)->isNullValue()) {
542 return ConstantExpr::getPointerCast(CE->getOperand(0), DestTy);
611 CE->getOperand(0)->isNullValue()) {
613 cast<PointerType>(CE->getOperand(0)->getType())->getElementType();
616 Constant *Idx = CE->getOperand(1);
625 CE->getOperand(1)->isNullValue()) {
629 ConstantInt *CI = cast<ConstantInt>(CE->getOperand(2));
638 if (Constant *C = getFoldedOffsetOf(Ty, CE->getOperand(2),
705 ConstantInt *Cond = dyn_cast<ConstantInt>(CondV->getOperand(i));
728 if (TrueVal->getOperand(0) == Cond)
729 return ConstantExpr::getSelect(Cond, TrueVal->getOperand(1), V2);
733 if (FalseVal->getOperand(0) == Cond)
734 return ConstantExpr::getSelect(Cond, V1, FalseVal->getOperand(2));
974 CE1->getOperand(0)->getType()->getPrimitiveSizeInBits();
982 isa<GlobalValue>(CE1->getOperand(0))) {
983 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0));
1019 return ConstantExpr::getCompare(pred, CE1->getOperand(0),
1020 CE1->getOperand(1));
1159 Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2);
1161 return ConstantExpr::get(Opcode, CE1->getOperand(0), T);
1424 Constant *CE1Op0 = CE1->getOperand(0);
1470 if (!CE1->getOperand(i)->isNullValue())
1494 !CE1->getOperand(1)->isNullValue() &&
1504 Constant *CE2Op0 = CE2->getOperand(0);
1533 switch (IdxCompare(CE1->getOperand(i),
1534 CE2->getOperand(i), GTI.getIndexedType())) {
1543 if (!CE1->getOperand(i)->isNullValue()) {
1544 if (isa<ConstantInt>(CE1->getOperand(i)))
1551 if (!CE2->getOperand(i)->isNullValue()) {
1552 if (isa<ConstantInt>(CE2->getOperand(i)))
1843 Constant *CE2Op0 = CE2->getOperand(0);
1855 Constant *CE1Op0 = CE1->getOperand(0);
1946 NewIndices.push_back(CE->getOperand(i));
1950 Constant *Combined = CE->getOperand(CE->getNumOperands()-1);
1968 ConstantExpr::getGetElementPtr(CE->getOperand(0), NewIndices,
1985 dyn_cast<PointerType>(CE->getOperand(0)->getType());
1995 return ConstantExpr::getGetElementPtr((Constant*)CE->getOperand(0),