Home
last modified time | relevance | path

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

/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1509 ConstantInt *CI1, *CI2; in SimplifyAndOfICmps() local
1516 m_ConstantInt(CI2)))) in SimplifyAndOfICmps()
1529 const APInt &CI2V = CI2->getValue(); in SimplifyAndOfICmps()
1668 ConstantInt *CI1, *CI2; in SimplifyOrOfICmps() local
1675 m_ConstantInt(CI2)))) in SimplifyOrOfICmps()
1688 const APInt &CI2V = CI2->getValue(); in SimplifyOrOfICmps()
2279 ConstantInt *CI2; in SimplifyICmpInst() local
2280 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
2282 Upper = CI2->getValue(); in SimplifyICmpInst()
2283 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst()
[all …]
DValueTracking.cpp3993 CastInst *CI2 = dyn_cast<CastInst>(V2); in lookThroughCast() local
3998 if (CI2) { in lookThroughCast()
4001 if (CI2->getOpcode() == CI->getOpcode() && in lookThroughCast()
4002 CI2->getSrcTy() == CI->getSrcTy()) in lookThroughCast()
4003 return CI2->getOperand(0); in lookThroughCast()
/external/llvm/lib/IR/
DConstantFold.cpp1005 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local
1008 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction()
1011 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction()
1014 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction()
1015 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1020 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1022 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction()
1023 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction()
1027 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction()
1028 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction()
[all …]
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp1106 ConstantInt *CI2) { in FoldICmpCstShrCst() argument
1122 APInt AP2 = CI2->getValue(); in FoldICmpCstShrCst()
1170 ConstantInt *CI2) { in FoldICmpCstShlCst() argument
1186 APInt AP2 = CI2->getValue(); in FoldICmpCstShlCst()
2138 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument
2151 if (!CI2->getValue().isPowerOf2()) return nullptr; in ProcessUGT_ADDCST_ADD()
2152 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD()
2849 ConstantInt *CI2; // I = icmp ugt (add (add A, B), CI2), CI in visitICmpInst() local
2851 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst()
2852 if (Instruction *Res = ProcessUGT_ADDCST_ADD(I, A, B, CI2, CI, *this)) in visitICmpInst()
[all …]
DInstCombineInternal.h277 ConstantInt *CI1, ConstantInt *CI2);
279 ConstantInt *CI1, ConstantInt *CI2);
DInstCombineAndOrXor.cpp2185 ConstantInt *CI2 = nullptr; in FoldOrWithConstants() local
2186 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants()
2188 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants()
2215 ConstantInt *CI2 = nullptr; in FoldXorWithConstants() local
2216 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants()
2219 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldXorWithConstants()
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp99 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()() local
100 return CI1->getValue().slt(CI2->getValue()); in operator ()()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1394 CallInst *CI2 = dyn_cast<CallInst>(VL[i]); in buildTree_rec() local
1395 if (!CI2 || CI2->getCalledFunction() != Int || in buildTree_rec()
1396 getIntrinsicIDForCall(CI2, TLI) != ID) { in buildTree_rec()
1406 Value *A1J = CI2->getArgOperand(1); in buildTree_rec()
1423 CallInst *CI2 = dyn_cast<CallInst>(VL[j]); in buildTree_rec() local
1424 Operands.push_back(CI2->getArgOperand(i)); in buildTree_rec()