Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DMatchConsumer.h47 MatchConsumer<T> ifBound(std::string ID, MatchConsumer<T> TrueC, in ifBound() argument
51 return (Map.find(ID) != Map.end() ? TrueC : FalseC)(Result); in ifBound()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineNegator.cpp215 Constant *TrueC, *FalseC; in visitImpl() local
216 if (match(Sel->getTrueValue(), m_ImmConstant(TrueC)) && in visitImpl()
218 Constant *NegTrueC = ConstantExpr::getNeg(TrueC); in visitImpl()
H A DInstructionCombining.cpp2325 Constant *TrueC, *FalseC; in foldSelectGEP() local
2328 m_Select(m_Value(Cond), m_Constant(TrueC), m_Constant(FalseC)))) in foldSelectGEP()
2337 Value *NewTrueC = Builder.CreateGEP(Ty, TrueC, IndexC, "", NW); in foldSelectGEP()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInlineCost.cpp2374 Constant *TrueC = dyn_cast<Constant>(TrueVal); in visitSelectInst() local
2375 if (!TrueC) in visitSelectInst()
2376 TrueC = SimplifiedValues.lookup(TrueVal); in visitSelectInst()
2385 if (TrueC == FalseC && TrueC) { in visitSelectInst()
2386 SimplifiedValues[&SI] = TrueC; in visitSelectInst()
2416 if (TrueC && FalseC) { in visitSelectInst()
2417 if (auto *C = ConstantFoldSelectInstruction(CondC, TrueC, FalseC)) { in visitSelectInst()
H A DInstructionSimplify.cpp4798 if (auto *TrueC = dyn_cast<Constant>(TrueVal)) in simplifySelectInst() local
4800 if (Constant *C = ConstantFoldSelectInstruction(CondC, TrueC, FalseC)) in simplifySelectInst()
4924 Constant *TrueC, *FalseC; in simplifySelectInst() local
4926 match(TrueVal, m_Constant(TrueC)) && in simplifySelectInst()
4929 cast<FixedVectorType>(TrueC->getType())->getNumElements(); in simplifySelectInst()
4933 Constant *TEltC = TrueC->getAggregateElement(i); in simplifySelectInst()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp870 ConstantInt *TrueC = ConstantInt::getTrue(Ty->getContext()); in getTrue() local
872 return ConstantVector::getSplat(VTy->getElementCount(), TrueC); in getTrue()
873 return TrueC; in getTrue()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.cpp731 ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(True); in performSELECTCombine() local
733 if (!TrueC || !True.getValueType().isInteger()) in performSELECTCombine()
742 int64_t Diff = TrueC->getSExtValue() - FalseC->getSExtValue(); in performSELECTCombine()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp45597 auto *TrueC = dyn_cast<ConstantSDNode>(LHS); in combineSelectOfTwoConstants() local
45599 if (!TrueC || !FalseC) in combineSelectOfTwoConstants()
45617 const APInt &TrueVal = TrueC->getAPIntValue(); in combineSelectOfTwoConstants()
45643 std::swap(TrueC, FalseC); in combineSelectOfTwoConstants()
47269 if (ConstantSDNode *TrueC = dyn_cast<ConstantSDNode>(TrueOp)) { in combineCMov() local
47273 if (TrueC->getAPIntValue().ult(FalseC->getAPIntValue())) { in combineCMov()
47275 std::swap(TrueC, FalseC); in combineCMov()
47282 if (FalseC->getAPIntValue() == 0 && TrueC->getAPIntValue().isPowerOf2()) { in combineCMov()
47286 Cond = DAG.getNode(ISD::ZERO_EXTEND, DL, TrueC->getValueType(0), Cond); in combineCMov()
47288 unsigned ShAmt = TrueC->getAPIntValue().logBase2(); in combineCMov()
[all …]