Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp70 APInt SignMask; member
1501 State.SignMask = APInt::getSignMask(NumBits); in getSignAsIntValue()
1537 State.SignMask = APInt::getOneBitSet(LoadTy.getScalarSizeInBits(), 7); in getSignAsIntValue()
1566 SDValue SignMask = DAG.getConstant(SignAsInt.SignMask, DL, IntVT); in ExpandFCOPYSIGN() local
1568 SignMask); in ExpandFCOPYSIGN()
1585 SDValue ClearSignMask = DAG.getConstant(~MagAsInt.SignMask, DL, MagVT); in ExpandFCOPYSIGN()
1622 SDValue SignMask = DAG.getConstant(SignAsInt.SignMask, DL, IntVT); in ExpandFNEG() local
1624 DAG.getNode(ISD::XOR, DL, IntVT, SignAsInt.IntValue, SignMask); in ExpandFNEG()
1645 SDValue ClearSignMask = DAG.getConstant(~ValueAsInt.SignMask, DL, IntVT); in ExpandFABS()
H A DDAGCombiner.cpp12591 APInt SignMask; in foldBitcastedFPLogic() local
12599 SignMask = APInt::getSignMask(SourceVT.getScalarSizeInBits()); in foldBitcastedFPLogic()
12603 SignMask = APInt::getSignMask(SourceVT.getScalarSizeInBits()); in foldBitcastedFPLogic()
12615 if (LogicOp1 && LogicOp1->getAPIntValue() == SignMask && in foldBitcastedFPLogic()
22488 APInt SignMask; in foldSignChangeInBitcast() local
22492 SignMask = APInt::getSignMask(N0.getScalarValueSizeInBits()); in foldSignChangeInBitcast()
22494 SignMask = ~SignMask; in foldSignChangeInBitcast()
22495 SignMask = APInt::getSplat(IntVT.getSizeInBits(), SignMask); in foldSignChangeInBitcast()
22498 SignMask = APInt::getSignMask(IntVT.getSizeInBits()); in foldSignChangeInBitcast()
22500 SignMask = ~SignMask; in foldSignChangeInBitcast()
[all …]
H A DTargetLowering.cpp6713 SDValue SignMask = DAG.getConstant(APInt::getSignMask(SrcEltBits), dl, IntVT); in expandFP_TO_SINT() local
6725 DAG.getNode(ISD::AND, dl, IntVT, Bits, SignMask), in expandFP_TO_SINT()
6781 APInt SignMask = APInt::getSignMask(DstVT.getScalarSizeInBits()); in expandFP_TO_UINT() local
6783 APF.convertFromAPInt(SignMask, false, APFloat::rmNearestTiesToEven)) { in expandFP_TO_UINT()
6826 DAG.getConstant(SignMask, dl, DstVT)); in expandFP_TO_UINT()
6850 DAG.getConstant(SignMask, dl, DstVT)); in expandFP_TO_UINT()
H A DLegalizeFloatTypes.cpp481 APInt SignMask = APInt::getSignMask(NVT.getSizeInBits()); in SoftenFloatRes_FNEG() local
483 DAG.getConstant(SignMask, dl, NVT)); in SoftenFloatRes_FNEG()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp3211 auto SignMask = in lower() local
3214 MIRBuilder.buildXor(Res, SubByReg, SignMask); in lower()
6200 auto SignMask = MIRBuilder.buildConstant(SrcTy, in lowerFPTOSI() local
6202 auto AndSignMask = MIRBuilder.buildAnd(SrcTy, Src, SignMask); in lowerFPTOSI()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp2363 APInt SignMask = APInt::getSignMask(Ty->getScalarSizeInBits()); in foldICmpSRemConstant() local
2364 Constant *MaskC = ConstantInt::get(Ty, SignMask | (*DivisorC - 1)); in foldICmpSRemConstant()
2376 return new ICmpInst(ICmpInst::ICMP_UGT, And, ConstantInt::get(Ty, SignMask)); in foldICmpSRemConstant()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp22113 SDValue SignMask = DAG.getConstantFP( in LowerFCOPYSIGN() local
28344 SDValue SignMask = DAG.getConstant(0x8080, dl, ExtVT); in LowerScalarVariableShift() local
28345 SignMask = getTargetVShiftNode(LogicalX86Op, dl, ExtVT, SignMask, in LowerScalarVariableShift()
28347 SignMask = DAG.getBitcast(VT, SignMask); in LowerScalarVariableShift()
28348 Res = DAG.getNode(ISD::XOR, dl, VT, Res, SignMask); in LowerScalarVariableShift()
28349 Res = DAG.getNode(ISD::SUB, dl, VT, Res, SignMask); in LowerScalarVariableShift()
39466 APInt SignMask = APInt::getSignMask(BitWidth * 2); in SimplifyDemandedBitsForTargetNode() local
39467 if (SimplifyDemandedBits(Op.getOperand(0), SignMask, DemandedLHS, in SimplifyDemandedBitsForTargetNode()
39470 if (SimplifyDemandedBits(Op.getOperand(1), SignMask, DemandedRHS, in SimplifyDemandedBitsForTargetNode()
39476 Op.getOperand(0), SignMask, DemandedLHS, TLO.DAG, Depth + 1); in SimplifyDemandedBitsForTargetNode()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp8136 SDValue SignMask = DAG.getConstant(0x80000000, dl, DstVT); in LowerFP_TO_INT() local
8164 dl, DstVT, Sel, DAG.getConstant(0, dl, DstVT), SignMask); in LowerFP_TO_INT()
8172 True = DAG.getNode(ISD::ADD, dl, MVT::i32, True, SignMask); in LowerFP_TO_INT()