/external/clang/test/CodeGenCXX/ |
D | builtins-systemz-zvector.cpp | 19 constexpr vector int CI2 = (vector int)char(0); in testInts() local 21 gb = (VI == CI2)[0]; in testInts() 39 constexpr vector double CI2 = (vector double)char(0); in testFloats() local 41 gb = (VD == CI2)[0]; in testFloats()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1019 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local 1022 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction() 1025 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction() 1028 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction() 1029 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction() 1034 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction() 1036 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction() 1037 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction() 1041 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction() 1042 return Constant::getNullValue(CI2->getType()); // X % 1 == 0 in ConstantFoldBinaryInstruction() [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1503 ConstantInt *CI1, *CI2; in SimplifyAndOfICmps() local 1522 m_ConstantInt(CI2)))) in SimplifyAndOfICmps() 1533 const APInt &CI2V = CI2->getValue(); in SimplifyAndOfICmps() 1687 ConstantInt *CI1, *CI2; in SimplifyOrOfICmps() local 1694 m_ConstantInt(CI2)))) in SimplifyOrOfICmps() 1707 const APInt &CI2V = CI2->getValue(); in SimplifyOrOfICmps() 2305 ConstantInt *CI2; in SimplifyICmpInst() local 2306 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 2308 Upper = CI2->getValue(); in SimplifyICmpInst() 2309 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() [all …]
|
D | ValueTracking.cpp | 3847 if (auto *CI2 = dyn_cast<CastInst>(V2)) { in lookThroughCast() local 3850 if (CI2->getOpcode() == CI->getOpcode() && in lookThroughCast() 3851 CI2->getSrcTy() == CI->getSrcTy()) in lookThroughCast() 3852 return CI2->getOperand(0); in lookThroughCast()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 1038 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) in ConstantFoldBinaryInstruction() local 1039 if (CI2->isOne()) in ConstantFoldBinaryInstruction() 1072 if (ConstantInt *CI2 = dyn_cast<ConstantInt>(C2)) { in ConstantFoldBinaryInstruction() local 1075 if (CI2->equalsInt(0)) return C1; // X + 0 == X in ConstantFoldBinaryInstruction() 1078 if (CI2->equalsInt(0)) return C1; // X - 0 == X in ConstantFoldBinaryInstruction() 1081 if (CI2->equalsInt(0)) return C2; // X * 0 == 0 in ConstantFoldBinaryInstruction() 1082 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction() 1087 if (CI2->equalsInt(1)) in ConstantFoldBinaryInstruction() 1089 if (CI2->equalsInt(0)) in ConstantFoldBinaryInstruction() 1090 return UndefValue::get(CI2->getType()); // X / 0 == undef in ConstantFoldBinaryInstruction() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InstructionSimplify.cpp | 1559 ConstantInt *CI2; in SimplifyICmpInst() local 1560 if (match(LHS, m_URem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1562 Upper = CI2->getValue(); in SimplifyICmpInst() 1563 } else if (match(LHS, m_SRem(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1565 Upper = CI2->getValue().abs(); in SimplifyICmpInst() 1567 } else if (match(LHS, m_UDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1570 if (!CI2->isZero()) in SimplifyICmpInst() 1571 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst() 1572 } else if (match(LHS, m_SDiv(m_Value(), m_ConstantInt(CI2)))) { in SimplifyICmpInst() 1576 APInt Val = CI2->getValue().abs(); in SimplifyICmpInst() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerSwitch.cpp | 77 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()() local 78 return CI1->getValue().slt(CI2->getValue()); in operator ()()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1432 ConstantInt *CI2) { in FoldICmpCstShrCst() argument 1448 const APInt &AP2 = CI2->getValue(); in FoldICmpCstShrCst() 1496 ConstantInt *CI2) { in FoldICmpCstShlCst() argument 1512 const APInt &AP2 = CI2->getValue(); in FoldICmpCstShlCst() 2496 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument 2509 if (!CI2->getValue().isPowerOf2()) return nullptr; in ProcessUGT_ADDCST_ADD() 2510 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD() 3262 ConstantInt *CI2; // I = icmp ugt (add (add A, B), CI2), CI in visitICmpInst() local 3264 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 3265 if (Instruction *Res = ProcessUGT_ADDCST_ADD(I, A, B, CI2, CI, *this)) in visitICmpInst() [all …]
|
D | InstCombineInternal.h | 280 ConstantInt *CI1, ConstantInt *CI2); 282 ConstantInt *CI1, ConstantInt *CI2);
|
D | InstCombineAndOrXor.cpp | 2076 ConstantInt *CI2 = nullptr; in FoldOrWithConstants() local 2077 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return nullptr; in FoldOrWithConstants() 2079 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants() 2106 ConstantInt *CI2 = nullptr; in FoldXorWithConstants() local 2107 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) in FoldXorWithConstants() 2110 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldXorWithConstants()
|
/external/llvm/lib/Transforms/Utils/ |
D | LowerSwitch.cpp | 93 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator ()() local 94 return CI1->getValue().slt(CI2->getValue()); in operator ()()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | SelectionDAGBuilder.h | 189 const ConstantInt* CI2 = cast<const ConstantInt>(C2.High); in operator() local 190 return CI1->getValue().slt(CI2->getValue()); in operator()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1635 ConstantInt *CI2, ConstantInt *CI1, in ProcessUGT_ADDCST_ADD() argument 1648 if (!CI2->getValue().isPowerOf2()) return 0; in ProcessUGT_ADDCST_ADD() 1649 unsigned NewWidth = CI2->getValue().countTrailingZeros(); in ProcessUGT_ADDCST_ADD() 1859 ConstantInt *CI2; // I = icmp ugt (add (add A, B), CI2), CI in visitICmpInst() local 1861 match(Op0, m_Add(m_Add(m_Value(A), m_Value(B)), m_ConstantInt(CI2)))) in visitICmpInst() 1862 if (Instruction *Res = ProcessUGT_ADDCST_ADD(I, A, B, CI2, CI, *this)) in visitICmpInst() 2239 if (BitCastInst *CI2 = dyn_cast<BitCastInst>(Op1)) in visitICmpInst() local 2240 Op1 = CI2->getOperand(0); in visitICmpInst()
|
D | InstCombineAndOrXor.cpp | 1739 ConstantInt *CI2 = 0; in FoldOrWithConstants() local 1740 if (!match(Op, m_And(m_Value(V1), m_ConstantInt(CI2)))) return 0; in FoldOrWithConstants() 1742 APInt Xor = CI1->getValue() ^ CI2->getValue(); in FoldOrWithConstants()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 1373 CallInst *CI2 = dyn_cast<CallInst>(VL[i]); in buildTree_rec() local 1374 if (!CI2 || CI2->getCalledFunction() != Int || in buildTree_rec() 1375 getVectorIntrinsicIDForCall(CI2, TLI) != ID || in buildTree_rec() 1376 !CI->hasIdenticalOperandBundleSchema(*CI2)) { in buildTree_rec() 1386 Value *A1J = CI2->getArgOperand(1); in buildTree_rec() 1400 CI2->op_begin() + CI2->getBundleOperandsStartIndex())) { in buildTree_rec() 1414 CallInst *CI2 = dyn_cast<CallInst>(j); in buildTree_rec() local 1415 Operands.push_back(CI2->getArgOperand(i)); in buildTree_rec()
|