Home
last modified time | relevance | path

Searched refs:ShiftAmount (Results 1 – 25 of 34) sorted by relevance

12

/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp109 int ShiftAmount = 0; in generateInstSeqImpl() local
114 ShiftAmount = llvm::countr_zero((uint64_t)Val); in generateInstSeqImpl()
115 Val >>= ShiftAmount; in generateInstSeqImpl()
119 if (ShiftAmount > 12 && !isInt<12>(Val)) { in generateInstSeqImpl()
122 ShiftAmount -= 12; in generateInstSeqImpl()
128 ShiftAmount -= 12; in generateInstSeqImpl()
147 if (ShiftAmount) { in generateInstSeqImpl()
149 Res.emplace_back(Opc, ShiftAmount); in generateInstSeqImpl()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/MCTargetDesc/
H A DSPIRVBaseInfo.h253 for (unsigned ShiftAmount = 0; ShiftAmount < 32; ShiftAmount += 8) { in getSPIRVStringOperand() local
254 char c = (Imm >> ShiftAmount) & 0xff; in getSPIRVStringOperand()
/openbsd-src/gnu/llvm/llvm/lib/Target/AVR/
H A DAVRShiftExpand.cpp92 Value *ShiftAmount = Builder.CreateTrunc(BI->getOperand(1), Int8Ty); in expand() local
96 Value *Cmp1 = Builder.CreateICmpEQ(ShiftAmount, Int8Zero); in expand()
103 ShiftAmountPHI->addIncoming(ShiftAmount, BB); in expand()
H A DAVRISelLowering.cpp301 uint64_t ShiftAmount = in LowerShifts() local
303 if (ShiftAmount == 16) { in LowerShifts()
319 SDValue Cnt = DAG.getTargetConstant(ShiftAmount, dl, MVT::i8); in LowerShifts()
370 uint64_t ShiftAmount = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue(); in LowerShifts() local
379 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
383 ShiftAmount = ShiftAmount % VT.getSizeInBits(); in LowerShifts()
397 if (Op.getOpcode() == ISD::SHL && 4 <= ShiftAmount && ShiftAmount < 7) { in LowerShifts()
402 ShiftAmount -= 4; in LowerShifts()
403 } else if (Op.getOpcode() == ISD::SRL && 4 <= ShiftAmount && in LowerShifts()
404 ShiftAmount < 7) { in LowerShifts()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DDivisionByConstantInfo.h24 unsigned ShiftAmount; ///< shift amount member
/openbsd-src/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYFrameLowering.cpp177 unsigned ShiftAmount = Log2(MaxAlignment); in emitPrologue() local
184 .addImm(ShiftAmount); in emitPrologue()
187 .addImm(ShiftAmount); in emitPrologue()
194 .addImm(ShiftAmount); in emitPrologue()
197 .addImm(ShiftAmount); in emitPrologue()
/openbsd-src/gnu/llvm/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.cpp290 uint32_t ShiftAmount = Log2_32(LMUL); in lowerVSPILL() local
291 if (ShiftAmount != 0) in lowerVSPILL()
294 .addImm(ShiftAmount); in lowerVSPILL()
359 uint32_t ShiftAmount = Log2_32(LMUL); in lowerVRELOAD() local
360 if (ShiftAmount != 0) in lowerVRELOAD()
363 .addImm(ShiftAmount); in lowerVRELOAD()
H A DRISCVInstrInfo.cpp2465 uint32_t ShiftAmount = Log2_32(NumOfVReg); in getVLENFactoredAmount() local
2466 if (ShiftAmount == 0) in getVLENFactoredAmount()
2470 .addImm(ShiftAmount) in getVLENFactoredAmount()
2478 uint32_t ShiftAmount; in getVLENFactoredAmount() local
2481 ShiftAmount = Log2_64(NumOfVReg / 9); in getVLENFactoredAmount()
2484 ShiftAmount = Log2_64(NumOfVReg / 5); in getVLENFactoredAmount()
2487 ShiftAmount = Log2_64(NumOfVReg / 3); in getVLENFactoredAmount()
2491 if (ShiftAmount) in getVLENFactoredAmount()
2494 .addImm(ShiftAmount) in getVLENFactoredAmount()
2502 uint32_t ShiftAmount = Log2_32(NumOfVReg - 1); in getVLENFactoredAmount() local
[all …]
H A DRISCVFrameLowering.cpp583 unsigned ShiftAmount = Log2(MaxAlignment); in emitPrologue() local
588 .addImm(ShiftAmount) in emitPrologue()
592 .addImm(ShiftAmount) in emitPrologue()
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchFrameLowering.cpp294 unsigned ShiftAmount = Log2(MFI.getMaxAlign()); in emitPrologue() local
300 .addImm(ShiftAmount) in emitPrologue()
305 .addImm(ShiftAmount) in emitPrologue()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp63 Retval.ShiftAmount = P - D.getBitWidth(); // resulting shift in get()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsSEISelDAGToDAG.h48 unsigned ShiftAmount) const;
H A DMipsTargetStreamer.h144 void emitDSLL(unsigned DstReg, unsigned SrcReg, int16_t ShiftAmount,
H A DMipsSEISelDAGToDAG.cpp283 unsigned ShiftAmount = 0) const { in selectAddrFrameIndexOffset() argument
286 if (isIntN(OffsetBits + ShiftAmount, CN->getSExtValue())) { in selectAddrFrameIndexOffset()
297 const Align Alignment(1ULL << ShiftAmount); in selectAddrFrameIndexOffset()
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsTargetStreamer.cpp274 int16_t ShiftAmount, SMLoc IDLoc, in emitDSLL() argument
276 if (ShiftAmount >= 32) { in emitDSLL()
277 emitRRI(Mips::DSLL32, DstReg, SrcReg, ShiftAmount - 32, IDLoc, STI); in emitDSLL()
281 emitRRI(Mips::DSLL, DstReg, SrcReg, ShiftAmount, IDLoc, STI); in emitDSLL()
H A DMipsMCCodeEmitter.h188 template <unsigned ShiftAmount = 0>
H A DMipsMCCodeEmitter.cpp751 template <unsigned ShiftAmount>
762 OffBits >>= ShiftAmount; in getMemEncoding()
/openbsd-src/gnu/llvm/llvm/lib/Target/MSP430/
H A DMSP430ISelLowering.cpp968 uint64_t ShiftAmount = cast<ConstantSDNode>(N->getOperand(1))->getZExtValue(); in LowerShifts() local
973 if (ShiftAmount >= 8) { in LowerShifts()
993 ShiftAmount -= 8; in LowerShifts()
996 if (Opc == ISD::SRL && ShiftAmount) { in LowerShifts()
1000 ShiftAmount -= 1; in LowerShifts()
1003 while (ShiftAmount--) in LowerShifts()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp431 unsigned ShiftAmount; member
612 return ShiftedImm.ShiftAmount; in getShiftedImmShift()
970 unsigned Shift = ShiftedImm.ShiftAmount; in isAddSubImm()
2172 unsigned ShiftAmount = 0, in CreateReg() argument
2180 Op->Reg.ShiftExtend.Amount = ShiftAmount; in CreateReg()
2191 unsigned ShiftAmount = 0, in CreateVectorReg() argument
2197 auto Op = CreateReg(RegNum, Kind, S, E, Ctx, EqualsReg, ExtTy, ShiftAmount, in CreateVectorReg()
2277 unsigned ShiftAmount, in CreateShiftedImm() argument
2282 Op->ShiftedImm.ShiftAmount = ShiftAmount; in CreateShiftedImm()
3366 int64_t ShiftAmount = getTok().getIntVal(); in tryParseImmWithOptionalShift() local
[all …]
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DValueTracking.cpp5208 static bool shiftAmountKnownInRange(const Value *ShiftAmount) { in shiftAmountKnownInRange() argument
5209 auto *C = dyn_cast<Constant>(ShiftAmount); in shiftAmountKnownInRange()
7120 unsigned ShiftAmount = Width - 1; in setLimitsForBinOp() local
7122 ShiftAmount = C->countTrailingZeros(); in setLimitsForBinOp()
7126 Upper = C->ashr(ShiftAmount) + 1; in setLimitsForBinOp()
7129 Lower = C->ashr(ShiftAmount); in setLimitsForBinOp()
7141 unsigned ShiftAmount = Width - 1; in setLimitsForBinOp() local
7143 ShiftAmount = C->countTrailingZeros(); in setLimitsForBinOp()
7144 Lower = C->lshr(ShiftAmount); in setLimitsForBinOp()
7158 unsigned ShiftAmount = C->countLeadingOnes() - 1; in setLimitsForBinOp() local
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorOps.cpp1091 SDValue ShiftAmount = DAG.getConstant(EltWidth - SrcEltWidth, DL, VT); in ExpandSIGN_EXTEND_VECTOR_INREG() local
1093 DAG.getNode(ISD::SHL, DL, VT, Op, ShiftAmount), in ExpandSIGN_EXTEND_VECTOR_INREG()
1094 ShiftAmount); in ExpandSIGN_EXTEND_VECTOR_INREG()
H A DTargetLowering.cpp2135 unsigned ShiftAmount = NLZ > NTZ ? NLZ - NTZ : NTZ - NLZ; in SimplifyDemandedBits() local
2136 SDValue ShAmt = TLO.DAG.getConstant(ShiftAmount, dl, ShiftAmtTy); in SimplifyDemandedBits()
5904 magics.ShiftAmount = 0; in BuildSDIV()
5916 Shifts.push_back(DAG.getConstant(magics.ShiftAmount, dl, ShSVT)); in BuildSDIV()
7155 unsigned ShiftAmount = OuterBitSize - InnerBitSize; in expandMUL_LOHI() local
7156 SDValue Shift = DAG.getShiftAmountConstant(ShiftAmount, VT, dl); in expandMUL_LOHI()
8913 SDValue ShiftAmount = in scalarizeVectorLoad() local
8916 SDValue ShiftedElt = DAG.getNode(ISD::SRL, SL, LoadVT, Load, ShiftAmount); in scalarizeVectorLoad()
8998 SDValue ShiftAmount = in scalarizeVectorStore() local
9001 DAG.getNode(ISD::SHL, SL, IntVT, ExtElt, ShiftAmount); in scalarizeVectorStore()
[all …]
H A DLegalizeIntegerTypes.cpp918 SDValue ShiftAmount = in PromoteIntRes_ADDSUBSHLSAT() local
921 DAG.getNode(ISD::SHL, dl, PromotedType, Op1Promoted, ShiftAmount); in PromoteIntRes_ADDSUBSHLSAT()
924 DAG.getNode(ISD::SHL, dl, PromotedType, Op2Promoted, ShiftAmount); in PromoteIntRes_ADDSUBSHLSAT()
928 return DAG.getNode(ShiftOp, dl, PromotedType, Result, ShiftAmount); in PromoteIntRes_ADDSUBSHLSAT()
3903 SDValue ShiftAmount = DAG.getShiftAmountConstant(Scale % NVTSize, NVT, dl); in ExpandIntRes_MULFIX() local
3905 ShiftAmount); in ExpandIntRes_MULFIX()
3907 ShiftAmount); in ExpandIntRes_MULFIX()
/openbsd-src/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1915 uint64_t ShiftAmount = V.getConstantOperandVal(1); in factorOutPowerOf2() local
1916 if (ShiftAmount == Power) in factorOutPowerOf2()
1918 Ops[1] = CurDAG->getConstant(ShiftAmount - Power, in factorOutPowerOf2()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp547 unsigned ShiftAmount = ShiftVal ? ShiftVal->getZExtValue() : 0; in foldVecTruncToExtElt() local
549 if ((VecWidth % DestWidth != 0) || (ShiftAmount % DestWidth != 0)) in foldVecTruncToExtElt()
560 unsigned Elt = ShiftAmount / DestWidth; in foldVecTruncToExtElt()

12