Home
last modified time | relevance | path

Searched refs:CI1 (Results 1 – 6 of 6) sorted by relevance

/external/llvm/lib/IR/
DConstantFold.cpp1100 if (ConstantInt *CI1 = dyn_cast<ConstantInt>(C1)) { in ConstantFoldBinaryInstruction() local
1102 const APInt &C1V = CI1->getValue(); in ConstantFoldBinaryInstruction()
1108 return ConstantInt::get(CI1->getContext(), C1V + C2V); in ConstantFoldBinaryInstruction()
1110 return ConstantInt::get(CI1->getContext(), C1V - C2V); in ConstantFoldBinaryInstruction()
1112 return ConstantInt::get(CI1->getContext(), C1V * C2V); in ConstantFoldBinaryInstruction()
1115 return ConstantInt::get(CI1->getContext(), C1V.udiv(C2V)); in ConstantFoldBinaryInstruction()
1119 return UndefValue::get(CI1->getType()); // MIN_INT / -1 -> undef in ConstantFoldBinaryInstruction()
1120 return ConstantInt::get(CI1->getContext(), C1V.sdiv(C2V)); in ConstantFoldBinaryInstruction()
1123 return ConstantInt::get(CI1->getContext(), C1V.urem(C2V)); in ConstantFoldBinaryInstruction()
1127 return UndefValue::get(CI1->getType()); // MIN_INT % -1 -> undef in ConstantFoldBinaryInstruction()
[all …]
/external/llvm/lib/Transforms/Utils/
DLowerSwitch.cpp99 const ConstantInt* CI1 = cast<const ConstantInt>(C1.Low); in operator ()() local
101 return CI1->getValue().slt(CI2->getValue()); in operator ()()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineInternal.h284 ConstantInt *CI1, ConstantInt *CI2);
286 ConstantInt *CI1, ConstantInt *CI2);
DInstCombineAndOrXor.cpp2093 ConstantInt *CI1 = dyn_cast<ConstantInt>(C); in FoldOrWithConstants() local
2094 if (!CI1) return nullptr; in FoldOrWithConstants()
2100 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants()
2104 Value *NewOp = Builder->CreateAnd((V1 == A) ? B : A, CI1); in FoldOrWithConstants()
2122 ConstantInt *CI1 = dyn_cast<ConstantInt>(C); in FoldXorWithConstants() local
2123 if (!CI1) in FoldXorWithConstants()
2131 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldXorWithConstants()
2136 Value *NewOp = Builder->CreateAnd(V1 == A ? B : A, CI1); in FoldXorWithConstants()
DInstCombineCompares.cpp1037 ConstantInt *CI1, in FoldICmpCstShrCst() argument
1053 APInt AP1 = CI1->getValue(); in FoldICmpCstShrCst()
1097 ConstantInt *CI1, in FoldICmpCstShlCst() argument
1113 APInt AP1 = CI1->getValue(); in FoldICmpCstShlCst()
2032 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument
2053 if (CI1->getBitWidth() == NewWidth || in ProcessUGT_ADDCST_ADD()
2054 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in ProcessUGT_ADDCST_ADD()
2060 unsigned NeededSignBits = CI1->getBitWidth() - NewWidth + 1; in ProcessUGT_ADDCST_ADD()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp1495 ConstantInt *CI1, *CI2; in SimplifyAndOfICmps() local
1501 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyAndOfICmps()
1505 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Specific(CI1)))) in SimplifyAndOfICmps()
1514 const APInt &CI1V = CI1->getValue(); in SimplifyAndOfICmps()
1654 ConstantInt *CI1, *CI2; in SimplifyOrOfICmps() local
1660 if (!match(Op0, m_ICmp(Pred0, m_Add(m_Value(V), m_ConstantInt(CI1)), in SimplifyOrOfICmps()
1664 if (!match(Op1, m_ICmp(Pred1, m_Specific(V), m_Specific(CI1)))) in SimplifyOrOfICmps()
1673 const APInt &CI1V = CI1->getValue(); in SimplifyOrOfICmps()