Home | History | Annotate | Download | only in IPO

Lines Matching refs:isa

159   if (isa<GlobalValue>(C)) return false;
185 if (!isa<PointerType>(CE->getType())) return true;
217 } else if (isa<LoadInst>(StoredVal) &&
234 } else if (isa<GetElementPtrInst>(I)) {
236 } else if (isa<SelectInst>(I)) {
244 } else if (isa<CmpInst>(I)) {
285 } else if (isa<ConstantAggregateZero>(Agg)) {
293 } else if (isa<UndefValue>(Agg)) {
347 if (!isa<ConstantExpr>(GEP->getOperand(0))) {
390 if (isa<LoadInst>(I)) return true;
400 if (GEPI->getNumOperands() < 3 || !isa<Constant>(GEPI->getOperand(1)) ||
417 if (!isa<GetElementPtrInst>(U) &&
418 (!isa<ConstantExpr>(U) ||
426 if (U->getNumOperands() < 3 || !isa<Constant>(U->getOperand(1)) ||
428 !isa<ConstantInt>(U->getOperand(2)))
582 assert(((isa<ConstantExpr>(GEP) &&
584 isa<GetElementPtrInst>(GEP)) && "NonGEP CE's are not SRAable!");
646 if (isa<LoadInst>(U)) {
672 } else if (isa<ICmpInst>(U) &&
673 isa<ConstantPointerNull>(UI->getOperand(1))) {
695 } else if (isa<StoreInst>(U)) {
718 } else if (isa<CallInst>(I) || isa<InvokeInst>(I)) {
792 } else if (isa<StoreInst>(GlobalUser)) {
801 assert((isa<PHINode>(GlobalUser) || isa<SelectInst>(GlobalUser) ||
802 isa<ConstantExpr>(GlobalUser) || isa<CmpInst>(GlobalUser)) &&
917 if (!isa<ICmpInst>(LoadUse.getUser())) {
983 if (isa<LoadInst>(Inst) || isa<CmpInst>(Inst)) {
994 if (isa<GetElementPtrInst>(Inst) && Inst->getNumOperands() >= 3) {
1040 } else if (isa<BitCastInst>(U)) {
1079 if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
1219 assert(isa<ConstantPointerNull>(SCI->getOperand(1)));
1235 assert(GEPI->getNumOperands() >= 3 && isa<ConstantInt>(GEPI->getOperand(2))
1422 assert(isa<ConstantPointerNull>(SI->getOperand(0)) &&
1626 if (!isa<LoadInst>(U) && !isa<StoreInst>(U))
1675 assert((isa<CastInst>(StoredVal) || isa<SelectInst>(StoredVal)) &&
1678 assert(isa<LoadInst>(StoreVal) && "Not a load of NewGV!");
1763 if (!isa<UndefValue>(GV->getInitializer()))
1818 if (isa<UndefValue>(GV->getInitializer())) {
1954 if (isa<ConstantAggregateZero>(GV->getInitializer()))
1959 if (isa<ConstantAggregateZero>(*i))
1962 if (isa<ConstantPointerNull>(CS->getOperand(1)))
1966 if (!isa<Function>(CS->getOperand(1)))
2079 if (C->getNumOperands() == 0 || isa<BlockAddress>(C) ||
2080 isa<GlobalValue>(C))
2084 if (isa<ConstantArray>(C) || isa<ConstantStruct>(C) ||
2085 isa<ConstantVector>(C)) {
2108 if (!isa<ConstantInt>(CE->getOperand(i)))
2114 if (!isa<ConstantInt>(CE->getOperand(1)))
2150 isa<GlobalVariable>(CE->getOperand(0)) &&
2173 isa<GlobalVariable>(CE->getOperand(0))) {
2201 } else if (isa<ConstantAggregateZero>(Init)) {
2204 } else if (isa<UndefValue>(Init)) {
2238 } else if (isa<ConstantAggregateZero>(Init)) {
2241 assert(isa<UndefValue>(Init) && "This code is out of sync with "
2289 isa<GlobalVariable>(CE->getOperand(0))) {
2429 if (isa<DbgInfoIntrinsic>(CI)) {
2435 if (isa<InlineAsm>(CI->getCalledValue())) return false;
2480 } else if (isa<TerminatorInst>(CurInst)) {
2743 if (isa<DbgInfoIntrinsic>(CI))
2759 } else if (isa<ReturnInst>(*I))