Searched refs:CLHS (Results 1 - 11 of 11) sorted by relevance

/external/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp188 if (Constant *CLHS = dyn_cast<Constant>(LHS)) {
190 if (CLHS->getType() == CRHS->getType()) {
191 if (Constant *C = ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) {
H A DInstructionSimplify.cpp97 Value *CLHS = Cmp->getOperand(0), *CRHS = Cmp->getOperand(1); local
98 if (CPred == Pred && CLHS == LHS && CRHS == RHS)
100 return CPred == CmpInst::getSwappedPredicate(Pred) && CLHS == RHS &&
531 if (Constant *CLHS = dyn_cast<Constant>(Op0)) {
533 return ConstantFoldBinaryOpOperands(Instruction::Add, CLHS, CRHS, Q.DL);
665 if (Constant *CLHS = dyn_cast<Constant>(Op0))
667 return ConstantFoldBinaryOpOperands(Instruction::Sub, CLHS, CRHS, Q.DL);
789 if (Constant *CLHS = dyn_cast<Constant>(Op0)) {
791 return ConstantFoldBinaryOpOperands(Instruction::FAdd, CLHS, CRHS, Q.DL);
828 if (Constant *CLHS
[all...]
H A DInlineCost.cpp674 if (Constant *CLHS = dyn_cast<Constant>(LHS)) {
677 ConstantExpr::getCompare(I.getPredicate(), CLHS, CRHS)) {
696 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); local
698 if (Constant *C = ConstantExpr::getICmp(I.getPredicate(), CLHS, CRHS)) {
742 Constant *CLHS = ConstantInt::get(LHS->getContext(), LHSOffset); local
744 if (Constant *C = ConstantExpr::getSub(CLHS, CRHS)) {
H A DValueTracking.cpp240 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(Op0)) {
244 if (!CLHS->getValue().isNegative()) {
246 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros();
255 unsigned NLZ2 = CLHS->getValue().countLeadingZeros();
2104 if (const auto *CLHS = dyn_cast<Constant>(U->getOperand(0)))
2105 if (CLHS->isNullValue()) {
4008 const APInt *CLHS, *CRHS; local
4009 if (MatchNUWAddsToSameValue(LHS, RHS, X, CLHS, CRHS))
4010 return CLHS->ule(*CRHS);
H A DScalarEvolutionExpander.cpp174 if (Constant *CLHS = dyn_cast<Constant>(LHS))
176 return ConstantExpr::get(Opcode, CLHS, CRHS);
501 if (Constant *CLHS = dyn_cast<Constant>(V))
504 CLHS, CRHS);
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DInstructionSimplify.cpp545 if (Constant *CLHS = dyn_cast<Constant>(Op0)) {
547 Constant *Ops[] = { CLHS, CRHS };
548 return ConstantFoldInstOperands(Instruction::Add, CLHS->getType(),
614 if (Constant *CLHS = dyn_cast<Constant>(Op0))
616 Constant *Ops[] = { CLHS, CRHS };
617 return ConstantFoldInstOperands(Instruction::Sub, CLHS->getType(),
734 if (Constant *CLHS = dyn_cast<Constant>(Op0)) {
736 Constant *Ops[] = { CLHS, CRHS };
737 return ConstantFoldInstOperands(Instruction::Mul, CLHS->getType(),
1157 if (Constant *CLHS
[all...]
H A DValueTracking.cpp381 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(I->getOperand(0))) {
385 if (!CLHS->getValue().isNegative()) {
386 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros();
396 unsigned NLZ2 = CLHS->getValue().countLeadingZeros();
998 if (ConstantInt *CLHS = dyn_cast<ConstantInt>(U->getOperand(0)))
999 if (CLHS->isNullValue()) {
H A DScalarEvolutionExpander.cpp129 if (Constant *CLHS = dyn_cast<Constant>(LHS))
131 return ConstantExpr::get(Opcode, CLHS, CRHS);
499 if (Constant *CLHS = dyn_cast<Constant>(V))
501 return ConstantExpr::getGetElementPtr(CLHS, CRHS);
/external/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp2123 if (const ConstantFPSDNode *CLHS = dyn_cast<ConstantFPSDNode>(LHS)) {
2125 CLHS->isExactlyValue(1.0)) {
2617 const ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(LHS.getOperand(1)); local
2619 if (!CLHS || !CRHS)
2625 uint32_t NewMask = (CLHS->getZExtValue() | CRHS->getZExtValue()) & MaxMask;
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2335 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) {
2339 if (CLHS->getAPIntValue().isNonNegative()) {
2340 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros();
2349 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros();
2684 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0)))
2685 if (CLHS->isNullValue()) {
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp1958 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0))) {
1962 if (CLHS->getAPIntValue().isNonNegative()) {
1963 unsigned NLZ = (CLHS->getAPIntValue()+1).countLeadingZeros();
1973 unsigned NLZ2 = CLHS->getAPIntValue().countLeadingZeros();
2232 if (ConstantSDNode *CLHS = dyn_cast<ConstantSDNode>(Op.getOperand(0)))
2233 if (CLHS->isNullValue()) {

Completed in 260 milliseconds