Searched refs:LHSCst (Results 1 – 6 of 6) sorted by relevance
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCompares.cpp | 30 const GIConstant &LHSCst, in constantFoldICmp() argument 33 if (LHSCst.getKind() != GIConstant::GIConstantKind::Scalar) in constantFoldICmp() 43 APInt LHS = LHSCst.getScalarValue(); in constantFoldICmp() 61 const GFConstant &LHSCst, in constantFoldFCmp() argument 64 if (LHSCst.getKind() != GFConstant::GFConstantKind::Scalar) in constantFoldFCmp() 74 APFloat LHS = LHSCst.getScalarValue(); in constantFoldFCmp()
|
| H A D | Utils.cpp | 1049 auto LHSCst = getIConstantVRegVal(LHS, MRI); in ConstantFoldICmp() local 1050 if (!LHSCst) in ConstantFoldICmp() 1055 return GetICmpResultCst(LHSCst->eq(*RHSCst)); in ConstantFoldICmp() 1057 return GetICmpResultCst(LHSCst->ne(*RHSCst)); in ConstantFoldICmp() 1059 return GetICmpResultCst(LHSCst->ugt(*RHSCst)); in ConstantFoldICmp() 1061 return GetICmpResultCst(LHSCst->uge(*RHSCst)); in ConstantFoldICmp() 1063 return GetICmpResultCst(LHSCst->ult(*RHSCst)); in ConstantFoldICmp() 1065 return GetICmpResultCst(LHSCst->ule(*RHSCst)); in ConstantFoldICmp() 1067 return GetICmpResultCst(LHSCst->sgt(*RHSCst)); in ConstantFoldICmp() 1069 return GetICmpResultCst(LHSCst->sge(*RHSCst)); in ConstantFoldICmp() [all …]
|
| H A D | CombinerHelper.cpp | 5888 const auto LHSCst = Ty.isVector() in matchFsubToFneg() local 5891 if (!LHSCst) in matchFsubToFneg() 5895 if (LHSCst->Value.isNegZero()) in matchFsubToFneg() 5899 if (LHSCst->Value.isPosZero()) in matchFsubToFneg()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.h | 1122 bool constantFoldICmp(const GICmp &ICmp, const GIConstant &LHSCst, 1124 bool constantFoldFCmp(const GFCmp &FCmp, const GFConstant &LHSCst,
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 3589 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local 3590 if (LHSCst == RHSCst) { in getUDivExactExpr() 3598 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr() 3600 LHSCst = in getUDivExactExpr() 3601 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr() 3605 Operands.push_back(LHSCst); in getUDivExactExpr()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 393 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local 395 return Match(LHSCst, RHSCst); in matchBinaryPredicate() 409 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp); in matchBinaryPredicate() local 411 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate() 416 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()
|