Lines Matching refs:RHSC
2031 if (PtrToIntOperator *RHSC = dyn_cast<PtrToIntOperator>(ICI.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2032 Value *RHSCIOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2035 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2040 } else if (Constant *RHSC = dyn_cast<Constant>(ICI.getOperand(1))) in visitICmpInstWithCastAndCast() local
2041 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
3191 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3196 if (RHSC->isNullValue() && in visitICmpInst()
3216 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3220 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3249 RHSC, I.getName()); in visitICmpInst()
3252 RHSC, I.getName()); in visitICmpInst()
3259 if (RHSC->isNullValue() && in visitICmpInst()
3260 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in visitICmpInst()
3364 if (ConstantInt *RHSC = dyn_cast_or_null<ConstantInt>(B)) in visitICmpInst() local
3365 if (!RHSC->isMinValue(/*isSigned=*/true)) in visitICmpInst()
3366 return new ICmpInst(Pred, A, ConstantExpr::getNeg(RHSC)); in visitICmpInst()
3507 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1)) in visitICmpInst() local
3508 if (!RHSC->isMinValue(/*isSigned=*/true)) in visitICmpInst()
3510 ConstantExpr::getNeg(RHSC)); in visitICmpInst()
3645 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1)) in visitICmpInst() local
3646 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
3840 Constant *RHSC) { in FoldFCmp_IntToFP_Cst() argument
3841 if (!isa<ConstantFP>(RHSC)) return nullptr; in FoldFCmp_IntToFP_Cst()
3842 const APFloat &RHS = cast<ConstantFP>(RHSC)->getValueAPF(); in FoldFCmp_IntToFP_Cst()
4002 ? ConstantExpr::getFPToUI(RHSC, IntTy) in FoldFCmp_IntToFP_Cst()
4003 : ConstantExpr::getFPToSI(RHSC, IntTy); in FoldFCmp_IntToFP_Cst()
4006 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in FoldFCmp_IntToFP_Cst()
4007 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in FoldFCmp_IntToFP_Cst()
4132 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitFCmpInst() local
4138 ConstantFP *RHSF = dyn_cast<ConstantFP>(RHSC); in visitFCmpInst()
4172 ConstantFP::get(RHSC->getContext(), F)); in visitFCmpInst()
4185 if (Instruction *NV = FoldFCmp_IntToFP_Cst(I, LHSI, RHSC)) in visitFCmpInst()
4193 ConstantExpr::getFNeg(RHSC)); in visitFCmpInst()
4207 if (!RHSC->isNullValue()) in visitFCmpInst()
4229 return new FCmpInst(FCmpInst::FCMP_ONE, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4232 return new FCmpInst(FCmpInst::FCMP_OEQ, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4235 return new FCmpInst(FCmpInst::FCMP_ORD, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4242 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()