| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/ |
| H A D | LoopUnrollAnalyzer.cpp | 198 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 D | InlineCost.cpp | 1614 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 D | InstructionSimplify.cpp | 136 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 D | ValueTracking.cpp | 3030 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 D | AMDGPUCodeGenPrepare.cpp | 646 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 D | AMDGPULegalizerInfo.cpp | 3076 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 D | SIISelLowering.cpp | 8239 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 D | ScalarEvolutionExpander.cpp | 217 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 D | SelectionDAG.cpp | 3975 if (ConstantSDNode *CLHS = in ComputeNumSignBits() local 3977 if (CLHS->isNullValue()) { in ComputeNumSignBits()
|