Lines Matching refs:CE1

1264       if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) {  in ConstantFoldBinaryInstruction()  local
1266 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction()
1269 CE1->getOperand(0)->getType()->getPrimitiveSizeInBits(); in ConstantFoldBinaryInstruction()
1276 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
1277 isa<GlobalValue>(CE1->getOperand(0))) { in ConstantFoldBinaryInstruction()
1278 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0)); in ConstantFoldBinaryInstruction()
1325 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1326 switch (CE1->getOpcode()) { in ConstantFoldBinaryInstruction()
1332 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate(); in ConstantFoldBinaryInstruction()
1334 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1335 CE1->getOperand(1)); in ConstantFoldBinaryInstruction()
1341 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) in ConstantFoldBinaryInstruction() local
1342 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction()
1472 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1479 if (Instruction::isAssociative(Opcode) && CE1->getOpcode() == Opcode) { in ConstantFoldBinaryInstruction()
1480 Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2); in ConstantFoldBinaryInstruction()
1482 return ConstantExpr::get(Opcode, CE1->getOperand(0), T); in ConstantFoldBinaryInstruction()
1628 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateFCmpRelation() local
1629 switch (CE1->getOpcode()) { in evaluateFCmpRelation()
1772 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateICmpRelation() local
1773 Constant *CE1Op0 = CE1->getOperand(0); in evaluateICmpRelation()
1775 switch (CE1->getOpcode()) { in evaluateICmpRelation()
1800 if (V2->isNullValue() && CE1->getType()->isIntOrPtrTy()) { in evaluateICmpRelation()
1801 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
1802 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1810 GEPOperator *CE1GEP = cast<GEPOperator>(CE1); in evaluateICmpRelation()
1828 for (unsigned i = 1, e = CE1->getNumOperands(); i != e; ++i) in evaluateICmpRelation()
1829 if (!CE1->getOperand(i)->isNullValue()) in evaluateICmpRelation()
1852 assert(CE1->getNumOperands() == 2 && in evaluateICmpRelation()
1853 !CE1->getOperand(1)->isNullValue() && in evaluateICmpRelation()
1891 if (!CE1->isGEPWithNoNotionalOverIndexing() || in evaluateICmpRelation()
1896 gep_type_iterator GTI = gep_type_begin(CE1); in evaluateICmpRelation()
1897 for (;i != CE1->getNumOperands() && i != CE2->getNumOperands(); in evaluateICmpRelation()
1899 switch (IdxCompare(CE1->getOperand(i), in evaluateICmpRelation()
1908 for (; i < CE1->getNumOperands(); ++i) in evaluateICmpRelation()
1909 if (!CE1->getOperand(i)->isNullValue()) { in evaluateICmpRelation()
1910 if (isa<ConstantInt>(CE1->getOperand(i))) in evaluateICmpRelation()
2260 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldCompareInstruction() local
2261 if ((CE1->getOpcode() == Instruction::SExt && in ConstantFoldCompareInstruction()
2263 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
2265 Constant *CE1Op0 = CE1->getOperand(0); in ConstantFoldCompareInstruction()
2266 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
2270 if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse, in ConstantFoldCompareInstruction()