Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp456 unsigned SrcBitWidth; in computeKnownBitsImpl() local
460 SrcBitWidth = MI.getOperand(2).getImm(); in computeKnownBitsImpl()
462 SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl()
466 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsImpl()
467 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
470 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
471 Known.Zero.setBitsFrom(SrcBitWidth); in computeKnownBitsImpl()
H A DLegalizerHelper.cpp1980 unsigned SrcBitWidth = SrcTy.getScalarSizeInBits(); in widenScalarMulo() local
2002 ExtResult = MIRBuilder.buildSExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2006 ExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2011 if (WideTy.getScalarSizeInBits() < 2 * SrcBitWidth) { in widenScalarMulo()
/llvm-project-15.0.7/llvm/lib/Support/
H A DKnownBits.cpp88 KnownBits KnownBits::sextInReg(unsigned SrcBitWidth) const { in sextInReg()
90 assert(0 < SrcBitWidth && SrcBitWidth <= BitWidth && in sextInReg()
93 if (SrcBitWidth == BitWidth) in sextInReg()
96 unsigned ExtBits = BitWidth - SrcBitWidth; in sextInReg()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp402 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
404 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
405 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
408 assert(InputKnown.getBitWidth() == SrcBitWidth && "Src width changed?"); in SimplifyDemandedUseBits()
436 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
438 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
442 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
443 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
445 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
452 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DKnownBits.h207 KnownBits sextInReg(unsigned SrcBitWidth) const;
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp1208 unsigned SrcBitWidth; in computeKnownBitsFromOperator() local
1212 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1216 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsFromOperator()
1217 Known = Known.anyextOrTrunc(SrcBitWidth); in computeKnownBitsFromOperator()
1276 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator() local
1278 Known = Known.trunc(SrcBitWidth); in computeKnownBitsFromOperator()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp7376 unsigned SrcBitWidth = Op.getOperand(OpNo).getScalarValueSizeInBits(); in computeNumSignBitsBinOp() local
7379 if (SrcBitWidth > VTBits) { // PACK in computeNumSignBitsBinOp()
7380 unsigned SrcExtraBits = SrcBitWidth - VTBits; in computeNumSignBitsBinOp()
7385 assert (SrcBitWidth == VTBits && "Expected operands of same bitwidth."); in computeNumSignBitsBinOp()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2692 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in isSplatValue() local
2701 if ((BitWidth % SrcBitWidth) == 0) { in isSplatValue()
2703 unsigned Scale = BitWidth / SrcBitWidth; in isSplatValue()
H A DTargetLowering.cpp1135 unsigned SrcBitWidth = Src.getScalarValueSizeInBits(); in SimplifyDemandedBits() local
1136 APInt SrcDemandedBits = DemandedBits.zext(SrcBitWidth); in SimplifyDemandedBits()