Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h279 unsigned &MaskLen) { in isShiftedMask_32() argument
283 MaskLen = llvm::popcount(Value); in isShiftedMask_32()
292 unsigned &MaskLen) { in isShiftedMask_64() argument
296 MaskLen = llvm::popcount(Value); in isShiftedMask_64()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h500 bool isShiftedMask(unsigned &MaskIdx, unsigned &MaskLen) const { in isShiftedMask() argument
502 return isShiftedMask_64(U.VAL, MaskIdx, MaskLen); in isShiftedMask()
508 MaskLen = Ones; in isShiftedMask()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrInfo.td573 unsigned MaskIdx, MaskLen;
575 ? llvm::isShiftedMask_32(~Imm, MaskIdx, MaskLen)
576 : llvm::isShiftedMask_64(~Imm, MaskIdx, MaskLen);
581 unsigned MaskIdx, MaskLen;
583 ? llvm::isShiftedMask_32(~Imm, MaskIdx, MaskLen)
584 : llvm::isShiftedMask_64(~Imm, MaskIdx, MaskLen);
585 return CurDAG->getTargetConstant(MaskIdx + MaskLen - 1, SDLoc(N),
591 unsigned MaskIdx, MaskLen;
593 ? llvm::isShiftedMask_32(~Imm, MaskIdx, MaskLen)
594 : llvm::isShiftedMask_64(~Imm, MaskIdx, MaskLen);
H A DLoongArchISelLowering.cpp2201 unsigned MaskIdx, MaskLen; in performSRLCombine() local
2208 !isShiftedMask_64(CN->getZExtValue(), MaskIdx, MaskLen)) in performSRLCombine()
2216 if (MaskIdx <= Shamt && Shamt <= MaskIdx + MaskLen - 1) in performSRLCombine()
2219 DAG.getConstant(MaskIdx + MaskLen - 1, DL, GRLenVT), in performSRLCombine()
2362 unsigned MaskIdx, MaskLen; in performORCombine() local
2365 isShiftedMask_64(CNMask->getZExtValue(), MaskIdx, MaskLen) && in performORCombine()
2367 CNShamt->getZExtValue() + MaskLen <= ValBits) { in performORCombine()
2374 DAG.getConstant(Shamt + MaskLen - 1, DL, GRLenVT), in performORCombine()
2389 isShiftedMask_64(CNMask->getZExtValue(), MaskIdx, MaskLen) && in performORCombine()
2398 DAG.getConstant(MaskIdx + MaskLen - 1, DL, GRLenVT), in performORCombine()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp2067 unsigned MaskIdx, MaskLen; in instCombineIntrinsic() local
2068 if (MaskC->getValue().isShiftedMask(MaskIdx, MaskLen)) { in instCombineIntrinsic()
2111 unsigned MaskIdx, MaskLen; in instCombineIntrinsic() local
2112 if (MaskC->getValue().isShiftedMask(MaskIdx, MaskLen)) { in instCombineIntrinsic()
H A DX86ISelDAGToDAG.cpp2135 unsigned MaskIdx, MaskLen; in foldMaskAndShiftToScale() local
2136 if (!isShiftedMask_64(Mask, MaskIdx, MaskLen)) in foldMaskAndShiftToScale()
2138 unsigned MaskLZ = 64 - (MaskIdx + MaskLen); in foldMaskAndShiftToScale()
2234 unsigned MaskIdx, MaskLen; in foldMaskedShiftToBEXTR() local
2235 if (!isShiftedMask_64(Mask, MaskIdx, MaskLen)) in foldMaskedShiftToBEXTR()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp1086 unsigned MaskLen = SM.Mask.size(); in getOutputSegmentMap() local
1087 assert(MaskLen % SegLen == 0); in getOutputSegmentMap()
1088 SmallVector<unsigned, 4> Map(MaskLen / SegLen); in getOutputSegmentMap()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp728 unsigned LowZBits, MaskLen; in SelectShiftedRegisterFromAnd() local
729 if (!AndMask.isShiftedMask(LowZBits, MaskLen)) in SelectShiftedRegisterFromAnd()
739 if (LowZBits <= ShiftAmtC || (BitWidth != LowZBits + MaskLen)) in SelectShiftedRegisterFromAnd()
754 if (LHSOpcode == ISD::SRA && (BitWidth != (LowZBits + MaskLen))) in SelectShiftedRegisterFromAnd()
758 if (LHSOpcode == ISD::SRL && (BitWidth > (NewShiftC + MaskLen))) in SelectShiftedRegisterFromAnd()
H A DAArch64ISelLowering.cpp16403 unsigned MaskIdx, MaskLen; in isDesirableToCommuteXorWithShift() local
16404 if (XorC->getAPIntValue().isShiftedMask(MaskIdx, MaskLen)) { in isDesirableToCommuteXorWithShift()
16408 return MaskIdx == ShiftAmt && MaskLen == (BitWidth - ShiftAmt); in isDesirableToCommuteXorWithShift()
16409 return MaskIdx == 0 && MaskLen == (BitWidth - ShiftAmt); in isDesirableToCommuteXorWithShift()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp4057 unsigned MaskIdx, MaskLen; in performSrlCombine() local
4058 if (Mask->getAPIntValue().isShiftedMask(MaskIdx, MaskLen) && in performSrlCombine()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp13845 unsigned MaskIdx, MaskLen; in isDesirableToCommuteXorWithShift() local
13846 if (XorC->getAPIntValue().isShiftedMask(MaskIdx, MaskLen)) { in isDesirableToCommuteXorWithShift()
13850 return MaskIdx == ShiftAmt && MaskLen == (BitWidth - ShiftAmt); in isDesirableToCommuteXorWithShift()
13851 return MaskIdx == 0 && MaskLen == (BitWidth - ShiftAmt); in isDesirableToCommuteXorWithShift()