| /freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
| H A D | KnownFPClass.h | 29 std::optional<bool> SignBit; member 32 return KnownFPClasses == Other.KnownFPClasses && SignBit == Other.SignBit; 42 bool isUnknown() const { return KnownFPClasses == fcAllFlags && !SignBit; } in isUnknown() 121 if (SignBit != RHS.SignBit) 122 SignBit = std::nullopt; 128 if (isKnownNever(fcNan) && !SignBit) { in knownNot() 130 SignBit = false; in knownNot() 132 SignBit = true; in knownNot() 138 if (SignBit) in fneg() 139 SignBit = !*SignBit; in fneg() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/LowLevel/ |
| H A D | DWARFExpression.h | 50 SignBit = 0x80, enumerator 51 SignedSize1 = SignBit | Size1, 52 SignedSize2 = SignBit | Size2, 53 SignedSize4 = SignBit | Size4, 54 SignedSize8 = SignBit | Size8, 55 SignedSizeLEB = SignBit | SizeLEB,
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelValueTracking.cpp | 775 Known.SignBit = APF.isNegative(); in computeKnownFPClass() 792 Known.SignBit = SignBitAllOne; in computeKnownFPClass() 1056 if (KnownLHS.SignBit && KnownRHS.SignBit && in computeKnownFPClass() 1057 *KnownLHS.SignBit == *KnownRHS.SignBit) { in computeKnownFPClass() 1058 if (*KnownLHS.SignBit) in computeKnownFPClass() 1077 (KnownLHS.SignBit == false || KnownRHS.SignBit == false)) in computeKnownFPClass() 1083 (KnownLHS.SignBit == true || KnownRHS.SignBit == true)) in computeKnownFPClass() 1145 Known.SignBit.reset(); in computeKnownFPClass() 1386 if (KnownLHS.SignBit && KnownRHS.SignBit) { in computeKnownFPClass() 1387 if (*KnownLHS.SignBit == *KnownRHS.SignBit) in computeKnownFPClass() [all …]
|
| H A D | LegalizerHelper.cpp | 7772 auto SignBit = MIRBuilder.buildConstant(S64, 63); in lowerSITOFP() local 7773 auto S = MIRBuilder.buildAShr(S64, L, SignBit); in lowerSITOFP() 9268 APInt SignBit = APInt::getSignMask(BitSize); in lowerISFPCLASS() local 9277 auto SignBitC = MIRBuilder.buildConstant(IntTy, SignBit); in lowerISFPCLASS()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeFloatTypes.cpp | 428 SDValue SignBit = DAG.getNode( in SoftenFloatRes_FCOPYSIGN() local 432 SignBit = DAG.getNode(ISD::AND, dl, RVT, RHS, SignBit); in SoftenFloatRes_FCOPYSIGN() 437 SignBit = in SoftenFloatRes_FCOPYSIGN() 438 DAG.getNode(ISD::SRL, dl, RVT, SignBit, in SoftenFloatRes_FCOPYSIGN() 440 TLI.getShiftAmountTy(SignBit.getValueType(), in SoftenFloatRes_FCOPYSIGN() 442 SignBit = DAG.getNode(ISD::TRUNCATE, dl, LVT, SignBit); in SoftenFloatRes_FCOPYSIGN() 444 SignBit = DAG.getNode(ISD::ANY_EXTEND, dl, LVT, SignBit); in SoftenFloatRes_FCOPYSIGN() 445 SignBit = in SoftenFloatRes_FCOPYSIGN() 446 DAG.getNode(ISD::SHL, dl, LVT, SignBit, in SoftenFloatRes_FCOPYSIGN() 448 TLI.getShiftAmountTy(SignBit.getValueType(), in SoftenFloatRes_FCOPYSIGN() [all …]
|
| H A D | LegalizeDAG.cpp | 73 uint8_t SignBit; member 1643 State.SignBit = NumBits - 1; in getSignAsIntValue() 1679 State.SignBit = 7; in getSignAsIntValue() 1708 SDValue SignBit = DAG.getNode(ISD::AND, DL, IntVT, SignAsInt.IntValue, in ExpandFCOPYSIGN() local 1718 SDValue Cond = DAG.getSetCC(DL, getSetCCResultType(IntVT), SignBit, in ExpandFCOPYSIGN() 1732 int ShiftAmount = SignAsInt.SignBit - MagAsInt.SignBit; in ExpandFCOPYSIGN() 1734 if (SignBit.getScalarValueSizeInBits() < in ExpandFCOPYSIGN() 1736 SignBit = DAG.getNode(ISD::ZERO_EXTEND, DL, MagVT, SignBit); in ExpandFCOPYSIGN() 1741 SignBit = DAG.getNode(ISD::SRL, DL, ShiftVT, SignBit, ShiftCnst); in ExpandFCOPYSIGN() 1744 SignBit = DAG.getNode(ISD::SHL, DL, ShiftVT, SignBit, ShiftCnst); in ExpandFCOPYSIGN() [all …]
|
| H A D | LegalizeVectorOps.cpp | 1785 SDValue SignBit = in ExpandVP_FCOPYSIGN() local 1793 SDValue CopiedSign = DAG.getNode(ISD::VP_OR, DL, IntVT, ClearedSign, SignBit, in ExpandVP_FCOPYSIGN() 1991 SDValue SignBit = DAG.getNode(ISD::AND, DL, IntVT, Sign, SignMask); in ExpandFCOPYSIGN() local 1997 SDValue CopiedSign = DAG.getNode(ISD::OR, DL, IntVT, ClearedSign, SignBit, in ExpandFCOPYSIGN()
|
| H A D | DAGCombiner.cpp | 16538 SDValue SignBit = DAG.getConstant( in visitBITCAST() local 16542 FlipBit = SignBit; in visitBITCAST() 16551 FlipBit = DAG.getNode(ISD::AND, SDLoc(N0), MVT::i64, Hi, SignBit); in visitBITCAST() 16559 APInt SignBit = APInt::getSignMask(VT.getSizeInBits()); in visitBITCAST() local 16562 NewConv, DAG.getConstant(SignBit, DL, VT)); in visitBITCAST() 16565 NewConv, DAG.getConstant(~SignBit, DL, VT)); in visitBITCAST() 16607 APInt SignBit = APInt::getSignMask(VT.getSizeInBits() / 2); in visitBITCAST() local 16621 DAG.getConstant(SignBit, SDLoc(XorResult64), MVT::i64)); in visitBITCAST() 16628 APInt SignBit = APInt::getSignMask(VT.getSizeInBits()); in visitBITCAST() local 16630 X, DAG.getConstant(SignBit, SDLoc(X), VT)); in visitBITCAST() [all …]
|
| H A D | TargetLowering.cpp | 9047 APInt SignBit = APInt::getSignMask(BitSize); in expandIS_FPCLASS() local 9060 SDValue SignBitV = DAG.getConstant(SignBit, DL, IntVT); in expandIS_FPCLASS()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/LowLevel/ |
| H A D | DWARFExpression.cpp | 158 unsigned Signed = Size & Operation::SignBit; in extract() 160 switch (Size & ~Operation::SignBit) { in extract()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/ |
| H A D | Integral.h | 196 const ReprT SignBit = ReprT(1) << (TruncBits - 1); 198 return Integral((V & BitMask) | (Signed && (V & SignBit) ? ExtMask : 0));
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 1337 if (Result.SignBit) { in computeKnownBitsFromOperator() 1338 if (*Result.SignBit) in computeKnownBitsFromOperator() 4713 Known.SignBit = CFP->isNegative(); in computeKnownFPClass() 4719 Known.SignBit = false; in computeKnownFPClass() 4725 Known.SignBit = false; in computeKnownFPClass() 4764 Known.SignBit = SignBitAllOne; in computeKnownFPClass() 4791 if (!Known.SignBit && AssumedClasses.SignBit) { in computeKnownFPClass() 4792 if (*AssumedClasses.SignBit) in computeKnownFPClass() 5029 if (KnownLHS.SignBit && KnownRHS.SignBit && in computeKnownFPClass() 5030 *KnownLHS.SignBit == *KnownRHS.SignBit) { in computeKnownFPClass() [all …]
|
| H A D | InstructionSimplify.cpp | 5849 if (Known.SignBit == false) in simplifyFMAFMul() 5852 if (Known.SignBit == true) in simplifyFMAFMul()
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/ |
| H A D | DWARFExpressionPrinter.cpp | 70 unsigned Signed = Size & DWARFExpression::Operation::SignBit; in printOp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPURegBankLegalizeHelper.cpp | 257 auto SignBit = B.buildShl({VgprRB, S64}, SHRSrc, Amt); in lowerV_BFE() local 258 B.buildInstr(SHROpc, {Dst}, {SignBit, Amt}); in lowerV_BFE()
|
| H A D | AMDGPURegisterBankInfo.cpp | 1543 auto SignBit = B.buildShl(S64, ShiftOffset, ExtShift); in applyMappingBFE() local 1545 B.buildAShr(S64, SignBit, ExtShift); in applyMappingBFE() 1547 B.buildLShr(S64, SignBit, ExtShift); in applyMappingBFE()
|
| H A D | AMDGPUISelLowering.cpp | 2479 SDValue SignBit = DAG.getNode(ISD::AND, SL, MVT::i32, Hi, SignBitMask); in LowerFTRUNC() local 2482 SDValue SignBit64 = DAG.getBuildVector(MVT::v2i32, SL, {Zero, SignBit}); in LowerFTRUNC()
|
| H A D | AMDGPULegalizerInfo.cpp | 2582 auto SignBit = B.buildAnd(S32, Hi, SignBitMask); in legalizeIntrinsicTrunc() local 2589 auto SignBit64 = B.buildMergeLikeInstr(S64, {Zero32, SignBit}); in legalizeIntrinsicTrunc()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCalls.cpp | 2186 APInt SignBit = APInt::getSignMask(Ty->getScalarSizeInBits()); in visitCallInst() local 2187 return SelectInst::Create(X, ConstantInt::get(Ty, SignBit), in visitCallInst()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 6935 SDValue SignBit = DAG.getNode(ISD::AND, DL, XLenVT, SignAsInt, SignMask); in lowerFCOPYSIGN() local 6944 SDValue CopiedSign = DAG.getNode(ISD::OR, DL, XLenVT, ClearedSign, SignBit, in lowerFCOPYSIGN() 19716 APInt SignBit = APInt::getSignMask(32); in PerformDAGCombine() local 19719 DAG.getConstant(SignBit, DL, MVT::i32)); in PerformDAGCombine() 19724 DAG.getConstant(~SignBit, DL, MVT::i32)); in PerformDAGCombine() 19799 APInt SignBit = APInt::getSignMask(FPBits).sext(VT.getSizeInBits()); in PerformDAGCombine() local 19802 DAG.getConstant(SignBit, DL, VT)); in PerformDAGCombine() 19806 DAG.getConstant(~SignBit, DL, VT)); in PerformDAGCombine()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 4998 SDValue SignBit; in LowerINT_TO_FP() local 5000 SignBit = DAG.getNode(ISD::AND, DL, MVT::i64, SrcVal, in LowerINT_TO_FP() 5020 if (SignBit) { in LowerINT_TO_FP() 5021 RoundedBits = DAG.getNode(ISD::OR, DL, MVT::i64, RoundedBits, SignBit); in LowerINT_TO_FP()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86ISelLowering.cpp | 22673 SDValue SignBit = DAG.getNode(X86ISD::FAND, dl, LogicVT, Sign, SignMask); in LowerFCOPYSIGN() local 22691 SDValue Or = DAG.getNode(X86ISD::FOR, dl, LogicVT, MagBits, SignBit); in LowerFCOPYSIGN() 54998 APInt SignBit = APInt::getSignMask(VT.getScalarSizeInBits()); in combineAVG() local 54999 SDValue SignMask = DAG.getConstant(SignBit, DL, VT); in combineAVG()
|