Home
last modified time | relevance | path

Searched refs:TVal (Results 1 – 25 of 32) sorted by relevance

12

/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dutils.h331 template <typename T, T TVal>
332 static typename TermT::FuncType GetFunc(RangedArg<T, TVal, TVal> iArg)
334 SWR_ASSERT(iArg.val == TVal);
335 return TermT::template GetFunc<ArgsB..., std::integral_constant<T, TVal>>();
355 template <typename T, T TVal, typename... TArgsT>
356 static typename TermT::FuncType GetFunc(RangedArg<T, TVal, TVal> iArg, TArgsT... remainingArgs)
358 SWR_ASSERT(iArg.val == TVal);
359 return TemplateArgUnroller<TermT, ArgsB..., std::integral_constant<T, TVal>>::GetFunc(
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp482 Value *TVal, Value *FVal, in foldSelectICmpAndAnd() argument
491 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd()
747 static Value *canonicalizeSaturatedAdd(ICmpInst *Cmp, Value *TVal, Value *FVal, in canonicalizeSaturatedAdd() argument
759 match(TVal, m_Add(m_Value(X), m_APInt(C))) && X == Cmp0 && in canonicalizeSaturatedAdd()
770 std::swap(TVal, FVal); in canonicalizeSaturatedAdd()
773 if (!match(TVal, m_AllOnes())) in canonicalizeSaturatedAdd()
1071 Value *TVal = Sel.getTrueValue(); in canonicalizeAbsNabs() local
1073 assert(isKnownNegation(TVal, FVal) && in canonicalizeAbsNabs()
1078 bool CmpUsesNegatedOp = match(Cmp.getOperand(0), m_Neg(m_Specific(TVal))) || in canonicalizeAbsNabs()
1108 if (TVal == LHS) { in canonicalizeAbsNabs()
[all …]
DInstCombineCalls.cpp1262 Value *Cond, *TVal, *FVal; in visitCallInst() local
1264 m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal)))) { in visitCallInst()
1266 if (isa<Constant>(TVal) && isa<Constant>(FVal)) { in visitCallInst()
1267 CallInst *AbsT = Builder.CreateCall(II->getCalledFunction(), {TVal}); in visitCallInst()
1272 if (match(TVal, m_FNeg(m_Specific(FVal)))) in visitCallInst()
1275 if (match(FVal, m_FNeg(m_Specific(TVal)))) in visitCallInst()
1276 return replaceOperand(*II, 0, TVal); in visitCallInst()
DInstCombineCasts.cpp2317 Value *Cond, *TVal, *FVal; in foldBitCastSelect() local
2319 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
2337 if (DestTy->isVectorTy() != TVal->getType()->isVectorTy()) in foldBitCastSelect()
2342 if (match(TVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy && in foldBitCastSelect()
2352 Value *CastedVal = Builder.CreateBitCast(TVal, DestTy); in foldBitCastSelect()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp502 Value *TVal, Value *FVal, in foldSelectICmpAndAnd() argument
511 if (!match(TVal, m_OneUse(m_And(m_Value(B), m_One())))) in foldSelectICmpAndAnd()
735 static Value *canonicalizeSaturatedAdd(ICmpInst *Cmp, Value *TVal, Value *FVal, in canonicalizeSaturatedAdd() argument
747 match(TVal, m_Add(m_Value(X), m_APInt(C))) && X == Cmp0 && in canonicalizeSaturatedAdd()
760 std::swap(TVal, FVal); in canonicalizeSaturatedAdd()
763 if (!match(TVal, m_AllOnes())) in canonicalizeSaturatedAdd()
1057 Value *TVal = Sel.getTrueValue(); in canonicalizeAbsNabs() local
1059 assert(isKnownNegation(TVal, FVal) && in canonicalizeAbsNabs()
1064 bool CmpUsesNegatedOp = match(Cmp.getOperand(0), m_Neg(m_Specific(TVal))) || in canonicalizeAbsNabs()
1093 if (TVal == LHS) { in canonicalizeAbsNabs()
[all …]
DInstCombineCasts.cpp2164 Value *Cond, *TVal, *FVal; in foldBitCastSelect() local
2166 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
2183 if (DestTy->isVectorTy() != TVal->getType()->isVectorTy()) in foldBitCastSelect()
2188 if (match(TVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy && in foldBitCastSelect()
2198 Value *CastedVal = Builder.CreateBitCast(TVal, DestTy); in foldBitCastSelect()
/external/llvm/lib/IR/
DDebugInfo.cpp151 } else if (auto *TVal = dyn_cast<DITemplateValueParameter>(Element)) { in processSubprogram() local
152 processType(TVal->getType().resolve()); in processSubprogram()
/external/llvm/lib/Transforms/Scalar/
DSCCP.cpp860 LatticeVal TVal = getValueState(I.getTrueValue()); in visitSelectInst() local
864 if (TVal.isConstant() && FVal.isConstant() && in visitSelectInst()
865 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
868 if (TVal.isUnknown()) // select ?, undef, X -> X. in visitSelectInst()
871 return mergeInValue(&I, TVal); in visitSelectInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCISelLowering.cpp167 SDValue TVal = Op.getOperand(2); in LowerSELECT_CC() local
173 return DAG.getNode(ARCISD::CMOV, dl, TVal.getValueType(), TVal, FVal, in LowerSELECT_CC()
/external/llvm-project/llvm/lib/Target/ARC/
DARCISelLowering.cpp166 SDValue TVal = Op.getOperand(2); in LowerSELECT_CC() local
172 return DAG.getNode(ARCISD::CMOV, dl, TVal.getValueType(), TVal, FVal, in LowerSELECT_CC()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp2360 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerXOR() local
2366 return DAG.getNode(AArch64ISD::CSEL, dl, Op.getValueType(), TVal, FVal, in LowerXOR()
2385 SDValue TVal = Sel.getOperand(2); in LowerXOR() local
2393 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal); in LowerXOR()
2402 std::swap(TVal, FVal); in LowerXOR()
2413 TVal = DAG.getNode(ISD::XOR, dl, Other.getValueType(), Other, in LowerXOR()
2416 return DAG.getNode(AArch64ISD::CSEL, dl, Sel.getValueType(), FVal, TVal, in LowerXOR()
2471 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerXALUO() local
2478 Overflow = DAG.getNode(AArch64ISD::CSEL, dl, MVT::i32, FVal, TVal, in LowerXALUO()
5231 SDValue TVal = DAG.getConstant(1, dl, VT); in LowerSETCC() local
[all …]
DAArch64ISelLowering.h714 SDValue TVal, SDValue FVal, const SDLoc &dl,
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp1756 SDValue TVal = Sel.getOperand(2); in LowerXOR() local
1765 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal); in LowerXOR()
1774 std::swap(TVal, FVal); in LowerXOR()
1785 TVal = DAG.getNode(ISD::XOR, dl, Other.getValueType(), Other, in LowerXOR()
1788 return DAG.getNode(AArch64ISD::CSEL, dl, Sel.getValueType(), FVal, TVal, in LowerXOR()
1843 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerXALUO() local
1850 Overflow = DAG.getNode(AArch64ISD::CSEL, dl, MVT::i32, FVal, TVal, in LowerXALUO()
3864 SDValue TVal = DAG.getConstant(1, dl, VT); in LowerSETCC() local
3888 return DAG.getNode(AArch64ISD::CSEL, dl, VT, FVal, TVal, CCVal, Cmp); in LowerSETCC()
3907 return DAG.getNode(AArch64ISD::CSEL, dl, VT, FVal, TVal, CC1Val, Cmp); in LowerSETCC()
[all …]
DAArch64ISelLowering.h486 SDValue TVal, SDValue FVal, const SDLoc &dl,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSCCP.cpp961 LatticeVal TVal = getValueState(I.getTrueValue()); in visitSelectInst() local
965 if (TVal.isConstant() && FVal.isConstant() && in visitSelectInst()
966 TVal.getConstant() == FVal.getConstant()) in visitSelectInst()
969 if (TVal.isUnknown()) // select ?, undef, X -> X. in visitSelectInst()
972 return (void)mergeInValue(&I, TVal); in visitSelectInst()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp2883 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerXOR() local
2889 return DAG.getNode(AArch64ISD::CSEL, dl, Op.getValueType(), TVal, FVal, in LowerXOR()
2908 SDValue TVal = Sel.getOperand(2); in LowerXOR() local
2916 ConstantSDNode *CTVal = dyn_cast<ConstantSDNode>(TVal); in LowerXOR()
2925 std::swap(TVal, FVal); in LowerXOR()
2936 TVal = DAG.getNode(ISD::XOR, dl, Other.getValueType(), Other, in LowerXOR()
2939 return DAG.getNode(AArch64ISD::CSEL, dl, Sel.getValueType(), FVal, TVal, in LowerXOR()
2994 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerXALUO() local
3001 Overflow = DAG.getNode(AArch64ISD::CSEL, dl, MVT::i32, FVal, TVal, in LowerXALUO()
6477 SDValue TVal = DAG.getConstant(1, dl, VT); in LowerSETCC() local
[all …]
DAArch64ISelLowering.h871 SDValue TVal, SDValue FVal, const SDLoc &dl,
/external/llvm-project/llvm/lib/CodeGen/
DCodeGenPrepare.cpp6471 Value *Cond, *TVal, *FVal; in optimizeShiftInst() local
6473 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeShiftInst()
6475 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
6480 Value *NewTVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), TVal); in optimizeShiftInst()
6506 Value *Cond, *TVal, *FVal; in optimizeFunnelShift() local
6508 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeFunnelShift()
6510 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
6515 Value *NewTVal = Builder.CreateIntrinsic(Opcode, Ty, { X, Y, TVal }); in optimizeFunnelShift()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDebugInfo.cpp191 } else if (auto *TVal = dyn_cast<DITemplateValueParameter>(Element)) { in processSubprogram() local
192 processType(TVal->getType()); in processSubprogram()
/external/llvm-project/llvm/lib/IR/
DDebugInfo.cpp189 } else if (auto *TVal = dyn_cast<DITemplateValueParameter>(Element)) { in processSubprogram() local
190 processType(TVal->getType()); in processSubprogram()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DSCCP.cpp951 ValueLatticeElement TVal = getValueState(I.getTrueValue()); in visitSelectInst() local
954 bool Changed = ValueState[&I].mergeIn(TVal); in visitSelectInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp6030 Value *Cond, *TVal, *FVal; in optimizeShiftInst() local
6032 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeShiftInst()
6034 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
6039 Value *NewTVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), TVal); in optimizeShiftInst()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.cpp4477 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerSignedALUO() local
4481 SDValue Overflow = DAG.getNode(ARMISD::CMOV, dl, VT, TVal, FVal, in LowerSignedALUO()
4963 unsigned TVal = CTVal->getZExtValue(); in LowerSELECT_CC() local
4967 if (TVal == ~FVal) { in LowerSELECT_CC()
4969 } else if (TVal == ~FVal + 1) { in LowerSELECT_CC()
4971 } else if (TVal + 1 == FVal) { in LowerSELECT_CC()
4973 } else if (TVal == FVal + 1) { in LowerSELECT_CC()
4976 std::swap(TVal, FVal); in LowerSELECT_CC()
4984 HasLowerConstantMaterializationCost(FVal, TVal, Subtarget)) { in LowerSELECT_CC()
4986 std::swap(TVal, FVal); in LowerSELECT_CC()
[all …]
/external/llvm-project/llvm/lib/Target/ARM/
DARMISelLowering.cpp4755 SDValue TVal = DAG.getConstant(1, dl, MVT::i32); in LowerSignedALUO() local
4759 SDValue Overflow = DAG.getNode(ARMISD::CMOV, dl, VT, TVal, FVal, in LowerSignedALUO()
5210 unsigned TVal = CTVal->getZExtValue(); in LowerSELECT_CC() local
5214 if (TVal == ~FVal) { in LowerSELECT_CC()
5216 } else if (TVal == ~FVal + 1) { in LowerSELECT_CC()
5218 } else if (TVal + 1 == FVal) { in LowerSELECT_CC()
5220 } else if (TVal == FVal + 1) { in LowerSELECT_CC()
5223 std::swap(TVal, FVal); in LowerSELECT_CC()
5231 HasLowerConstantMaterializationCost(FVal, TVal, Subtarget)) { in LowerSELECT_CC()
5233 std::swap(TVal, FVal); in LowerSELECT_CC()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DSelectionDAG.h1032 SDValue simplifySelect(SDValue Cond, SDValue TVal, SDValue FVal);

12