Lines Matching refs:CE1
1051 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1053 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction()
1056 CE1->getOperand(0)->getType()->getPrimitiveSizeInBits(); in ConstantFoldBinaryInstruction()
1063 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
1064 isa<GlobalValue>(CE1->getOperand(0))) { in ConstantFoldBinaryInstruction()
1065 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0)); in ConstantFoldBinaryInstruction()
1092 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1093 switch (CE1->getOpcode()) { in ConstantFoldBinaryInstruction()
1099 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate(); in ConstantFoldBinaryInstruction()
1101 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1102 CE1->getOperand(1)); in ConstantFoldBinaryInstruction()
1108 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) in ConstantFoldBinaryInstruction() local
1109 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction()
1223 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1230 if (Instruction::isAssociative(Opcode) && CE1->getOpcode() == Opcode) { in ConstantFoldBinaryInstruction()
1231 Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2); in ConstantFoldBinaryInstruction()
1233 return ConstantExpr::get(Opcode, CE1->getOperand(0), T); in ConstantFoldBinaryInstruction()
1378 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateFCmpRelation() local
1379 switch (CE1->getOpcode()) { in evaluateFCmpRelation()
1517 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateICmpRelation() local
1518 Constant *CE1Op0 = CE1->getOperand(0); in evaluateICmpRelation()
1520 switch (CE1->getOpcode()) { in evaluateICmpRelation()
1540 (CE1->getType()->isPointerTy() || CE1->getType()->isIntegerTy())) { in evaluateICmpRelation()
1541 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
1542 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1550 GEPOperator *CE1GEP = cast<GEPOperator>(CE1); in evaluateICmpRelation()
1568 for (unsigned i = 1, e = CE1->getNumOperands(); i != e; ++i) in evaluateICmpRelation()
1569 if (!CE1->getOperand(i)->isNullValue()) in evaluateICmpRelation()
1592 assert(CE1->getNumOperands() == 2 && in evaluateICmpRelation()
1593 !CE1->getOperand(1)->isNullValue() && in evaluateICmpRelation()
1631 if (!CE1->isGEPWithNoNotionalOverIndexing() || in evaluateICmpRelation()
1636 gep_type_iterator GTI = gep_type_begin(CE1); in evaluateICmpRelation()
1637 for (;i != CE1->getNumOperands() && i != CE2->getNumOperands(); in evaluateICmpRelation()
1639 switch (IdxCompare(CE1->getOperand(i), in evaluateICmpRelation()
1648 for (; i < CE1->getNumOperands(); ++i) in evaluateICmpRelation()
1649 if (!CE1->getOperand(i)->isNullValue()) { in evaluateICmpRelation()
1650 if (isa<ConstantInt>(CE1->getOperand(i))) in evaluateICmpRelation()
1970 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldCompareInstruction() local
1971 if ((CE1->getOpcode() == Instruction::SExt && in ConstantFoldCompareInstruction()
1973 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
1975 Constant *CE1Op0 = CE1->getOperand(0); in ConstantFoldCompareInstruction()
1976 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
1980 if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse, in ConstantFoldCompareInstruction()