Home
last modified time | relevance | path

Searched refs:Carry (Results 1 – 25 of 61) sorted by relevance

123

/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DScaledNumber.cpp292 bool Carry = doesRoundUp(Str[Truncate]); in toString() local
293 if (!Carry) in toString()
307 Carry = false; in toString()
312 return stripTrailingZeros(std::string(Carry, '1') + Str.substr(0, Truncate)); in toString()
H A DKnownBits.cpp51 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry) { in computeForAddCarry() argument
52 assert(Carry.getBitWidth() == 1 && "Carry must be 1-bit"); in computeForAddCarry()
54 LHS, RHS, Carry.Zero.getBoolValue(), Carry.One.getBoolValue()); in computeForAddCarry()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp2211 SDValue Carry = Op.getOperand(2); in LowerSETCCCARRY() local
2218 EVT CarryVT = Carry.getValueType(); in LowerSETCCCARRY()
2220 Carry = DAG.getNode(M68kISD::ADD, DL, DAG.getVTList(CarryVT, MVT::i32), Carry, in LowerSETCCCARRY()
3540 SDValue Carry = CCR.getOperand(0); in combineCarryThroughADD() local
3541 while (Carry.getOpcode() == ISD::TRUNCATE || in combineCarryThroughADD()
3544 Carry.getOpcode() == ISD::ANY_EXTEND || in combineCarryThroughADD()
3545 (Carry.getOpcode() == ISD::AND && in combineCarryThroughADD()
3546 isOneConstant(Carry.getOperand(1)))) in combineCarryThroughADD()
3547 Carry = Carry.getOperand(0); in combineCarryThroughADD()
3548 if (Carry.getOpcode() == M68kISD::SETCC || in combineCarryThroughADD()
[all …]
H A DM68kInstrControl.td56 /// CC—Carry clear GE—Greater than or equal
58 /// CS—Carry set GT—Greater than
H A DM68kInstrInfo.td463 def MxCONDcc : PatLeaf<(i8 4)>; // Carry Clear
464 def MxCONDcs : PatLeaf<(i8 5)>; // Carry Set
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp296 Value *Carry = Builder.CreateAnd(Tmp10, One); in generateUnsignedDivisionCode() local
325 Carry_1->addIncoming(Carry, DoWhile); in generateUnsignedDivisionCode()
337 Carry_2->addIncoming(Carry, DoWhile); in generateUnsignedDivisionCode()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFeatures.td387 "'Zbc' (Carry-Less Multiplication)">;
390 "'Zbc' (Carry-Less Multiplication)">;
421 // The Carry-less multiply subextension for cryptography is a subset of basic
426 "'Zbkc' (Carry-less multiply instructions for "
431 "'Zbkc' (Carry-less multiply instructions for Cryptography)">;
436 "'Zbc' (Carry-Less Multiplication) or "
437 "'Zbkc' (Carry-less multiply instructions "
H A DRISCVScheduleV.td330 // 11.4. Vector Integer Arithmetic with Carry or Borrow Instructions
564 // 11.4. Vector Integer Arithmetic with Carry or Borrow Instructions
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DBitTracker.cpp437 bool Carry = false; in eADD() local
444 unsigned S = bool(V1) + bool(V2) + Carry; in eADD()
446 Carry = (S > 1); in eADD()
453 if (V1.is(Carry)) in eADD()
455 else if (V2.is(Carry)) in eADD()
H A DHexagonVectorCombine.cpp2070 Value *Carry = nullptr; in createAddLong() local
2072 std::tie(Sum[Idx], Carry) = in createAddLong()
2073 createAddCarry(Builder, WordX[Idx], WordY[Idx], Carry); in createAddLong()
2110 Value *Carry = nullptr; // no carry-in in createMulLong() local
2114 pop_back_or_zero(ProdJ), Carry); in createMulLong()
2116 Carry = CarryOut; in createMulLong()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp716 SDValue Carry(Lo.getNode(), 1); in ExpandADDSUB() local
719 LHSH, RHSH, Carry); in ExpandADDSUB()
1551 SDValue Carry = DAG.getConstant(0, dl, VT); in PerformDAGCombine() local
1554 SDValue Ops[] = { Result, Carry }; in PerformDAGCombine()
1565 SDValue Carry = DAG.getConstant(0, dl, VT); in PerformDAGCombine() local
1567 SDValue Ops[] = { Result, Carry }; in PerformDAGCombine()
1636 SDValue Carry(Result.getNode(), 1); in PerformDAGCombine() local
1637 SDValue Ops[] = { Carry, Result }; in PerformDAGCombine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1624 Register Carry; in applyMappingMAD_64_32() local
1638 Carry = B.buildTrunc(S1, Carry).getReg(0); in applyMappingMAD_64_32()
1639 MRI.setRegBank(Carry, AMDGPU::VCCRegBank); in applyMappingMAD_64_32()
1661 Carry = B.buildXor(CarryType, Carry, Src2Sign).getReg(0); in applyMappingMAD_64_32()
1662 MRI.setRegBank(Carry, CarryBank); in applyMappingMAD_64_32()
1679 Carry = CarryHi; in applyMappingMAD_64_32()
1681 Carry = B.buildXor(CarryType, Carry, CarryHi).getReg(0); in applyMappingMAD_64_32()
1682 MRI.setRegBank(Carry, CarryBank); in applyMappingMAD_64_32()
1687 MRI.setRegBank(Carry, CarryBank); in applyMappingMAD_64_32()
1694 B.buildCopy(Dst1, Carry); in applyMappingMAD_64_32()
[all …]
H A DAMDGPULegalizerInfo.cpp3779 using Carry = SmallVector<Register, 2>; in buildMultiply() typedef
3813 [&](Register &LocalAccum, const Carry &CarryIn) -> Register { in buildMultiply()
3857 [&](MutableArrayRef<Register> LocalAccum, unsigned DstIndex, Carry &CarryIn) in buildMultiply()
3858 -> Carry { in buildMultiply()
3862 Carry CarryOut; in buildMultiply()
3958 Carry EvenCarry; in buildMultiply()
3959 Carry OddCarry; in buildMultiply()
3962 Carry OddCarryIn = std::move(OddCarry); in buildMultiply()
3963 Carry EvenCarryIn = std::move(EvenCarry); in buildMultiply()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h329 const KnownBits &LHS, const KnownBits &RHS, const KnownBits &Carry);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp4319 Carry = Carry.getOperand(2); in isAddCarryChain()
4320 return Carry.getOpcode() == ISD::UADDO; in isAddCarryChain()
4325 Carry = Carry.getOperand(2); in isSubBorrowChain()
4326 return Carry.getOpcode() == ISD::USUBO; in isSubBorrowChain()
4342 SDValue Carry = Op.getOperand(2); in lowerUADDSUBO_CARRY() local
4362 Carry = DAG.getNode(ISD::XOR, DL, Carry.getValueType(), in lowerUADDSUBO_CARRY()
4363 Carry, DAG.getConstant(1, DL, Carry.getValueType())); in lowerUADDSUBO_CARRY()
4364 Carry = DAG.getZExtOrTrunc(Carry, DL, MVT::i128); in lowerUADDSUBO_CARRY()
4383 if (!isAddCarryChain(Carry)) in lowerUADDSUBO_CARRY()
4391 if (!isSubBorrowChain(Carry)) in lowerUADDSUBO_CARRY()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiInstrFormats.td61 // (Carry), according to the result. If the flags are updated, they are
136 // (Zero), `N' (Negative), `V' (oVerflow), and `C' (Carry), according to
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp2339 SDValue Carry = N->getOperand(2); in PromoteIntOp_ADDSUBO_CARRY() local
2342 Carry = PromoteTargetBoolean(Carry, LHS.getValueType()); in PromoteIntOp_ADDSUBO_CARRY()
2344 return SDValue(DAG.UpdateNodeOperands(N, LHS, RHS, Carry), 0); in PromoteIntOp_ADDSUBO_CARRY()
3307 SDValue Carry; in ExpandIntRes_ADDSUB() local
3309 Carry = DAG.getZExtOrTrunc(Cmp, dl, NVT); in ExpandIntRes_ADDSUB()
3311 Carry = DAG.getSelect(dl, NVT, Cmp, DAG.getConstant(1, dl, NVT), in ExpandIntRes_ADDSUB()
3315 Hi = DAG.getNode(ISD::SUB, dl, NVT, HiOps[0], Carry); in ExpandIntRes_ADDSUB()
3317 Hi = DAG.getNode(ISD::ADD, dl, NVT, Hi, Carry); in ExpandIntRes_ADDSUB()
5351 SDValue Carry = N->getOperand(2); in ExpandIntOp_SETCCCARRY() local
5360 SDVTList VTList = DAG.getVTList(LHSLo.getValueType(), Carry.getValueType()); in ExpandIntOp_SETCCCARRY()
[all …]
H A DTargetLowering.cpp7542 SDValue Carry = Next.getValue(1); in expandMUL_LOHI() local
7551 Carry); in expandMUL_LOHI()
7554 Zero, Carry); in expandMUL_LOHI()
7705 SDValue Carry = DAG.getSetCC(dl, SetCCType, Sum, LL, ISD::SETULT); in expandDIVREMByConstant() local
7710 Carry = DAG.getZExtOrTrunc(Carry, dl, HiLoVT); in expandDIVREMByConstant()
7712 Carry = DAG.getSelect(dl, HiLoVT, Carry, DAG.getConstant(1, dl, HiLoVT), in expandDIVREMByConstant()
7714 Sum = DAG.getNode(ISD::ADD, dl, HiLoVT, Sum, Carry); in expandDIVREMByConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.cpp241 SDNode *Carry = CurDAG->getMachineNode( in selectAddE() local
246 SDValue(Carry, 0)}; in selectAddE()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DREADME_P9.txt131 - Vector Multiply-by-10 (& Write Carry) Unsigned Quadword:
137 - Vector Multiply-by-10 Extended (& Write Carry) Unsigned Quadword:
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ScheduleSLM.td455 // Carry-less multiplication instructions.
H A DX86ScheduleAtom.td489 // Carry-less multiplication instructions.
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp5008 SDValue Carry = DAG.getNode(ARMISD::SUBC, DL, in ConvertBooleanCarryToCarryFlag() local
5011 return Carry.getValue(1); in ConvertBooleanCarryToCarryFlag()
6946 SDValue Carry = Op.getOperand(2); in LowerSETCCCARRY() local
6954 Carry = DAG.getNode(ISD::SUB, DL, MVT::i32, in LowerSETCCCARRY()
6957 Carry = ConvertBooleanCarryToCarryFlag(Carry, DAG); in LowerSETCCCARRY()
9872 SDValue Carry = Op.getOperand(2); in LowerUADDSUBO_CARRY() local
9879 Carry = ConvertBooleanCarryToCarryFlag(Carry, DAG); in LowerUADDSUBO_CARRY()
9890 Carry = DAG.getNode(ISD::SUB, DL, MVT::i32, in LowerUADDSUBO_CARRY()
9893 Carry = ConvertBooleanCarryToCarryFlag(Carry, DAG); in LowerUADDSUBO_CARRY()
9903 Carry = DAG.getNode(ISD::SUB, DL, MVT::i32, in LowerUADDSUBO_CARRY()
[all …]
H A DARMFrameLowering.cpp2936 bool Carry = (Value & 0x00FFFFFF); in alignToARMConstant() local
2937 Value = ((Value & 0xFF000000) >> 24) + Carry; in alignToARMConstant()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCombinerHelper.cpp4920 Register Carry = MI.getOperand(1).getReg(); in matchMulOBy0() local
4922 !isConstantLegalOrBeforeLegalizer(MRI.getType(Carry))) in matchMulOBy0()
4926 B.buildConstant(Carry, 0); in matchMulOBy0()
4937 Register Carry = MI.getOperand(1).getReg(); in matchAddOBy0() local
4938 if (!isConstantLegalOrBeforeLegalizer(MRI.getType(Carry))) in matchAddOBy0()
4944 B.buildConstant(Carry, 0); in matchAddOBy0()

123