Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVMatInt.cpp235 unsigned TrailingZeros = llvm::countr_zero((uint64_t)Val); in generateInstSeq() local
236 int64_t ShiftedVal = Val >> TrailingZeros; in generateInstSeq()
248 TmpSeq.emplace_back(RISCV::SLLI, TrailingZeros); in generateInstSeq()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPaddingChecker.cpp275 unsigned TrailingZeros = in calculateOptimalPad() local
280 long long CurAlignmentBits = 1ull << (std::min)(TrailingZeros, 62u); in calculateOptimalPad()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVInstrInfoZb.td234 unsigned TrailingZeros = Imm.countr_zero();
235 return TrailingZeros > 0 && TrailingZeros < 32 &&
236 Imm == UINT64_C(0xFFFFFFFF) << TrailingZeros;
237 }], TrailingZeros>;
552 (BSETI (XLenVT (BSETI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i))),
555 (BINVI (XLenVT (BINVI GPR:$r, (TrailingZeros BSETINVTwoBitsMask:$i))),
H A DRISCVISelDAGToDAG.cpp1088 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local
1089 if (TrailingZeros > 0 && LeadingZeros == 32) { in Select()
1092 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select()
1095 CurDAG->getTargetConstant(TrailingZeros + ShAmt, DL, VT)); in Select()
1117 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local
1118 if (LeadingZeros == 32 && TrailingZeros > ShAmt) { in Select()
1121 CurDAG->getTargetConstant(TrailingZeros, DL, VT)); in Select()
1124 CurDAG->getTargetConstant(TrailingZeros - ShAmt, DL, VT)); in Select()
H A DRISCVInstrInfo.td457 def TrailingZeros : SDNodeXForm<imm, [{
475 }], TrailingZeros>;
494 }], TrailingZeros>;
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DValue.cpp984 size_t TrailingZeros = CstInt->getValue().countr_zero(); in getPointerAlignment() local
987 return Align(TrailingZeros < Value::MaxAlignmentExponent in getPointerAlignment()
988 ? uint64_t(1) << TrailingZeros in getPointerAlignment()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h1600 unsigned TrailingZeros = llvm::countr_zero(U.VAL); in countr_zero() local
1601 return (TrailingZeros > BitWidth ? BitWidth : TrailingZeros); in countr_zero()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/
H A DAMDGPUDisassembler.cpp1847 int TrailingZeros = llvm::countr_zero(Mask); in getBitRangeFromMask() local
1851 S << "bit (" << (TrailingZeros + BaseBytes * CHAR_BIT) << ')'; in getBitRangeFromMask()
1854 << (TrailingZeros + PopCount - 1 + BaseBytes * CHAR_BIT) << ':' in getBitRangeFromMask()
1855 << (TrailingZeros + BaseBytes * CHAR_BIT) << ')'; in getBitRangeFromMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp6042 unsigned TrailingZeros = llvm::countr_zero(Mask); in Select() local
6053 ShiftAmt = TrailingZeros; in Select()
6056 } else if (TrailingZeros == 0 && SavesBytes) { in Select()
6067 unsigned PopCount = 64 - LeadingZeros - TrailingZeros; in Select()
6070 ShiftAmt = TrailingZeros; in Select()
6076 ShiftAmt = TrailingZeros; in Select()
6082 ShiftAmt = TrailingZeros; in Select()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7798 unsigned TrailingZeros = 0; in expandDIVREMByConstant() local
7800 TrailingZeros = Divisor.countr_zero(); in expandDIVREMByConstant()
7801 Divisor.lshrInPlace(TrailingZeros); in expandDIVREMByConstant()
7819 if (TrailingZeros) { in expandDIVREMByConstant()
7822 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
7830 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)), in expandDIVREMByConstant()
7832 DAG.getShiftAmountConstant(HBitWidth - TrailingZeros, in expandDIVREMByConstant()
7835 DAG.getShiftAmountConstant(TrailingZeros, HiLoVT, dl)); in expandDIVREMByConstant()
7895 if (TrailingZeros) { in expandDIVREMByConstant()
7896 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp6283 auto GetShiftedByZeros = [BitWidth](uint32_t TrailingZeros) { in getConstantMultipleImpl() argument
6284 return TrailingZeros >= BitWidth in getConstantMultipleImpl()
6286 : APInt::getOneBitSet(BitWidth, TrailingZeros); in getConstantMultipleImpl()