Home
last modified time | relevance | path

Searched refs:FVal (Results 1 – 22 of 22) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp587 Value *TVal, Value *FVal, in foldSelectICmpAndAnd() argument
591 match(Cmp->getOperand(1), m_Zero()) && match(FVal, m_One()))) in foldSelectICmpAndAnd()
635 Value *FVal, in foldSelectICmpAndZeroShl() argument
644 std::swap(TVal, FVal); in foldSelectICmpAndZeroShl()
651 !match(TVal, m_Zero()) || !match(FVal, m_Shl(m_Specific(X), m_APInt(C2)))) in foldSelectICmpAndZeroShl()
658 auto *FI = dyn_cast<Instruction>(FVal); in foldSelectICmpAndZeroShl()
664 return FVal; in foldSelectICmpAndZeroShl()
970 static Value *canonicalizeSaturatedAdd(ICmpInst *Cmp, Value *TVal, Value *FVal, in canonicalizeSaturatedAdd() argument
983 match(FVal, m_AllOnes()) && match(Cmp1, m_APInt(CmpC)) && *CmpC == ~*C) { in canonicalizeSaturatedAdd()
992 if (match(FVal, m_AllOnes())) { in canonicalizeSaturatedAdd()
[all …]
H A DInstCombineCalls.cpp2560 Value *Cond, *TVal, *FVal; in visitCallInst() local
2569 if (match(Arg, m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal)))) { in visitCallInst()
2571 if (isa<Constant>(TVal) || isa<Constant>(FVal)) { in visitCallInst()
2573 CallInst *AbsF = Builder.CreateCall(II->getCalledFunction(), {FVal}); in visitCallInst()
2582 if (match(TVal, m_FNeg(m_Specific(FVal)))) in visitCallInst()
2583 return replaceOperand(*II, 0, FVal); in visitCallInst()
2585 if (match(FVal, m_FNeg(m_Specific(TVal)))) in visitCallInst()
H A DInstCombineCasts.cpp2444 Value *Cond, *TVal, *FVal; in foldBitCastSelect() local
2446 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
2470 Value *CastedVal = Builder.CreateBitCast(FVal, DestTy); in foldBitCastSelect()
2474 if (match(FVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy && in foldBitCastSelect()
H A DInstructionCombining.cpp1306 auto foldAddNegate = [&](Value *TVal, Value *FVal, Value *Z) -> Value * { in SimplifySelectsFeedingBinaryOp() argument
1312 if (True && match(FVal, m_Neg(m_Value(N)))) { in SimplifySelectsFeedingBinaryOp()
1645 Value *FVal = Builder.CreateBinOp(BO.getOpcode(), Zero, C); in foldBinopOfSextBoolToSelect() local
1646 return SelectInst::Create(X, TVal, FVal); in foldBinopOfSextBoolToSelect()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h250 auto FVal = static_cast<uint64_t>(Flag);
252 Entry.Flags |= IsCommon ? FVal : (FVal << 32);
258 auto FVal = static_cast<uint64_t>(Flag);
260 Entry.Flags &= ~(IsCommon ? FVal : (FVal << 32));
266 auto FVal = static_cast<uint64_t>(Flag);
268 return Entry.Flags & (IsCommon ? FVal : (FVal << 32));
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp863 SmallVector<float, 0> FVal; in TDOFold() local
865 FVal.push_back((float)D); in TDOFold()
866 ArrayRef<float> tmp(FVal); in TDOFold()
1083 SmallVector<float, 0> FVal; in fold_pow() local
1085 FVal.push_back((float)D); in fold_pow()
1086 ArrayRef<float> tmp(FVal); in fold_pow()
H A DAMDGPUISelLowering.cpp3304 SDValue FVal = DAG.getNode(Opc, SL, MVT::f32, Norm); in LowerINT_TO_FP32() local
3312 return DAG.getNode(ISD::FLDEXP, SL, MVT::f32, FVal, ShAmt); in LowerINT_TO_FP32()
3321 DAG.getNode(ISD::BITCAST, SL, MVT::i32, FVal), Exp); in LowerINT_TO_FP32()
H A DAMDGPULegalizerInfo.cpp2603 auto FVal = Signed ? B.buildSITOFP(S32, Norm2) : B.buildUITOFP(S32, Norm2); in legalizeITOFP() local
2605 B.buildFLdexp(Dst, FVal, Scale); in legalizeITOFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCISelLowering.cpp208 SDValue FVal = Op.getOperand(3); in LowerSELECT_CC() local
213 return DAG.getNode(ARCISD::CMOV, dl, TVal.getValueType(), TVal, FVal, in LowerSELECT_CC()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4086 SDValue FVal = DAG.getConstant(0, dl, MVT::i32); in LowerXOR() local
4091 return DAG.getNode(AArch64ISD::CSEL, dl, Op.getValueType(), TVal, FVal, in LowerXOR()
4111 SDValue FVal = Sel.getOperand(3); in LowerXOR() local
4117 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal); in LowerXOR()
4127 std::swap(TVal, FVal); in LowerXOR()
4137 FVal = Other; in LowerXOR()
4141 return DAG.getNode(AArch64ISD::CSEL, dl, Sel.getValueType(), FVal, TVal, in LowerXOR()
4225 SDValue FVal = DAG.getConstant(0, dl, MVT::i32); in LowerXALUO() local
4231 Overflow = DAG.getNode(AArch64ISD::CSEL, dl, MVT::i32, FVal, TVal, in LowerXALUO()
10325 SDValue FVal = DAG.getConstant(0, dl, VT); in LowerSETCC() local
[all …]
H A DAArch64ISelLowering.h1144 SDValue TVal, SDValue FVal, const SDLoc &dl,
H A DAArch64ISelDAGToDAG.cpp3857 APFloat FVal(0.0); in checkCVTFixedPointOperandWithFBits() local
3859 FVal = CN->getValueAPF(); in checkCVTFixedPointOperandWithFBits()
3868 FVal = cast<ConstantFP>(CN->getConstVal())->getValueAPF(); in checkCVTFixedPointOperandWithFBits()
3882 if (!FVal.getExactInverse(&FVal)) in checkCVTFixedPointOperandWithFBits()
3888 FVal.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact); in checkCVTFixedPointOperandWithFBits()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4535 Value *FVal) { in simplifyCmpSelOfMaxMin() argument
4537 if (CmpRHS == TVal || CmpRHS == FVal) { in simplifyCmpSelOfMaxMin()
4543 if (CmpLHS == FVal) { in simplifyCmpSelOfMaxMin()
4544 std::swap(TVal, FVal); in simplifyCmpSelOfMaxMin()
4552 auto *Shuf = dyn_cast<ShuffleVectorInst>(FVal); in simplifyCmpSelOfMaxMin()
4555 FVal = Shuf->getOperand(1); in simplifyCmpSelOfMaxMin()
4557 FVal = Shuf->getOperand(0); in simplifyCmpSelOfMaxMin()
4564 auto *MMI = dyn_cast<MinMaxIntrinsic>(FVal); in simplifyCmpSelOfMaxMin()
4566 !match(FVal, m_c_MaxOrMin(m_Specific(X), m_Specific(Y)))) in simplifyCmpSelOfMaxMin()
H A DValueTracking.cpp8171 Value *TVal, Value *FVal, in matchMinMaxOfMinMax() argument
8182 SelectPatternResult R = matchSelectPattern(FVal, C, D, nullptr, Depth + 1); in matchMinMaxOfMinMax()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7058 Value *Cond, *TVal, *FVal; in optimizeShiftInst() local
7060 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeShiftInst()
7062 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
7068 Value *NewFVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), FVal); in optimizeShiftInst()
7093 Value *Cond, *TVal, *FVal; in optimizeFunnelShift() local
7095 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeFunnelShift()
7097 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
7103 Value *NewFVal = Builder.CreateIntrinsic(Opcode, Ty, {X, Y, FVal}); in optimizeFunnelShift()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2949 auto *FVal = Select->getFalseValue();
2957 auto *C = dyn_cast<Constant>(FVal);
2965 return (L.match(Cond) && R.match(FVal)) ||
2966 (Commutable && L.match(FVal) && R.match(Cond));
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1427 ValueLatticeElement FVal = getValueState(I.getFalseValue()); in visitSelectInst() local
1430 Changed |= ValueState[&I].mergeIn(FVal); in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5008 SDValue FVal = DAG.getConstant(0, dl, MVT::i32); in LowerSignedALUO() local
5011 SDValue Overflow = DAG.getNode(ARMISD::CMOV, dl, VT, TVal, FVal, in LowerSignedALUO()
5468 unsigned FVal = CFVal->getZExtValue(); in LowerSELECT_CC() local
5471 if (TVal == ~FVal) { in LowerSELECT_CC()
5473 } else if (TVal == ~FVal + 1) { in LowerSELECT_CC()
5475 } else if (TVal + 1 == FVal) { in LowerSELECT_CC()
5477 } else if (TVal == FVal + 1) { in LowerSELECT_CC()
5480 std::swap(TVal, FVal); in LowerSELECT_CC()
5488 HasLowerConstantMaterializationCost(FVal, TVal, Subtarget)) { in LowerSELECT_CC()
5490 std::swap(TVal, FVal); in LowerSELECT_CC()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp1219 llvm::APFloat FVal(getContext().getFloatTypeSemantics(ElemTy), 1); in EmitComplexPrePostIncDec() local
1221 FVal.changeSign(); in EmitComplexPrePostIncDec()
1222 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1277 SDValue simplifySelect(SDValue Cond, SDValue TVal, SDValue FVal);
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp45577 SDValue FVal = N->getOperand(2); in narrowVectorSelect() local
45578 if (!TVal.hasOneUse() || !FVal.hasOneUse() || in narrowVectorSelect()
45580 !isFreeToSplitVector(FVal.getNode(), DAG)) in narrowVectorSelect()
45587 return SplitOpsAndApply(DAG, Subtarget, DL, VT, {Cond, TVal, FVal}, makeBlend, in narrowVectorSelect()
46671 ConstantSDNode *FVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(0)); in checkBoolTestSetCCCombine() local
46677 if (!FVal) { in checkBoolTestSetCCCombine()
46691 if (FVal && FVal->getZExtValue() != 0) { in checkBoolTestSetCCCombine()
46692 if (FVal->getZExtValue() != 1) in checkBoolTestSetCCCombine()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2405 SDValue FVal = N1.getOperand(2); in foldSelectWithIdentityConstant() local
2412 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, FVal, N->getFlags()); in foldSelectWithIdentityConstant()
2416 if (isNeutralConstant(Opcode, N->getFlags(), FVal, OpNo)) { in foldSelectWithIdentityConstant()