Searched refs:UserC (Results 1 – 2 of 2) sorted by relevance
307 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local308 for (User::op_iterator I = UserC->op_begin(), E = UserC->op_end(); in ResolveConstantForwardRefs()332 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) { in ResolveConstantForwardRefs()334 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) { in ResolveConstantForwardRefs()336 } else if (isa<ConstantVector>(UserC)) { in ResolveConstantForwardRefs()339 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); in ResolveConstantForwardRefs()340 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in ResolveConstantForwardRefs()343 UserC->replaceAllUsesWith(NewC); in ResolveConstantForwardRefs()344 UserC->destroyConstant(); in ResolveConstantForwardRefs()
1044 Constant *UserC = cast<Constant>(U); in resolveConstantForwardRefs() local1045 for (User::op_iterator I = UserC->op_begin(), E = UserC->op_end(); in resolveConstantForwardRefs()1069 if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) { in resolveConstantForwardRefs()1071 } else if (ConstantStruct *UserCS = dyn_cast<ConstantStruct>(UserC)) { in resolveConstantForwardRefs()1073 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()1076 assert(isa<ConstantExpr>(UserC) && "Must be a ConstantExpr."); in resolveConstantForwardRefs()1077 NewC = cast<ConstantExpr>(UserC)->getWithOperands(NewOps); in resolveConstantForwardRefs()1080 UserC->replaceAllUsesWith(NewC); in resolveConstantForwardRefs()1081 UserC->destroyConstant(); in resolveConstantForwardRefs()