Home
last modified time | relevance | path

Searched refs:CLHS (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp198 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local
200 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst()
201 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
H A DInlineCost.cpp1614 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local
1616 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
1648 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local
1650 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
1665 Constant *CLHS = dyn_cast<Constant>(LHS); in visitBinaryOperator() local
1666 if (!CLHS) in visitBinaryOperator()
1667 CLHS = SimplifiedValues.lookup(LHS); in visitBinaryOperator()
1674 SimpleV = SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, in visitBinaryOperator()
1678 SimplifyBinOp(I.getOpcode(), CLHS ? CLHS : LHS, CRHS ? CRHS : RHS, DL); in visitBinaryOperator()
H A DInstructionSimplify.cpp136 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local
137 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare()
139 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare()
599 if (auto *CLHS = dyn_cast<Constant>(Op0)) { in foldOrCommuteConstant() local
601 return ConstantFoldBinaryOpOperands(Opcode, CLHS, CRHS, Q.DL); in foldOrCommuteConstant()
3339 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in SimplifyICmpInst() local
3341 return ConstantFoldCompareInstOperands(Pred, CLHS, CRHS, Q.DL, Q.TLI); in SimplifyICmpInst()
3593 if (auto *CLHS = dyn_cast<PtrToIntOperator>(LHS)) in SimplifyICmpInst() local
3595 if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) == in SimplifyICmpInst()
3596 Q.DL.getTypeSizeInBits(CLHS->getType()) && in SimplifyICmpInst()
[all …]
H A DValueTracking.cpp3030 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBitsImpl() local
3031 if (CLHS->isNullValue()) { in ComputeNumSignBitsImpl()
6353 const APInt *CLHS, *CRHS; in isTruePredicate() local
6354 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate()
6355 return CLHS->ule(*CRHS); in isTruePredicate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUCodeGenPrepare.cpp646 if (const ConstantFP *CLHS = dyn_cast<ConstantFP>(Num)) { in optimizeWithRcp() local
648 if (CLHS->isExactlyValue(1.0)) { in optimizeWithRcp()
667 if (CLHS->isExactlyValue(-1.0)) { in optimizeWithRcp()
H A DAMDGPULegalizerInfo.cpp3076 if (auto CLHS = getConstantFPVRegVal(LHS, MRI)) { in legalizeFastUnsafeFDIV() local
3078 if (CLHS->isExactlyValue(1.0)) { in legalizeFastUnsafeFDIV()
3088 if (CLHS->isExactlyValue(-1.0)) { in legalizeFastUnsafeFDIV()
H A DSIISelLowering.cpp8239 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in lowerFastUnsafeFDIV() local
8240 if (CLHS->isExactlyValue(1.0)) { in lowerFastUnsafeFDIV()
8260 if (CLHS->isExactlyValue(-1.0)) { in lowerFastUnsafeFDIV()
9215 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local
9217 if (!CLHS || !CRHS) in performOrCombine()
9223 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DScalarEvolutionExpander.cpp217 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local
219 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop()
566 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local
569 CLHS, CRHS); in expandAddToGEP()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp3975 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local
3977 if (CLHS->isNullValue()) { in ComputeNumSignBits()