/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVMatInt.cpp | 235 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 D | PaddingChecker.cpp | 275 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 D | RISCVInstrInfoZb.td | 234 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 D | RISCVISelDAGToDAG.cpp | 1088 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 D | RISCVInstrInfo.td | 457 def TrailingZeros : SDNodeXForm<imm, [{ 475 }], TrailingZeros>; 494 }], TrailingZeros>;
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Value.cpp | 984 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 D | APInt.h | 1600 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 D | AMDGPUDisassembler.cpp | 1847 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 D | X86ISelDAGToDAG.cpp | 6042 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 D | TargetLowering.cpp | 7798 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 D | ScalarEvolution.cpp | 6283 auto GetShiftedByZeros = [BitWidth](uint32_t TrailingZeros) { in getConstantMultipleImpl() argument 6284 return TrailingZeros >= BitWidth in getConstantMultipleImpl() 6286 : APInt::getOneBitSet(BitWidth, TrailingZeros); in getConstantMultipleImpl()
|