Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp232 bool LoongArchDAGToDAGISel::selectShiftMask(SDValue N, unsigned ShiftWidth, in selectShiftMask() argument
242 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
243 APInt ShMask(AndMask.getBitWidth(), ShiftWidth - 1); in selectShiftMask()
260 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
264 if (lsb == 0 && Log2_32(ShiftWidth) <= msb + 1) { in selectShiftMask()
273 if (Imm != 0 && Imm % ShiftWidth == 0) { in selectShiftMask()
H A DLoongArchISelDAGToDAG.h47 bool selectShiftMask(SDValue N, unsigned ShiftWidth, SDValue &ShAmt);
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp170 unsigned ShiftWidth = ShiftLLT.getSizeInBits(); in selectShiftMask() local
171 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
195 APInt ShMask(AndMask.getBitWidth(), ShiftWidth - 1); in selectShiftMask()
210 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) in selectShiftMask()
215 if (Imm != 0 && Imm.urem(ShiftWidth) == 0) { in selectShiftMask()
226 if (Imm.urem(ShiftWidth) == ShiftWidth - 1) { in selectShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.h87 bool selectShiftMask(SDValue N, unsigned ShiftWidth, SDValue &ShAmt);
H A DRISCVISelDAGToDAG.cpp2746 bool RISCVDAGToDAGISel::selectShiftMask(SDValue N, unsigned ShiftWidth, in selectShiftMask() argument
2763 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
2764 APInt ShMask(AndMask.getBitWidth(), ShiftWidth - 1); in selectShiftMask()
2783 if (Imm != 0 && Imm % ShiftWidth == 0) { in selectShiftMask()
2792 if (Imm != 0 && Imm % ShiftWidth == 0) { in selectShiftMask()
2804 if (Imm % ShiftWidth == ShiftWidth - 1) { in selectShiftMask()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPatternMatch.h2813 unsigned ShiftWidth = TypeSize - 1;
2826 auto LHS = m_AShr(m_Value(OpL), m_SpecificInt(ShiftWidth));
2827 auto RHS = m_LShr(m_Neg(m_Value(OpR)), m_SpecificInt(ShiftWidth));
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp1336 AArch64_AM::ShiftExtendType ShiftExtendTy, int ShiftWidth,
1346 bool MatchShift = getShiftExtendAmount() == Log2_32(ShiftWidth / 8); in isSVEDataVectorRegWithShiftExtend()
1349 !ShiftWidthAlwaysSame && hasShiftExtendAmount() && ShiftWidth == 8) in isSVEDataVectorRegWithShiftExtend()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegisterBankInfo.cpp1533 auto ShiftWidth = B.buildShl(S32, WidthReg, B.buildConstant(S32, 16)); in applyMappingBFE() local
1538 auto MergedInputs = B.buildOr(S32, ClampOffset, ShiftWidth); in applyMappingBFE()