Lines Matching defs:V1
268 Constant *V1, Constant *V2) {
271 if (Cond->isAllOnesValue()) return V1;
280 Constant *V1Element = ConstantExpr::getExtractElement(V1,
304 return PoisonValue::get(V1->getType());
307 if (isa<UndefValue>(V1)) return V1;
311 if (V1 == V2) return V1;
313 if (isa<PoisonValue>(V1))
316 return V1;
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,
453 auto *V1VTy = cast<VectorType>(V1->getType());
467 Type *Ty = IntegerType::get(V1->getContext(), 32);
469 ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, 0));
502 Type *Ty = IntegerType::get(V1->getContext(), 32);
503 InElt = ConstantExpr::getExtractElement(V1, ConstantInt::get(Ty, Elt));
1016 static ICmpInst::Predicate evaluateICmpRelation(Constant *V1, Constant *V2) {
1017 assert(V1->getType() == V2->getType() &&
1019 if (V1 == V2) return ICmpInst::ICMP_EQ;
1022 if (!V1->getType()->isPointerTy())
1038 if (GetComplexity(V1) < GetComplexity(V2)) {
1039 ICmpInst::Predicate SwappedRelation = evaluateICmpRelation(V2, V1);
1045 if (const BlockAddress *BA = dyn_cast<BlockAddress>(V1)) {
1056 } else if (const GlobalValue *GV = dyn_cast<GlobalValue>(V1)) {
1074 } else if (auto *CE1 = dyn_cast<ConstantExpr>(V1)) {
1189 const APInt &V1 = cast<ConstantInt>(C1)->getValue();
1191 return ConstantInt::get(ResultTy, ICmpInst::compare(V1, V2, Predicate));