/external/llvm-project/clang/include/clang/Tooling/Transformer/ |
D | MatchConsumer.h | 47 MatchConsumer<T> ifBound(std::string ID, MatchConsumer<T> TrueC, in ifBound() argument 51 return (Map.find(ID) != Map.end() ? TrueC : FalseC)(Result); in ifBound()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | InlineCost.cpp | 1576 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst() local 1577 if (!TrueC) in visitSelectInst() 1578 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst() 1587 if (TrueC == FalseC && TrueC) { in visitSelectInst() 1588 SimplifiedValues[&SI] = TrueC; in visitSelectInst() 1618 if (TrueC && FalseC) { in visitSelectInst() 1619 if (auto *C = ConstantExpr::getSelect(CondC, TrueC, FalseC)) { in visitSelectInst()
|
D | InstructionSimplify.cpp | 3981 if (auto *TrueC = dyn_cast<Constant>(TrueVal)) in SimplifySelectInst() local 3983 return ConstantFoldSelectInstruction(CondC, TrueC, FalseC); in SimplifySelectInst()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | InlineCost.cpp | 1738 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst() local 1739 if (!TrueC) in visitSelectInst() 1740 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst() 1749 if (TrueC == FalseC && TrueC) { in visitSelectInst() 1750 SimplifiedValues[&SI] = TrueC; in visitSelectInst() 1780 if (TrueC && FalseC) { in visitSelectInst() 1781 if (auto *C = ConstantExpr::getSelect(CondC, TrueC, FalseC)) { in visitSelectInst()
|
D | InstructionSimplify.cpp | 4095 if (auto *TrueC = dyn_cast<Constant>(TrueVal)) in SimplifySelectInst() local 4097 return ConstantFoldSelectInstruction(CondC, TrueC, FalseC); in SimplifySelectInst() 4138 Constant *TrueC, *FalseC; in SimplifySelectInst() local 4140 match(TrueVal, m_Constant(TrueC)) && in SimplifySelectInst() 4143 cast<FixedVectorType>(TrueC->getType())->getNumElements(); in SimplifySelectInst() 4147 Constant *TEltC = TrueC->getAggregateElement(i); in SimplifySelectInst()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 1809 Constant *TrueC, *FalseC; in foldSelectGEP() local 1812 m_Select(m_Value(Cond), m_Constant(TrueC), m_Constant(FalseC)))) in foldSelectGEP() 1820 Value *NewTrueC = IsInBounds ? Builder.CreateInBoundsGEP(TrueC, IndexC) in foldSelectGEP() 1821 : Builder.CreateGEP(TrueC, IndexC); in foldSelectGEP()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Constants.cpp | 676 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext()); in getTrue() local 678 return ConstantVector::getSplat(VTy->getNumElements(), TrueC); in getTrue() 679 return TrueC; in getTrue()
|
/external/llvm-project/llvm/lib/IR/ |
D | Constants.cpp | 820 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext()); in getTrue() local 822 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue() 823 return TrueC; in getTrue()
|
/external/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 621 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True); in performSELECTCombine() local 623 if (!TrueC || !True.getValueType().isInteger()) in performSELECTCombine() 632 int64_t Diff = TrueC->getSExtValue() - FalseC->getSExtValue(); in performSELECTCombine()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 721 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True); in performSELECTCombine() local 723 if (!TrueC || !True.getValueType().isInteger()) in performSELECTCombine() 732 int64_t Diff = TrueC->getSExtValue() - FalseC->getSExtValue(); in performSELECTCombine()
|
/external/llvm-project/llvm/lib/Target/Mips/ |
D | MipsISelLowering.cpp | 722 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True); in performSELECTCombine() local 724 if (!TrueC || !True.getValueType().isInteger()) in performSELECTCombine() 733 int64_t Diff = TrueC->getSExtValue() - FalseC->getSExtValue(); in performSELECTCombine()
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 26611 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(LHS)) { in combineSelect() local 26619 if (TrueC->getAPIntValue().ult(FalseC->getAPIntValue()) && in combineSelect() 26625 std::swap(TrueC, FalseC); in combineSelect() 26630 TrueC->getAPIntValue().isPowerOf2()) { in combineSelect() 26638 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineSelect() 26644 if (FalseC->getAPIntValue()+1 == TrueC->getAPIntValue()) { in combineSelect() 26659 uint64_t Diff = TrueC->getZExtValue()-FalseC->getZExtValue(); in combineSelect() 26679 APInt Diff = TrueC->getAPIntValue()-FalseC->getAPIntValue(); in combineSelect() 27222 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) { in combineCMov() local 27226 if (TrueC->getAPIntValue().ult(FalseC->getAPIntValue())) { in combineCMov() [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelLowering.cpp | 2436 auto *TrueC = dyn_cast<ConstantSDNode>(TrueOp); in lowerSELECT_CC() local 2438 if (TrueC && FalseC) { in lowerSELECT_CC() 2439 int64_t TrueVal = TrueC->getSExtValue(); in lowerSELECT_CC()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 37664 auto *TrueC = dyn_cast<ConstantSDNode>(LHS); in combineSelectOfTwoConstants() local 37666 if (!TrueC || !FalseC) in combineSelectOfTwoConstants() 37684 const APInt &TrueVal = TrueC->getAPIntValue(); in combineSelectOfTwoConstants() 37701 std::swap(TrueC, FalseC); in combineSelectOfTwoConstants() 38693 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) { in combineCMov() local 38697 if (TrueC->getAPIntValue().ult(FalseC->getAPIntValue())) { in combineCMov() 38699 std::swap(TrueC, FalseC); in combineCMov() 38706 if (FalseC->getAPIntValue() == 0 && TrueC->getAPIntValue().isPowerOf2()) { in combineCMov() 38710 Cond = DAG.getNode(ISD::ZERO_EXTEND, DL, TrueC->getValueType(0), Cond); in combineCMov() 38712 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineCMov() [all …]
|
/external/llvm-project/llvm/lib/Target/X86/ |
D | X86ISelLowering.cpp | 40402 auto *TrueC = dyn_cast<ConstantSDNode>(LHS); in combineSelectOfTwoConstants() local 40404 if (!TrueC || !FalseC) in combineSelectOfTwoConstants() 40422 const APInt &TrueVal = TrueC->getAPIntValue(); in combineSelectOfTwoConstants() 40439 std::swap(TrueC, FalseC); in combineSelectOfTwoConstants() 41721 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) { in combineCMov() local 41725 if (TrueC->getAPIntValue().ult(FalseC->getAPIntValue())) { in combineCMov() 41727 std::swap(TrueC, FalseC); in combineCMov() 41734 if (FalseC->getAPIntValue() == 0 && TrueC->getAPIntValue().isPowerOf2()) { in combineCMov() 41738 Cond = DAG.getNode(ISD::ZERO_EXTEND, DL, TrueC->getValueType(0), Cond); in combineCMov() 41740 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineCMov() [all …]
|