• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/llvmCore-3425.0.34/lib/Analysis/

Lines Matching refs:Constant

71   DenseMap<Value *, Constant *> SimplifiedValues;
232 if (!isa<Constant>(*I) && !SimplifiedValues.lookup(*I))
253 if (Constant *SimpleOp = SimplifiedValues.lookup(GTI.getOperand()))
348 // Constant GEPs are modeled as free.
360 if (Constant *COp = dyn_cast<Constant>(I.getOperand(0)))
361 if (Constant *C = ConstantExpr::getBitCast(COp, I.getType())) {
385 if (Constant *COp = dyn_cast<Constant>(I.getOperand(0)))
386 if (Constant *C = ConstantExpr::getPtrToInt(COp, I.getType())) {
418 if (Constant *COp = dyn_cast<Constant>(I.getOperand(0)))
419 if (Constant *C = ConstantExpr::getIntToPtr(COp, I.getType())) {
445 if (Constant *COp = dyn_cast<Constant>(I.getOperand(0)))
446 if (Constant *C = ConstantExpr::getCast(I.getOpcode(), COp, I.getType())) {
459 Constant *Ops[1] = { dyn_cast<Constant>(Operand) };
461 if (Constant *C = ConstantFoldInstOperands(I.getOpcode(), I.getType(),
476 if (!isa<Constant>(LHS))
477 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS))
479 if (!isa<Constant>(RHS))
480 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS))
482 if (Constant *CLHS = dyn_cast<Constant>(LHS))
483 if (Constant *CRHS = dyn_cast<Constant>(RHS))
484 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) {
499 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
500 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
501 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) {
549 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset);
550 Constant *CRHS = ConstantInt::get(RHS->getContext(), RHSOffset);
551 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) {
566 if (!isa<Constant>(LHS))
567 if (Constant *SimpleLHS = SimplifiedValues.lookup(LHS))
569 if (!isa<Constant>(RHS))
570 if (Constant *SimpleRHS = SimplifiedValues.lookup(RHS))
573 if (Constant *C = dyn_cast_or_null<Constant>(SimpleV)) {
900 if (Constant *C = dyn_cast<Constant>(CAI))