/external/llvm/lib/Analysis/ |
D | LoopUnrollAnalyzer.cpp | 188 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local 190 if (CLHS->getType() == CRHS->getType()) { in visitCmpInst() 191 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst()
|
D | InstructionSimplify.cpp | 97 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); in isSameCompare() local 98 if (CPred == Pred && CLHS == LHS && CRHS == RHS) in isSameCompare() 100 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS && in isSameCompare() 531 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAddInst() local 533 return ConstantFoldBinaryOpOperands(Instruction::Add, CLHS, CRHS, Q.DL); in SimplifyAddInst() 665 if (Constant *CLHS = dyn_cast<Constant>(Op0)) in SimplifySubInst() local 667 return ConstantFoldBinaryOpOperands(Instruction::Sub, CLHS, CRHS, Q.DL); in SimplifySubInst() 789 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyFAddInst() local 791 return ConstantFoldBinaryOpOperands(Instruction::FAdd, CLHS, CRHS, Q.DL); in SimplifyFAddInst() 828 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyFSubInst() local [all …]
|
D | InlineCost.cpp | 674 if (Constant *CLHS = dyn_cast<Constant>(LHS)) { in visitCmpInst() local 677 ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst() 696 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitCmpInst() local 698 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) { in visitCmpInst() 742 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); in visitSub() local 744 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) { in visitSub()
|
D | ValueTracking.cpp | 240 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) { in computeKnownBitsAddSub() local 244 if (!CLHS->getValue().isNegative()) { in computeKnownBitsAddSub() 246 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros(); in computeKnownBitsAddSub() 255 unsigned NLZ2 = CLHS->getValue().countLeadingZeros(); in computeKnownBitsAddSub() 2104 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0))) in ComputeNumSignBits() local 2105 if (CLHS->isNullValue()) { in ComputeNumSignBits() 4008 const APInt *CLHS, *CRHS; in isTruePredicate() local 4009 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS)) in isTruePredicate() 4010 return CLHS->ule(*CRHS); in isTruePredicate()
|
D | ScalarEvolutionExpander.cpp | 174 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local 176 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop() 501 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local 504 CLHS, CRHS); in expandAddToGEP()
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 545 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAddInst() local 547 Constant *Ops[] = { CLHS, CRHS }; in SimplifyAddInst() 548 return ConstantFoldInstOperands(Instruction::Add, CLHS->getType(), in SimplifyAddInst() 614 if (Constant *CLHS = dyn_cast<Constant>(Op0)) in SimplifySubInst() local 616 Constant *Ops[] = { CLHS, CRHS }; in SimplifySubInst() 617 return ConstantFoldInstOperands(Instruction::Sub, CLHS->getType(), in SimplifySubInst() 734 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyMulInst() local 736 Constant *Ops[] = { CLHS, CRHS }; in SimplifyMulInst() 737 return ConstantFoldInstOperands(Instruction::Mul, CLHS->getType(), in SimplifyMulInst() 1157 if (Constant *CLHS = dyn_cast<Constant>(Op0)) { in SimplifyAndInst() local [all …]
|
D | ValueTracking.cpp | 381 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0))) { in ComputeMaskedBits() local 385 if (!CLHS->getValue().isNegative()) { in ComputeMaskedBits() 386 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros(); in ComputeMaskedBits() 396 unsigned NLZ2 = CLHS->getValue().countLeadingZeros(); in ComputeMaskedBits() 998 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(U->getOperand(0))) in ComputeNumSignBits() local 999 if (CLHS->isNullValue()) { in ComputeNumSignBits()
|
D | ScalarEvolutionExpander.cpp | 129 if (Constant *CLHS = dyn_cast<Constant>(LHS)) in InsertBinop() local 131 return ConstantExpr::get(Opcode, CLHS, CRHS); in InsertBinop() 499 if (Constant *CLHS = dyn_cast<Constant>(V)) in expandAddToGEP() local 501 return ConstantExpr::getGetElementPtr(CLHS, CRHS); in expandAddToGEP()
|
/external/llvm/lib/Target/AMDGPU/ |
D | SIISelLowering.cpp | 2123 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) { in LowerFastFDIV() local 2125 CLHS->isExactlyValue(1.0)) { in LowerFastFDIV() 2617 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); in performOrCombine() local 2619 if (!CLHS || !CRHS) in performOrCombine() 2625 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask; in performOrCombine()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 1958 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) { in ComputeMaskedBits() local 1962 if (CLHS->getAPIntValue().isNonNegative()) { in ComputeMaskedBits() 1963 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros(); in ComputeMaskedBits() 1973 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros(); in ComputeMaskedBits() 2232 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) in ComputeNumSignBits() local 2233 if (CLHS->isNullValue()) { in ComputeNumSignBits()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 2335 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) { in computeKnownBits() local 2339 if (CLHS->getAPIntValue().isNonNegative()) { in computeKnownBits() 2340 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros(); in computeKnownBits() 2349 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros(); in computeKnownBits() 2684 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) in ComputeNumSignBits() local 2685 if (CLHS->isNullValue()) { in ComputeNumSignBits()
|