Lines Matching defs:V2
268 Constant *V1, Constant *V2) {
270 if (Cond->isNullValue()) return V2;
282 Constant *V2Element = ConstantExpr::getExtractElement(V2,
308 return V2;
311 if (V1 == V2) return V1;
314 return V2;
315 if (isa<PoisonValue>(V2))
339 if (isa<UndefValue>(V1) && NotPoison(V2)) return V2;
340 if (isa<UndefValue>(V2) && NotPoison(V1)) return V1;
451 Constant *llvm::ConstantFoldShuffleVectorInstruction(Constant *V1, Constant *V2,
497 Type *Ty = IntegerType::get(V2->getContext(), 32);
499 ConstantExpr::getExtractElement(V2,
1016 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2) {
1017 assert(V1->getType() == V2->getType() &&
1019 if (V1 == V2) return ICmpInst::ICMP_EQ;
1038 if (GetComplexity(V1) < GetComplexity(V2)) {
1039 ICmpInst::Predicate SwappedRelation = evaluateICmpRelation(V2, V1);
1047 if (const BlockAddress *BA2 = dyn_cast<BlockAddress>(V2)) {
1053 } else if (isa<ConstantPointerNull>(V2)) {
1059 if (const GlobalValue *GV2 = dyn_cast<GlobalValue>(V2)) {
1061 } else if (isa<BlockAddress>(V2)) {
1063 } else if (isa<ConstantPointerNull>(V2)) {
1084 if (isa<ConstantPointerNull>(V2)) {
1093 } else if (const GlobalValue *GV2 = dyn_cast<GlobalValue>(V2)) {
1101 } else if (const auto *CE2GEP = dyn_cast<GEPOperator>(V2)) {
1190 const APInt &V2 = cast<ConstantInt>(C2)->getValue();
1191 return ConstantInt::get(ResultTy, ICmpInst::compare(V1, V2, Predicate));