Home
last modified time | relevance | path

Searched refs:CI2 (Results 1 – 7 of 7) sorted by relevance

/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1495 ConstantInt *CI1, *CI2; in SimplifyAndOfICmps() local
1502 m_ConstantInt(CI2)))) in SimplifyAndOfICmps()
1515 const APInt &CI2V = CI2->getValue(); in SimplifyAndOfICmps()
1654 ConstantInt *CI1, *CI2; in SimplifyOrOfICmps() local
1661 m_ConstantInt(CI2)))) in SimplifyOrOfICmps()
1674 const APInt &CI2V = CI2->getValue(); in SimplifyOrOfICmps()
2249 ConstantInt *CI2; in SimplifyICmpInst() local
2250 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2252 Upper = CI2->getValue(); in SimplifyICmpInst()
2253 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
[all …]
/external/llvm/lib/IR/
DConstantFold.cpp999 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1002 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1005 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1008 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1009 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1014 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1016 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1017 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1021 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1022 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1038 ConstantInt *CI2) { in FoldICmpCstShrCst() argument
1054 APInt AP2 = CI2->getValue(); in FoldICmpCstShrCst()
1098 ConstantInt *CI2) { in FoldICmpCstShlCst() argument
1114 APInt AP2 = CI2->getValue(); in FoldICmpCstShlCst()
2032 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument
2045 if (!CI2->getValue().isPowerOf2()) return nullptr; in ProcessUGT_ADDCST_ADD()
2046 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD()
2755 ConstantInt *CI2; // I = icmp ugt (add (add A, B), CI2), CI in visitICmpInst() local
2757 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
2758 if (Instruction *Res = ProcessUGT_ADDCST_ADD(I, A, B, CI2, CI, *this)) in visitICmpInst()
[all …]
DInstCombineInternal.h284 ConstantInt *CI1, ConstantInt *CI2);
286 ConstantInt *CI1, ConstantInt *CI2);
DInstCombineAndOrXor.cpp2097 ConstantInt *CI2 = nullptr; in FoldOrWithConstants() local
2098 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants()
2100 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants()
2127 ConstantInt *CI2 = nullptr; in FoldXorWithConstants() local
2128 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants()
2131 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldXorWithConstants()
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp100 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()() local
101 return CI1->getValue().slt(CI2->getValue()); in operator ()()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1340 CallInst *CI2 = dyn_cast<CallInst>(VL[i]); in buildTree_rec() local
1341 if (!CI2 || CI2->getCalledFunction() != Int || in buildTree_rec()
1342 getIntrinsicIDForCall(CI2, TLI) != ID) { in buildTree_rec()
1352 Value *A1J = CI2->getArgOperand(1); in buildTree_rec()
1369 CallInst *CI2 = dyn_cast<CallInst>(VL[j]); in buildTree_rec() local
1370 Operands.push_back(CI2->getArgOperand(i)); in buildTree_rec()