Home
last modified time | relevance | path

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

/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp455 unsigned SrcBitWidth; in computeKnownBitsImpl() local
459 SrcBitWidth = MI.getOperand(2).getImm(); in computeKnownBitsImpl()
461 SrcBitWidth = SrcTy.isPointer() in computeKnownBitsImpl()
465 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsImpl()
466 Known = Known.zextOrTrunc(SrcBitWidth); in computeKnownBitsImpl()
469 if (BitWidth > SrcBitWidth) in computeKnownBitsImpl()
470 Known.Zero.setBitsFrom(SrcBitWidth); in computeKnownBitsImpl()
H A DLegalizerHelper.cpp1987 unsigned SrcBitWidth = SrcTy.getScalarSizeInBits(); in widenScalarMulo() local
2009 ExtResult = MIRBuilder.buildSExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2013 ExtResult = MIRBuilder.buildZExtInReg(WideTy, Mul, SrcBitWidth); in widenScalarMulo()
2018 if (WideTy.getScalarSizeInBits() < 2 * SrcBitWidth) { in widenScalarMulo()
/openbsd-src/gnu/llvm/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()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp407 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
409 APInt InputDemandedMask = DemandedMask.zextOrTrunc(SrcBitWidth); in SimplifyDemandedUseBits()
410 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
413 assert(InputKnown.getBitWidth() == SrcBitWidth && "Src width changed?"); in SimplifyDemandedUseBits()
443 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in SimplifyDemandedUseBits() local
445 APInt InputDemandedBits = DemandedMask.trunc(SrcBitWidth); in SimplifyDemandedUseBits()
449 if (DemandedMask.getActiveBits() > SrcBitWidth) in SimplifyDemandedUseBits()
450 InputDemandedBits.setBit(SrcBitWidth-1); in SimplifyDemandedUseBits()
452 KnownBits InputKnown(SrcBitWidth); in SimplifyDemandedUseBits()
459 DemandedMask.getActiveBits() <= SrcBitWidth) { in SimplifyDemandedUseBits()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DKnownBits.h207 KnownBits sextInReg(unsigned SrcBitWidth) const;
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DValueTracking.cpp1178 unsigned SrcBitWidth; in computeKnownBitsFromOperator() local
1182 SrcBitWidth = ScalarTy->isPointerTy() ? in computeKnownBitsFromOperator()
1186 assert(SrcBitWidth && "SrcBitWidth can't be zero"); in computeKnownBitsFromOperator()
1187 Known = Known.anyextOrTrunc(SrcBitWidth); in computeKnownBitsFromOperator()
1247 unsigned SrcBitWidth = I->getOperand(0)->getType()->getScalarSizeInBits(); in computeKnownBitsFromOperator() local
1249 Known = Known.trunc(SrcBitWidth); in computeKnownBitsFromOperator()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp7379 unsigned SrcBitWidth = Op.getOperand(OpNo).getScalarValueSizeInBits(); in computeNumSignBitsBinOp() local
7382 if (SrcBitWidth > VTBits) { // PACK in computeNumSignBitsBinOp()
7383 unsigned SrcExtraBits = SrcBitWidth - VTBits; in computeNumSignBitsBinOp()
7388 assert (SrcBitWidth == VTBits && "Expected operands of same bitwidth."); in computeNumSignBitsBinOp()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp2736 unsigned SrcBitWidth = SrcVT.getScalarSizeInBits(); in isSplatValue() local
2745 if ((BitWidth % SrcBitWidth) == 0) { in isSplatValue()
2747 unsigned Scale = BitWidth / SrcBitWidth; in isSplatValue()
H A DTargetLowering.cpp1136 unsigned SrcBitWidth = Src.getScalarValueSizeInBits(); in SimplifyDemandedBits() local
1137 APInt SrcDemandedBits = DemandedBits.zext(SrcBitWidth); in SimplifyDemandedBits()