• Home
  • Raw
  • Download

Lines Matching refs:RHSC

2387     if (auto *RHSC = dyn_cast<PtrToIntOperator>(ICmp.getOperand(1))) {  in visitICmpInstWithCastAndCast()  local
2388 Value *RHSCIOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2391 RHSOp = RHSC->getOperand(0); in visitICmpInstWithCastAndCast()
2396 } else if (auto *RHSC = dyn_cast<Constant>(ICmp.getOperand(1))) { in visitICmpInstWithCastAndCast() local
2397 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
3639 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitICmpInst() local
3644 if (RHSC->isNullValue() && in visitICmpInst()
3664 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3668 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3697 RHSC, I.getName()); in visitICmpInst()
3700 RHSC, I.getName()); in visitICmpInst()
3707 if (RHSC->isNullValue() && in visitICmpInst()
3708 DL.getIntPtrType(RHSC->getType()) == LHSI->getOperand(0)->getType()) in visitICmpInst()
3816 if (ConstantInt *RHSC = dyn_cast_or_null<ConstantInt>(B)) in visitICmpInst() local
3817 if (!RHSC->isMinValue(/*isSigned=*/true)) in visitICmpInst()
3818 return new ICmpInst(Pred, A, ConstantExpr::getNeg(RHSC)); in visitICmpInst()
3966 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1)) in visitICmpInst() local
3967 if (!RHSC->isMinValue(/*isSigned=*/true)) in visitICmpInst()
3969 ConstantExpr::getNeg(RHSC)); in visitICmpInst()
4104 if (ConstantInt *RHSC = dyn_cast<ConstantInt>(Op1)) in visitICmpInst() local
4105 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
4299 Constant *RHSC) { in FoldFCmp_IntToFP_Cst() argument
4300 if (!isa<ConstantFP>(RHSC)) return nullptr; in FoldFCmp_IntToFP_Cst()
4301 const APFloat &RHS = cast<ConstantFP>(RHSC)->getValueAPF(); in FoldFCmp_IntToFP_Cst()
4461 ? ConstantExpr::getFPToUI(RHSC, IntTy) in FoldFCmp_IntToFP_Cst()
4462 : ConstantExpr::getFPToSI(RHSC, IntTy); in FoldFCmp_IntToFP_Cst()
4465 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in FoldFCmp_IntToFP_Cst()
4466 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in FoldFCmp_IntToFP_Cst()
4591 if (Constant *RHSC = dyn_cast<Constant>(Op1)) { in visitFCmpInst() local
4597 ConstantFP *RHSF = dyn_cast<ConstantFP>(RHSC); in visitFCmpInst()
4631 ConstantFP::get(RHSC->getContext(), F)); in visitFCmpInst()
4644 if (Instruction *NV = FoldFCmp_IntToFP_Cst(I, LHSI, RHSC)) in visitFCmpInst()
4652 ConstantExpr::getFNeg(RHSC)); in visitFCmpInst()
4666 if (!RHSC->isNullValue()) in visitFCmpInst()
4683 return new FCmpInst(FCmpInst::FCMP_ONE, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4686 return new FCmpInst(FCmpInst::FCMP_OEQ, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4689 return new FCmpInst(FCmpInst::FCMP_ORD, CI->getArgOperand(0), RHSC); in visitFCmpInst()
4696 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()