Home
last modified time | relevance | path

Searched refs:SrcBitWidth (Results 1 – 10 of 10) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp459 unsigned SrcBitWidth; in computeKnownBitsImpl() local
463 SrcBitWidth = MI.getOperand(2).getImm(); in computeKnownBitsImpl()
465 SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl()
469 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsImpl()
470 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
473 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
474 Known.Zero.setBitsFrom(SrcBitWidth); in computeKnownBitsImpl()
H A DLegalizerHelper.cpp2257 unsigned SrcBitWidth = SrcTy.getScalarSizeInBits(); in widenScalarMulo() local
2269 bool WideMulCanOverflow = WideTy.getScalarSizeInBits() < 2 * SrcBitWidth; in widenScalarMulo()
2291 ExtResult = MIRBuilder.buildSExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2295 ExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp442 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
444 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
445 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
452 assert(InputKnown.getBitWidth() == SrcBitWidth && "Src width changed?"); in SimplifyDemandedUseBits()
463 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
465 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
469 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
470 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
472 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
479 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp100 KnownBits KnownBits::sextInReg(unsigned SrcBitWidth) const { in sextInReg()
102 assert(0 < SrcBitWidth && SrcBitWidth <= BitWidth && in sextInReg()
105 if (SrcBitWidth == BitWidth) in sextInReg()
108 unsigned ExtBits = BitWidth - SrcBitWidth; in sextInReg()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h207 KnownBits sextInReg(unsigned SrcBitWidth) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp1009 unsigned SrcBitWidth; in computeKnownBitsFromOperator() local
1013 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1017 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsFromOperator()
1018 Known = Known.anyextOrTrunc(SrcBitWidth); in computeKnownBitsFromOperator()
1081 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator() local
1083 Known = Known.trunc(SrcBitWidth); in computeKnownBitsFromOperator()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp7918 unsigned SrcBitWidth = Op.getOperand(OpNo).getScalarValueSizeInBits(); in computeNumSignBitsBinOp() local
7921 if (SrcBitWidth > VTBits) { // PACK in computeNumSignBitsBinOp()
7922 unsigned SrcExtraBits = SrcBitWidth - VTBits; in computeNumSignBitsBinOp()
7927 assert (SrcBitWidth == VTBits && "Expected operands of same bitwidth."); in computeNumSignBitsBinOp()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2852 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in isSplatValue() local
2861 if ((BitWidth % SrcBitWidth) == 0) { in isSplatValue()
2863 unsigned Scale = BitWidth / SrcBitWidth; in isSplatValue()
H A DTargetLowering.cpp1151 unsigned SrcBitWidth = Src.getScalarValueSizeInBits(); in SimplifyDemandedBits() local
1152 APInt SrcDemandedBits = DemandedBits.zext(SrcBitWidth); in SimplifyDemandedBits()
H A DDAGCombiner.cpp7047 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in visitAND() local
7049 Mask = Mask.trunc(SrcBitWidth); in visitAND()
7056 if (N1C->getAPIntValue().countLeadingZeros() >= (BitWidth - SrcBitWidth) && in visitAND()