Home | History | Annotate | Download | only in Scalar

Lines Matching defs:Val

304 /// Returns null if Val is null or not an appropriate constant.
305 static Constant *getKnownConstant(Value *Val, ConstantPreference Preference) {
306 if (!Val)
310 if (UndefValue *U = dyn_cast<UndefValue>(Val))
314 return dyn_cast<BlockAddress>(Val->stripPointerCasts());
316 return dyn_cast<ConstantInt>(Val);
584 if (Constant *Val = KnownCond ? TrueVal : FalseVal)
585 Result.push_back(std::make_pair(Val, Conds[i].second));
1110 Constant *Val = PredValues[i].first;
1113 if (isa<UndefValue>(Val))
1116 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero());
1118 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor();
1122 DestBB = cast<BlockAddress>(Val)->getBasicBlock();