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.cpp572 Value *FVal, in foldSelectICmpMinMax() argument
590 if (!(CmpLHS == TVal && isa<Instruction>(FVal))) in foldSelectICmpMinMax()
594 match(FVal, m_NSWAdd(m_Specific(CmpRHS), m_One()))) { in foldSelectICmpMinMax()
595 cast<Instruction>(FVal)->setHasNoUnsignedWrap(false); in foldSelectICmpMinMax()
596 return Builder.CreateBinaryIntrinsic(Intrinsic::smax, TVal, FVal); in foldSelectICmpMinMax()
600 match(FVal, m_NSWAdd(m_Specific(CmpRHS), m_AllOnes()))) { in foldSelectICmpMinMax()
601 cast<Instruction>(FVal)->setHasNoUnsignedWrap(false); in foldSelectICmpMinMax()
602 return Builder.CreateBinaryIntrinsic(Intrinsic::smin, TVal, FVal); in foldSelectICmpMinMax()
606 match(FVal, m_NUWAdd(m_Specific(CmpRHS), m_One()))) { in foldSelectICmpMinMax()
607 cast<Instruction>(FVal)->setHasNoSignedWrap(false); in foldSelectICmpMinMax()
[all …]
H A DInstCombineCalls.cpp2851 Value *Cond, *TVal, *FVal; in visitCallInst() local
2860 if (match(Arg, m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal)))) { in visitCallInst()
2862 if (Arg->hasOneUse() ? (isa<Constant>(TVal) || isa<Constant>(FVal)) in visitCallInst()
2863 : (isa<Constant>(TVal) && isa<Constant>(FVal))) { in visitCallInst()
2865 CallInst *AbsF = Builder.CreateCall(II->getCalledFunction(), {FVal}); in visitCallInst()
2874 if (match(TVal, m_FNeg(m_Specific(FVal)))) in visitCallInst()
2875 return replaceOperand(*II, 0, FVal); in visitCallInst()
2877 if (match(FVal, m_FNeg(m_Specific(TVal)))) in visitCallInst()
H A DInstCombineCasts.cpp2511 Value *Cond, *TVal, *FVal; in foldBitCastSelect() local
2513 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in foldBitCastSelect()
2537 Value *CastedVal = Builder.CreateBitCast(FVal, DestTy); in foldBitCastSelect()
2541 if (match(FVal, m_OneUse(m_BitCast(m_Value(X)))) && X->getType() == DestTy && in foldBitCastSelect()
H A DInstructionCombining.cpp1334 auto foldAddNegate = [&](Value *TVal, Value *FVal, Value *Z) -> Value * { in SimplifySelectsFeedingBinaryOp() argument
1340 if (True && match(FVal, m_Neg(m_Value(N)))) { in SimplifySelectsFeedingBinaryOp()
1693 Value *FVal = Builder.CreateBinOp(BO.getOpcode(), Zero, C); in foldBinopOfSextBoolToSelect() local
1694 return SelectInst::Create(X, TVal, FVal); in foldBinopOfSextBoolToSelect()
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DSampleProf.h253 auto FVal = static_cast<uint64_t>(Flag);
255 Entry.Flags |= IsCommon ? FVal : (FVal << 32);
261 auto FVal = static_cast<uint64_t>(Flag);
263 Entry.Flags &= ~(IsCommon ? FVal : (FVal << 32));
269 auto FVal = static_cast<uint64_t>(Flag);
271 return Entry.Flags & (IsCommon ? FVal : (FVal << 32));
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp860 SmallVector<float, 0> FVal; in TDOFold() local
862 FVal.push_back((float)D); in TDOFold()
863 ArrayRef<float> tmp(FVal); in TDOFold()
1081 SmallVector<float, 0> FVal; in fold_pow() local
1083 FVal.push_back((float)D); in fold_pow()
1084 ArrayRef<float> tmp(FVal); in fold_pow()
H A DAMDGPUISelLowering.cpp3362 SDValue FVal = DAG.getNode(Opc, SL, MVT::f32, Norm); in LowerINT_TO_FP32() local
3370 return DAG.getNode(ISD::FLDEXP, SL, MVT::f32, FVal, ShAmt); in LowerINT_TO_FP32()
3379 DAG.getNode(ISD::BITCAST, SL, MVT::i32, FVal), Exp); in LowerINT_TO_FP32()
H A DAMDGPULegalizerInfo.cpp2653 auto FVal = Signed ? B.buildSITOFP(S32, Norm2) : B.buildUITOFP(S32, Norm2); in legalizeITOFP() local
2655 B.buildFLdexp(Dst, FVal, Scale); in legalizeITOFP()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARC/
H A DARCISelLowering.cpp191 SDValue FVal = Op.getOperand(3); in LowerSELECT_CC() local
196 return DAG.getNode(ARCISD::CMOV, dl, TVal.getValueType(), TVal, FVal, in LowerSELECT_CC()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4099 SDValue FVal = DAG.getConstant(0, DL, MVT::i32); in LowerXOR() local
4104 return DAG.getNode(AArch64ISD::CSEL, DL, Op.getValueType(), TVal, FVal, in LowerXOR()
4124 SDValue FVal = Sel.getOperand(3); in LowerXOR() local
4130 ConstantSDNode *CFVal = dyn_cast<ConstantSDNode>(FVal); in LowerXOR()
4140 std::swap(TVal, FVal); in LowerXOR()
4150 FVal = Other; in LowerXOR()
4154 return DAG.getNode(AArch64ISD::CSEL, DL, Sel.getValueType(), FVal, TVal, in LowerXOR()
4238 SDValue FVal = DAG.getConstant(0, DL, MVT::i32); in LowerXALUO() local
4245 DAG.getNode(AArch64ISD::CSEL, DL, MVT::i32, FVal, TVal, CCVal, Overflow); in LowerXALUO()
11014 SDValue FVal = DAG.getConstant(0, DL, VT); in LowerSETCC() local
[all …]
H A DAArch64ISelLowering.h654 SDValue TVal, SDValue FVal,
H A DAArch64ISelDAGToDAG.cpp3959 APFloat FVal(0.0); in checkCVTFixedPointOperandWithFBits() local
3961 FVal = CN->getValueAPF(); in checkCVTFixedPointOperandWithFBits()
3970 FVal = cast<ConstantFP>(CN->getConstVal())->getValueAPF(); in checkCVTFixedPointOperandWithFBits()
3984 if (!FVal.getExactInverse(&FVal)) in checkCVTFixedPointOperandWithFBits()
3990 FVal.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact); in checkCVTFixedPointOperandWithFBits()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp4545 Value *FVal) { in simplifyCmpSelOfMaxMin() argument
4547 if (CmpRHS == TVal || CmpRHS == FVal) { in simplifyCmpSelOfMaxMin()
4553 if (CmpLHS == FVal) { in simplifyCmpSelOfMaxMin()
4554 std::swap(TVal, FVal); in simplifyCmpSelOfMaxMin()
4562 auto *Shuf = dyn_cast<ShuffleVectorInst>(FVal); in simplifyCmpSelOfMaxMin()
4565 FVal = Shuf->getOperand(1); in simplifyCmpSelOfMaxMin()
4567 FVal = Shuf->getOperand(0); in simplifyCmpSelOfMaxMin()
4574 auto *MMI = dyn_cast<MinMaxIntrinsic>(FVal); in simplifyCmpSelOfMaxMin()
4576 !match(FVal, m_c_MaxOrMin(m_Specific(X), m_Specific(Y)))) in simplifyCmpSelOfMaxMin()
H A DValueTracking.cpp8273 Value *TVal, Value *FVal, in matchMinMaxOfMinMax() argument
8284 SelectPatternResult R = matchSelectPattern(FVal, C, D, nullptr, Depth + 1); in matchMinMaxOfMinMax()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp7454 Value *Cond, *TVal, *FVal; in optimizeShiftInst() local
7456 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeShiftInst()
7458 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeShiftInst()
7464 Value *NewFVal = Builder.CreateBinOp(Opcode, Shift->getOperand(0), FVal); in optimizeShiftInst()
7489 Value *Cond, *TVal, *FVal; in optimizeFunnelShift() local
7491 m_OneUse(m_Select(m_Value(Cond), m_Value(TVal), m_Value(FVal))))) in optimizeFunnelShift()
7493 if (!isSplatValue(TVal) || !isSplatValue(FVal)) in optimizeFunnelShift()
7499 Value *NewFVal = Builder.CreateIntrinsic(Opcode, Ty, {X, Y, FVal}); in optimizeFunnelShift()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h3100 auto *FVal = Select->getFalseValue();
3108 auto *C = dyn_cast<Constant>(FVal);
3116 return (L.match(Cond) && R.match(FVal)) ||
3117 (Commutable && L.match(FVal) && R.match(Cond));
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSCCPSolver.cpp1527 ValueLatticeElement FVal = getValueState(I.getFalseValue()); in visitSelectInst() local
1531 Changed |= State.mergeIn(FVal); in visitSelectInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5071 SDValue FVal = DAG.getConstant(0, dl, MVT::i32); in LowerSignedALUO() local
5075 DAG.getNode(ARMISD::CMOV, dl, VT, TVal, FVal, ARMcc, OverflowCmp); in LowerSignedALUO()
5555 unsigned FVal = CFVal->getZExtValue(); in LowerSELECT_CC() local
5558 if (TVal == ~FVal) { in LowerSELECT_CC()
5560 } else if (TVal == ~FVal + 1) { in LowerSELECT_CC()
5562 } else if (TVal + 1 == FVal) { in LowerSELECT_CC()
5564 } else if (TVal == FVal + 1) { in LowerSELECT_CC()
5567 std::swap(TVal, FVal); in LowerSELECT_CC()
5575 HasLowerConstantMaterializationCost(FVal, TVal, Subtarget)) { in LowerSELECT_CC()
5577 std::swap(TVal, FVal); in LowerSELECT_CC()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExpr.cpp1275 llvm::APFloat FVal(getContext().getFloatTypeSemantics(ElemTy), 1); in EmitComplexPrePostIncDec() local
1277 FVal.changeSign(); in EmitComplexPrePostIncDec()
1278 NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal); in EmitComplexPrePostIncDec()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAG.h1355 LLVM_ABI SDValue simplifySelect(SDValue Cond, SDValue TVal, SDValue FVal);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp2488 SDValue FVal = N1.getOperand(2); in foldSelectWithIdentityConstant() local
2496 FVal)) { in foldSelectWithIdentityConstant()
2498 SDValue NewBO = DAG.getNode(Opcode, SDLoc(N), VT, F0, FVal, N->getFlags()); in foldSelectWithIdentityConstant()
2502 if (isNeutralConstant(Opcode, N->getFlags(), FVal, OpNo) && in foldSelectWithIdentityConstant()
13078 SDValue FVal, in combineVSelectWithAllOnesOrZeros() argument
13091 bool IsFAllZero = ISD::isConstantSplatVectorAllZeros(FVal.getNode()); in combineVSelectWithAllOnesOrZeros()
13092 bool IsFAllOne = ISD::isConstantSplatVectorAllOnes(FVal.getNode()); in combineVSelectWithAllOnesOrZeros()
13112 ISD::isConstantSplatVectorAllOnes(FVal.getNode())) { in combineVSelectWithAllOnesOrZeros()
13139 std::swap(TVal, FVal); in combineVSelectWithAllOnesOrZeros()
13154 SDValue X = DAG.getBitcast(CondVT, FVal); in combineVSelectWithAllOnesOrZeros()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp47313 SDValue FVal = N->getOperand(2); in narrowVectorSelect() local
47314 if (!TVal.hasOneUse() || !FVal.hasOneUse() || in narrowVectorSelect()
47315 !isFreeToSplitVector(TVal, DAG) || !isFreeToSplitVector(FVal, DAG)) in narrowVectorSelect()
47322 return SplitOpsAndApply(DAG, Subtarget, DL, VT, {Cond, TVal, FVal}, makeBlend, in narrowVectorSelect()
48423 ConstantSDNode *FVal = dyn_cast<ConstantSDNode>(SetCC.getOperand(0)); in checkBoolTestSetCCCombine() local
48429 if (!FVal) { in checkBoolTestSetCCCombine()
48443 if (FVal && FVal->getZExtValue() != 0) { in checkBoolTestSetCCCombine()
48444 if (FVal->getZExtValue() != 1) in checkBoolTestSetCCCombine()