Home
last modified time | relevance | path

Searched refs:UserC (Results 1 – 2 of 2) sorted by relevance

/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.cpp675 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local
676 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()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.cpp950 Constant *UserC = cast<Constant>(U); in ResolveConstantForwardRefs() local
951 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()