Lines Matching refs:CE1

1039       if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) {  in ConstantFoldBinaryInstruction()  local
1041 if (CE1->getOpcode() == Instruction::ZExt) { in ConstantFoldBinaryInstruction()
1044 CE1->getOperand(0)->getType()->getPrimitiveSizeInBits(); in ConstantFoldBinaryInstruction()
1051 if (CE1->getOpcode() == Instruction::PtrToInt && in ConstantFoldBinaryInstruction()
1052 isa<GlobalValue>(CE1->getOperand(0))) { in ConstantFoldBinaryInstruction()
1053 GlobalValue *GV = cast<GlobalValue>(CE1->getOperand(0)); in ConstantFoldBinaryInstruction()
1100 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1101 switch (CE1->getOpcode()) { in ConstantFoldBinaryInstruction()
1107 CmpInst::Predicate pred = (CmpInst::Predicate)CE1->getPredicate(); in ConstantFoldBinaryInstruction()
1109 return ConstantExpr::getCompare(pred, CE1->getOperand(0), in ConstantFoldBinaryInstruction()
1110 CE1->getOperand(1)); in ConstantFoldBinaryInstruction()
1116 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) in ConstantFoldBinaryInstruction() local
1117 if (CE1->getOpcode() == Instruction::ZExt) // Top bits known zero. in ConstantFoldBinaryInstruction()
1256 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldBinaryInstruction() local
1263 if (Instruction::isAssociative(Opcode) && CE1->getOpcode() == Opcode) { in ConstantFoldBinaryInstruction()
1264 Constant *T = ConstantExpr::get(Opcode, CE1->getOperand(1), C2); in ConstantFoldBinaryInstruction()
1266 return ConstantExpr::get(Opcode, CE1->getOperand(0), T); in ConstantFoldBinaryInstruction()
1355 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateFCmpRelation() local
1356 switch (CE1->getOpcode()) { in evaluateFCmpRelation()
1499 ConstantExpr *CE1 = cast<ConstantExpr>(V1); in evaluateICmpRelation() local
1500 Constant *CE1Op0 = CE1->getOperand(0); in evaluateICmpRelation()
1502 switch (CE1->getOpcode()) { in evaluateICmpRelation()
1527 if (V2->isNullValue() && CE1->getType()->isIntOrPtrTy()) { in evaluateICmpRelation()
1528 if (CE1->getOpcode() == Instruction::ZExt) isSigned = false; in evaluateICmpRelation()
1529 if (CE1->getOpcode() == Instruction::SExt) isSigned = true; in evaluateICmpRelation()
1537 GEPOperator *CE1GEP = cast<GEPOperator>(CE1); in evaluateICmpRelation()
1885 if (ConstantExpr *CE1 = dyn_cast<ConstantExpr>(C1)) { in ConstantFoldCompareInstruction() local
1886 if ((CE1->getOpcode() == Instruction::SExt && in ConstantFoldCompareInstruction()
1888 (CE1->getOpcode() == Instruction::ZExt && in ConstantFoldCompareInstruction()
1890 Constant *CE1Op0 = CE1->getOperand(0); in ConstantFoldCompareInstruction()
1891 Constant *CE1Inverse = ConstantExpr::getTrunc(CE1, CE1Op0->getType()); in ConstantFoldCompareInstruction()
1895 if (ConstantExpr::getCast(CE1->getOpcode(), C2Inverse, in ConstantFoldCompareInstruction()