Home
last modified time | relevance | path

Searched refs:LHSC (Results 1 – 6 of 6) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1271 ConstantInt *LHSC, *RHSC; in foldAndOfICmps() local
1272 if (!match(LHS->getOperand(1), m_ConstantInt(LHSC)) || in foldAndOfICmps()
1276 if (LHSC == RHSC && PredL == PredR) { in foldAndOfICmps()
1280 if ((PredL == ICmpInst::ICMP_ULT && LHSC->getValue().isPowerOf2()) || in foldAndOfICmps()
1281 (PredL == ICmpInst::ICMP_EQ && LHSC->isZero())) { in foldAndOfICmps()
1283 return Builder.CreateICmp(PredL, NewOr, LHSC); in foldAndOfICmps()
1300 BigC = LHSC; in foldAndOfICmps()
1303 SmallC = LHSC; in foldAndOfICmps()
1343 ShouldSwap = LHSC->getValue().sgt(RHSC->getValue()); in foldAndOfICmps()
1345 ShouldSwap = LHSC->getValue().ugt(RHSC->getValue()); in foldAndOfICmps()
[all …]
H A DInstCombineCompares.cpp5101 const APInt *LHSC; in foldICmpUsingKnownBits() local
5102 if (!match(Op0, m_And(m_Value(LHS), m_APInt(LHSC))) || in foldICmpUsingKnownBits()
5103 *LHSC != Op0KnownZeroInverted) in foldICmpUsingKnownBits()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DScalarEvolution.cpp2332 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getAddExpr() local
2337 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
2340 LHSC = cast<SCEVConstant>(Ops[0]); in getAddExpr()
2344 if (LHSC->getValue()->isZero()) { in getAddExpr()
2848 if (const SCEVConstant *LHSC = dyn_cast<SCEVConstant>(Ops[0])) { in getMulExpr() local
2853 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
2856 LHSC = cast<SCEVConstant>(Ops[0]); in getMulExpr()
2860 if (LHSC->getValue()->isZero()) in getMulExpr()
2861 return LHSC; in getMulExpr()
2864 if (LHSC->getValue()->isOne()) { in getMulExpr()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp978 if (auto *LHSC = dyn_cast<Constant>(LHS)) { in optimizeMemCmpConstantSize() local
979 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
980 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DASTContext.cpp6468 const Type *LHSC = getCanonicalType(LHS).getTypePtr(); in getIntegerTypeOrder() local
6472 if (const auto *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
6473 LHSC = getIntegerTypeForEnum(ET); in getIntegerTypeOrder()
6477 if (LHSC == RHSC) return 0; in getIntegerTypeOrder()
6479 bool LHSUnsigned = LHSC->isUnsignedIntegerType(); in getIntegerTypeOrder()
6482 unsigned LHSRank = getIntegerRank(LHSC); in getIntegerTypeOrder()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp5323 if (ConstantFPSDNode *LHSC = dyn_cast<ConstantFPSDNode>(LHS)) { in expandPow() local
5325 IsExp10 = LHSC->isExactlyValue(Ten); in expandPow()