Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp467 unsigned SrcBitWidth; in computeKnownBitsImpl() local
471 SrcBitWidth = MI.getOperand(2).getImm(); in computeKnownBitsImpl()
473 SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl()
477 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsImpl()
478 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
481 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
482 Known.Zero.setBitsFrom(SrcBitWidth); in computeKnownBitsImpl()
H A DLegalizerHelper.cpp2321 unsigned SrcBitWidth = SrcTy.getScalarSizeInBits(); in widenScalarMulo() local
2333 bool WideMulCanOverflow = WideTy.getScalarSizeInBits() < 2 * SrcBitWidth; in widenScalarMulo()
2355 ExtResult = MIRBuilder.buildSExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2359 ExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp439 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
441 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
442 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
450 assert(InputKnown.getBitWidth() == SrcBitWidth && "Src width changed?"); in SimplifyDemandedUseBits()
460 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
462 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
466 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
467 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
469 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
476 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp149 KnownBits KnownBits::sextInReg(unsigned SrcBitWidth) const { in sextInReg()
151 assert(0 < SrcBitWidth && SrcBitWidth <= BitWidth && in sextInReg()
154 if (SrcBitWidth == BitWidth) in sextInReg()
157 unsigned ExtBits = BitWidth - SrcBitWidth; in sextInReg()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DKnownBits.h205 KnownBits sextInReg(unsigned SrcBitWidth) const;
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp828 unsigned SrcBitWidth = IType->getBitWidth(); in adjustIntTypeByWidth() local
829 if (SrcBitWidth > 1) { in adjustIntTypeByWidth()
830 unsigned BitWidth = adjustOpTypeIntWidth(SrcBitWidth); in adjustIntTypeByWidth()
832 if (SrcBitWidth != BitWidth) in adjustIntTypeByWidth()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DValueTracking.cpp1141 unsigned SrcBitWidth; in computeKnownBitsFromOperator() local
1145 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1149 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsFromOperator()
1150 Known = Known.anyextOrTrunc(SrcBitWidth); in computeKnownBitsFromOperator()
1252 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator() local
1254 Known = Known.trunc(SrcBitWidth); in computeKnownBitsFromOperator()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp8061 unsigned SrcBitWidth = Op.getOperand(OpNo).getScalarValueSizeInBits(); in computeNumSignBitsBinOp() local
8064 if (SrcBitWidth > VTBits) { // PACK in computeNumSignBitsBinOp()
8065 unsigned SrcExtraBits = SrcBitWidth - VTBits; in computeNumSignBitsBinOp()
8070 assert (SrcBitWidth == VTBits && "Expected operands of same bitwidth."); in computeNumSignBitsBinOp()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2893 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in isSplatValue() local
2902 if ((BitWidth % SrcBitWidth) == 0) { in isSplatValue()
2904 unsigned Scale = BitWidth / SrcBitWidth; in isSplatValue()
H A DTargetLowering.cpp1172 unsigned SrcBitWidth = Src.getScalarValueSizeInBits(); in SimplifyDemandedBits() local
1173 APInt SrcDemandedBits = DemandedBits.zext(SrcBitWidth); in SimplifyDemandedBits()
H A DDAGCombiner.cpp7041 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in visitAND() local
7043 Mask = Mask.trunc(SrcBitWidth); in visitAND()
7050 if (N1C->getAPIntValue().countLeadingZeros() >= (BitWidth - SrcBitWidth) && in visitAND()