Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp436 unsigned SrcBitWidth; in computeKnownBitsImpl() local
440 SrcBitWidth = MI.getOperand(2).getImm(); in computeKnownBitsImpl()
442 SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl()
446 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsImpl()
447 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
450 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
451 Known.Zero.setBitsFrom(SrcBitWidth); in computeKnownBitsImpl()
H A DLegalizerHelper.cpp1842 unsigned SrcBitWidth = SrcTy.getScalarSizeInBits(); in widenScalarMulo() local
1864 ExtResult = MIRBuilder.buildSExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
1868 ExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
1873 if (WideTy.getScalarSizeInBits() < 2 * SrcBitWidth) { in widenScalarMulo()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp390 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
392 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
393 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
396 assert(InputKnown.getBitWidth() == SrcBitWidth && "Src width changed?"); in SimplifyDemandedUseBits()
425 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
427 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
431 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
432 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
434 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
441 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DKnownBits.h205 KnownBits sextInReg(unsigned SrcBitWidth) const;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DValueTracking.cpp1162 unsigned SrcBitWidth; in computeKnownBitsFromOperator() local
1166 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1170 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsFromOperator()
1171 Known = Known.anyextOrTrunc(SrcBitWidth); in computeKnownBitsFromOperator()
1189 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator() local
1191 Known = Known.trunc(SrcBitWidth); in computeKnownBitsFromOperator()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp6952 unsigned SrcBitWidth = Op.getOperand(OpNo).getScalarValueSizeInBits(); in computeNumSignBitsBinOp() local
6955 if (SrcBitWidth > VTBits) { // PACK in computeNumSignBitsBinOp()
6956 unsigned SrcExtraBits = SrcBitWidth - VTBits; in computeNumSignBitsBinOp()
6961 assert (SrcBitWidth == VTBits && "Expected operands of same bitwidth."); in computeNumSignBitsBinOp()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp974 unsigned SrcBitWidth = Src.getScalarValueSizeInBits(); in SimplifyDemandedBits() local
975 APInt SrcDemandedBits = DemandedBits.zextOrSelf(SrcBitWidth); in SimplifyDemandedBits()