Searched refs:UserC (Results 1 – 2 of 2) sorted by relevance
675 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local676 for (User::op_iterator I = UserC->op_begin(), E = UserC->op_end(); in ResolveConstantForwardRefs()700 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) { in ResolveConstantForwardRefs()702 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) { in ResolveConstantForwardRefs()704 } else if (isa<ConstantVector>(UserC)) { in ResolveConstantForwardRefs()707 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); in ResolveConstantForwardRefs()708 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in ResolveConstantForwardRefs()711 UserC->replaceAllUsesWith(NewC); in ResolveConstantForwardRefs()712 UserC->destroyConstant(); in ResolveConstantForwardRefs()
950 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local951 for (User::op_iterator I = UserC->op_begin(), E = UserC->op_end(); in ResolveConstantForwardRefs()975 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) { in ResolveConstantForwardRefs()977 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) { in ResolveConstantForwardRefs()979 } else if (isa<ConstantVector>(UserC)) { in ResolveConstantForwardRefs()982 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); in ResolveConstantForwardRefs()983 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in ResolveConstantForwardRefs()986 UserC->replaceAllUsesWith(NewC); in ResolveConstantForwardRefs()987 UserC->destroyConstant(); in ResolveConstantForwardRefs()